Some applications may need to create a wireless ad hoc access point that can be accessed by other devices. Wireless ad hoc access points can be created by calling the NetIF_WiFi_CreateAdhoc()
API function with the necessary parameters. See NetIF_WiFi_CreateAP
for more information.
A call to NetIF_WiFi_CreateAdhoc()
is shown below:
If an error occurs, you should always inspect the return error code and take the appropriate action. There are very few things that could cause a failure to create an ad hoc network properly. Once the error is resolved, the application may again attempt to call NetIF_WiFi_CreateAdhoc()
.