Debugging#

Functions#

sl_status_t
sl_wifi_start_statistic_report(sl_wifi_interface_t interface, sl_wifi_channel_t channel)

Start collecting statistical data.

sl_status_t
sl_wifi_stop_statistic_report(sl_wifi_interface_t interface)

Stop collecting statistical data.

sl_status_t
sl_wifi_send_raw_data_frame(sl_wifi_interface_t interface, const void *data, uint16_t data_length)

Send raw data frame.

sl_status_t
sl_wifi_enable_target_wake_time(sl_wifi_twt_request_t *twt_req)

Configure TWT parameters.

sl_status_t
sl_wifi_disable_target_wake_time(sl_wifi_twt_request_t *twt_req)

Configure TWT parameters.

sl_status_t
sl_wifi_filter_broadcast(uint16_t beacon_drop_threshold, uint8_t filter_bcast_in_tim, uint8_t filter_bcast_tim_till_next_cmd)

Send Filter Broadcast Request frame.

sl_status_t
sl_wifi_set_11ax_config(uint8_t guard_interval)

Configure the 11ax params.This is a blocking API.

sl_status_t
sl_wifi_get_pairwise_master_key(sl_wifi_interface_t interface, const uint8_t type, const sl_wifi_ssid_t *ssid, const char *pre_shared_key, uint8_t *pairwise_master_key)

Generate PMK if PSK and SSID are provided.

Function Documentation#

sl_wifi_start_statistic_report#

sl_status_t sl_wifi_start_statistic_report (sl_wifi_interface_t interface, sl_wifi_channel_t channel)

Start collecting statistical data.

Parameters
TypeDirectionArgument NameDescription
sl_wifi_interface_t[in]interface

Wi-Fi interface as identified by sl_wifi_interface_t

sl_wifi_channel_t[in]channel

Provides the statistics report on the specified channel.

Returns


sl_wifi_stop_statistic_report#

sl_status_t sl_wifi_stop_statistic_report (sl_wifi_interface_t interface)

Stop collecting statistical data.

Parameters
TypeDirectionArgument NameDescription
sl_wifi_interface_t[in]interface

Wi-Fi interface as identified by sl_wifi_interface_t

Returns


sl_wifi_send_raw_data_frame#

sl_status_t sl_wifi_send_raw_data_frame (sl_wifi_interface_t interface, const void * data, uint16_t data_length)

Send raw data frame.

Parameters
TypeDirectionArgument NameDescription
sl_wifi_interface_t[in]interface

Wi-Fi interface as identified by sl_wifi_interface_t

const void *[in]data

Data buffer.

uint16_t[in]data_length

length of the data.

Returns


sl_wifi_enable_target_wake_time#

sl_status_t sl_wifi_enable_target_wake_time (sl_wifi_twt_request_t * twt_req)

Configure TWT parameters.

Parameters
TypeDirectionArgument NameDescription
sl_wifi_twt_request_t *[in]twt_req

Configurable TWT parameters.

Enables or disables a TWT session. This is blocking API.

Returns


sl_wifi_disable_target_wake_time#

sl_status_t sl_wifi_disable_target_wake_time (sl_wifi_twt_request_t * twt_req)

Configure TWT parameters.

Parameters
TypeDirectionArgument NameDescription
sl_wifi_twt_request_t *[in]twt_req

Configurable TWT parameters.

Enables or disables a TWT session. This is blocking API.

Returns


sl_wifi_filter_broadcast#

sl_status_t sl_wifi_filter_broadcast (uint16_t beacon_drop_threshold, uint8_t filter_bcast_in_tim, uint8_t filter_bcast_tim_till_next_cmd)

Send Filter Broadcast Request frame.

Parameters
TypeDirectionArgument NameDescription
uint16_t[in]beacon_drop_threshold

The amount of time that FW waits to receive full beacon. Default value is 5000ms.

uint8_t[in]filter_bcast_in_tim

If this bit is set, then from the next dtim any broadcast data pending bit in TIM indicated will be ignored valid values: 0 - 1.

uint8_t[in]filter_bcast_tim_till_next_cmd

0 - filter_bcast_in_tim is valid till disconnect of the STA. 1 - filter_bcast_in_tim is valid till next update by giving the same command.

Returns


sl_wifi_set_11ax_config#

sl_status_t sl_wifi_set_11ax_config (uint8_t guard_interval)

Configure the 11ax params.This is a blocking API.

Parameters
TypeDirectionArgument NameDescription
uint8_t[in]guard_interval

Period of time delta between two packets in wireless transmission. Valid values : 0 - 3 (0 = 8us, 1 = 16us, 2 = 32us, 3 = 64us).

Returns


sl_wifi_get_pairwise_master_key#

sl_status_t sl_wifi_get_pairwise_master_key (sl_wifi_interface_t interface, const uint8_t type, const sl_wifi_ssid_t * ssid, const char * pre_shared_key, uint8_t * pairwise_master_key)

Generate PMK if PSK and SSID are provided.

Parameters
TypeDirectionArgument NameDescription
sl_wifi_interface_t[in]interface

Wi-Fi interface as identified by sl_wifi_interface_t

const uint8_t[in]type

Possible values of this field are 1, 2, and 3, but we only pass 3 for generation of PMK.

const sl_wifi_ssid_t *[in]ssid

SSID of type sl_wifi_ssid_t has the SSID of the access point

const char *[in]pre_shared_key

Expected parameters are pre-shared key(PSK) of the access point

uint8_t *[in]pairwise_master_key

PMK array

This is a blocking API.

Returns