...
A wireless network interface should be able to scan any time after the network interface has been successfully started. A successful call to NetIF_WiFi_Scan()
returns the wireless networks available to join which can be joined by the wireless network interface. See NetIF_WiFi_Scan() for more information.
You can scan for a wireless network by calling the NetIF_WiFi_Scan()
API function with the necessary parameters. A call to NetIF_WiFi_Scan()
is shown below.
...