Disconnects an interface from its current network.
- Parameters
-
IfaceId | The WLAN interface's ID to be disconnected. |
- Returns
- If the function succeeds, the return value is wclCommon::WCL_E_SUCCESS.
If the function fails, the return value may be one of the WCL return codes.
Do not call the method before calling Connect
unless you want to change a profile to an on-demand profile. When you call Connect
to establish a network connection, any existing network connection is dropped automatically.