Debugging#
Functions#
Start collecting statistical data.
Stop collecting statistical data.
Send raw data frame.
Configure TWT parameters.
Configure TWT parameters.
Send Filter Broadcast Request frame.
Configure the 11ax params.This is a blocking API.
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.
[in] | interface | Wi-Fi interface as identified by sl_wifi_interface_t |
[in] | channel | Provides the statistics report on the specified channel. |
sl_wifi_init should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
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.
[in] | interface | Wi-Fi interface as identified by sl_wifi_interface_t |
sl_wifi_start_statistic_report should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
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.
[in] | interface | Wi-Fi interface as identified by sl_wifi_interface_t |
[in] | data | Data buffer. |
[in] | data_length | length of the data. |
sl_wifi_init should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
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.
[in] | twt_req | Configurable TWT parameters. |
Enables or disables a TWT session. This is blocking API.
sl_wifi_connect should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
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.
[in] | twt_req | Configurable TWT parameters. |
Enables or disables a TWT session. This is blocking API.
sl_wifi_enable_target_wake_time should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
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.
[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. |
sl_wifi_init should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
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.
[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). |
This API should be called before sl_wifi_connect
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
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.
[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.
This API should be called after sl_wifi_init and called before sl_wifi_connect.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
1041
of file components/protocol/wifi/inc/sl_wifi.h