Microchip® Advanced Software Framework

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

Synchronous wi-fi scan region setting function.

This function sets the scan region, which will affect the range of possible scan channels. For 2.5GHz supported in the current release, the requested scanregion can't exceed the maximum number of channels (14).

This function sets the scan list, which will affect the range of possible scan channels. For 2.5GHz supported in the current release, the requested scanregion can't exceed the maximum number of channels (14).

Functions

NMI_API sint8 m2m_wifi_set_scan_list (tstrM2MScanList *pstrScanList)
 
NMI_API sint8 m2m_wifi_set_scan_region (uint8 ScanRegion)
 

NMI_API sint8 m2m_wifi_set_scan_list ( tstrM2MScanList pstrScanList)
Parameters
[in]ScanRegion;pstrScanList
See Also
tstrM2MScanList 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_memcpy(), M2M_REQ_GRP_WIFI, M2M_SUCCESS, M2M_WIFI_REQ_SET_SCAN_LIST, and NULL.

Referenced by os_m2m_wifi_set_scan_list_imp().

NMI_API sint8 m2m_wifi_set_scan_region ( uint8  ScanRegion)
Parameters
[in]ScanRegion;ASIA = 14 NORTH_AMERICA = 11
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_FAIL, M2M_REQ_GRP_WIFI, M2M_WIFI_REQ_SET_SCAN_REGION, NULL, and tstrM2MScanRegion::u8ScanRegion.

Referenced by os_m2m_wifi_set_scan_region().