API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

WLAN_ICONNMGR_DISCONNECT()

Brew Release
Brew MP 1.0.2
See Also
None
Description
This function disconnect the device from the WLAN network.
Params
pif
[in]:
Pointer to the wlan_IConnMgr object
Interface
Prototype
  •    AEEResult wlan_IConnMgr_Disconnect(
       wlan_IConnMgr* pif,
       );
    
Return
  • AEE_SUCCESS : Successfully disconnected from the network. Error code indicating the nature of the failure otherwise.
Side Effect
  • Disconnect operation dis-ables the WLAN, so after disconnect wlan netwroks scan opertaion will not work. To perform scan after disconnect WLAN need to be enable again.
    WLAN can be enabled by - Either successful connection using wlan_IConnMgr_Connect()
    - Or using PHONECTL_SetSystemPreference() with
    AEET_MODE_PREF_CURRENT_PLUS_WLAN or any other mode preference which includes WLAN.
Comments
If wlan_IConnMgr_Disconnect() is called when any WLAN network is in connecting state, then it will abort the connection operation immediately.