Scanning#
Functions#
Start scanning for Wi-Fi networks.
Stop Wi-Fi scan.
Set advanced scan configuration.
Get advanced scan configuration.
Wait for current scan to complete and stores the results in the provided array.
Function Documentation#
sl_wifi_start_scan#
sl_status_t sl_wifi_start_scan (sl_wifi_interface_t interface, const sl_wifi_ssid_t * optional_ssid, const sl_wifi_scan_configuration_t * configuration)
Start scanning for Wi-Fi networks.
[in] | interface | Wi-Fi interface as identified by sl_wifi_interface_t |
[in] | optional_ssid | Optional SSID of type sl_wifi_ssid_t can be used to scan for a particular Wi-Fi network |
[in] | configuration |
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.
Note
For 911x, Advanced scan results are not populated to user.
378
of file components/protocol/wifi/inc/sl_wifi.h
sl_wifi_stop_scan#
sl_status_t sl_wifi_stop_scan (sl_wifi_interface_t interface)
Stop Wi-Fi scan.
[in] | interface | Wi-Fi interface as identified by sl_wifi_interface_t |
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.
Note
For 911x, sl_wifi_stop_scan is ONLY supported for advanced scan
394
of file components/protocol/wifi/inc/sl_wifi.h
sl_wifi_set_advanced_scan_configuration#
sl_status_t sl_wifi_set_advanced_scan_configuration (const sl_wifi_advanced_scan_configuration_t * configuration)
Set advanced scan configuration.
[in] | configuration | Set advanced scan configuration as identified by sl_wifi_advanced_scan_configuration_t |
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.
406
of file components/protocol/wifi/inc/sl_wifi.h
sl_wifi_get_advanced_scan_configuration#
sl_status_t sl_wifi_get_advanced_scan_configuration (sl_wifi_advanced_scan_configuration_t * configuration)
Get advanced scan configuration.
[out] | configuration | sl_wifi_advanced_scan_configuration_t object that will contain the current advanced scan configuration. |
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.
418
of file components/protocol/wifi/inc/sl_wifi.h
sl_wifi_wait_for_scan_results#
sl_status_t sl_wifi_wait_for_scan_results (sl_wifi_scan_result_t ** scan_result_array, uint32_t max_scan_result_count)
Wait for current scan to complete and stores the results in the provided array.
[in] | scan_result_array | Array of sl_wifi_scan_result_t objects to store the scan results. |
[in] | max_scan_result_count | The maximum number of scan result objects that can fit in the scan result array. |
This function also returns when the scan result array is full.
Once the scan result array is full, any further scan results will be lost.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
Note
This API is not supported in the current release.
436
of file components/protocol/wifi/inc/sl_wifi.h