I am working on WLAN development. I am creating application which detects WLAN IAP if available and then add it to IAP list if not existing. I am able to successfully detect the new WLAN IAP and add it to list.
But I have following queries:
1) How to determine whether network mode of WLAN available is Ad-hoc or Infrastructure?
2) How can i set the network mode of IAP(to be added) to Ad-hoc if the available network mode of WLAN is Ad-hoc?
I have WLAN network available in my room with Ad-hoc mode. My application successfully detects the WLAN and adds the discovered IAP to IAP list, but mode is always set default to Infrastructure. I have tried to set network mode to Ad-hoc, but all in vain.
Please help me if possible!!