When an application needs to leave a wireless access point, it can do so by calling the NetIF_WiFi_Leave()
API function with the necessary parameters.
A call to NetIF_WiFi_Leave()
is shown below.
There are very few things that could cause a network interface to leave improperly. You should always inspect the return error code and take the appropriate action if an error occurs. Once the error is resolved, the application may again attempt to call NetIF_WiFi_Leave()
.