Microchip® Advanced Software Framework

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

Synchronous wi-fi hotspot disabling function.

Synchronous wi-fi hotspot add/remove station from the black List.

Must be called only when the AP is enabled through the m2m_wifi_enable_ap function. Otherwise the call to this function will not be useful.

Functions

NMI_API sint8 m2m_wifi_ap_add_black_list (uint8 bAddNewEntry, uint8 *mac_addr)
 
NMI_API sint8 m2m_wifi_disable_ap (void)
 Synchronous API to disable access point mode on the WINC IC. More...
 

NMI_API sint8 m2m_wifi_ap_add_black_list ( uint8  bAddNewEntry,
uint8 mac_addr 
)
Parameters
[in]bAddNewEntryBoolean value if 1 then the given mac address would be added to the black list if zero the given mac address would be removed from the black list mac_addr MAC address of the station to be added/removed from the black list Note to remove all stations from the black list use all FF's in the mac address and set bAddNewEntry to zero
Warning
The firmware will be maintaining a list of 16 MAC addresses , Requests over this number will be discarded without a notice.
See Also
m2m_wifi_enable_ap
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.

References hif_send(), m2m_memcpy(), M2M_REQ_GRP_WIFI, M2M_SUCCESS, M2M_WIFI_REQ_AP_BLACK_LIST, and NULL.

NMI_API sint8 m2m_wifi_disable_ap ( void  )

Synchronous API to disable access point mode on the WINC IC.

Synchronous API to disable access point mode on the WINC.

See Also
m2m_wifi_enable_ap
Returns
The function returns M2M_SUCCESS for successful operations and a negative value otherwise.
Must be called only when the AP is enabled through the @ref m2m_wifi_enable_ap
function. Otherwise the call to this function will not be useful.
Returns
The function returns M2M_SUCCESS if the command has been successfully queued to the WINC and a negative value otherwise.
See Also
m2m_wifi_enable_ap