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
[in]interface

Wi-Fi interface as identified by sl_wifi_interface_t

[in]channel

Provides the statistics report on the specified channel.

Returns


Definition at line 938 of file components/protocol/wifi/inc/sl_wifi.h

sl_wifi_stop_statistic_report#

sl_status_t sl_wifi_stop_statistic_report (sl_wifi_interface_t interface)

Stop collecting statistical data.

Parameters
[in]interface

Wi-Fi interface as identified by sl_wifi_interface_t

Returns


Definition at line 950 of file components/protocol/wifi/inc/sl_wifi.h

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
[in]interface

Wi-Fi interface as identified by sl_wifi_interface_t

[in]data

Data buffer.

[in]data_length

length of the data.

Returns


Definition at line 966 of file components/protocol/wifi/inc/sl_wifi.h

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
[in]twt_req

Configurable TWT parameters.

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

Returns


Definition at line 978 of file components/protocol/wifi/inc/sl_wifi.h

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
[in]twt_req

Configurable TWT parameters.

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

Returns


Definition at line 990 of file components/protocol/wifi/inc/sl_wifi.h

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
[in]beacon_drop_threshold

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

[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.

[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


Definition at line 1007 of file components/protocol/wifi/inc/sl_wifi.h

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
[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


Definition at line 1021 of file components/protocol/wifi/inc/sl_wifi.h

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
[in]interface

Wi-Fi interface as identified by sl_wifi_interface_t

[in]type

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

[in]ssid

SSID of type sl_wifi_ssid_t has the SSID of the access point

[in]pre_shared_key

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

[in]pairwise_master_key

PMK array

This is a blocking API.

Returns


Definition at line 1041 of file components/protocol/wifi/inc/sl_wifi.h