Microchip® Advanced Software Framework

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

Synchronous function for setting the wi-fi listen interval for power save operation.

It is represented in units of AP Beacon periods. Function

Functions

NMI_API sint8 m2m_wifi_set_lsn_int (tstrM2mLsnInt *pstrM2mLsnInt)
 Set the Wi-Fi listen interval for power save operation. It is represented in units of AP Beacon periods. More...
 

NMI_API sint8 m2m_wifi_set_lsn_int ( tstrM2mLsnInt pstrM2mLsnInt)

Set the Wi-Fi listen interval for power save operation. It is represented in units of AP Beacon periods.

Parameters
[in]pstrM2mLsnIntStructure holding the listen interval configurations.
Returns
The function SHALL return 0 for success and a negative value otherwise.
See Also
tstrM2mLsnInt , m2m_wifi_set_sleep_mode
Precondition
m2m_wifi_set_sleep_mode shall be called first
Warning
The Function called once after initialization.
Parameters
[in]pstrM2mLsnIntStructure holding the listen interval configurations.
Precondition
Function m2m_wifi_set_sleep_mode shall be called first
Warning
The function should be called once after initialization.
See Also
tstrM2mLsnInt m2m_wifi_set_sleep_mode
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.

References hif_send(), m2m_memcpy(), M2M_REQ_GRP_WIFI, M2M_WIFI_REQ_LSN_INT, NM_BSP_B_L_16, NULL, and tstrM2mLsnInt::u16LsnInt.

Referenced by os_m2m_wifi_set_lsn_int_imp().