Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
m2m_wifi_set_scan_options

Synchronous wi-fi scan settings function.

This function sets the time configuration parameters for the scan operation.

Functions

NMI_API sint8 m2m_wifi_set_scan_options (uint8 u8NumOfSlot, uint8 u8SlotTime)
 

NMI_API sint8 m2m_wifi_set_scan_options ( uint8  u8NumOfSlot,
uint8  u8SlotTime 
)
Parameters
[in]u8NumOfSlot;The minimum number of slots is 2 for every channel, For every slot the soc will send Probe Req on air, and wait/listen for PROBE RESP/BEACONS for the u8slotTime in ms
[in]u8SlotTime;The time in ms that the Soc will wait on every channel listening for the frames on air when that time increases the number of APs will increase in the scan results Minimum time is 10 ms and the maximum is 250 ms
See Also
tenuM2mScanCh m2m_wifi_request_scan
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.

References hif_send(), M2M_ERR, M2M_ERR_FAIL, M2M_REQ_GRP_WIFI, M2M_SCAN_MIN_NUM_SLOTS, M2M_SCAN_MIN_SLOT_TIME, M2M_SUCCESS, M2M_WIFI_REQ_SET_SCAN_OPTION, NULL, tstrM2MScanOption::u8NumOfSlot, and tstrM2MScanOption::u8SlotTime.

Referenced by os_m2m_wifi_set_scan_options_imp().