Hi Ahmad Bazzi, Thanks for your respond. I have never know how to identify wifi channel use by a smart phone from the beginning. Most that I found in google is determining the wifi of an access point. Could you please explain how can the code being use to do this. Thanks.
In fact, if we take Android-based smartphones, there are several modes for identifying WiFi channels including: access point mode, monitor mode, WiFi direct and many others....
So, if you mean identifying WiFi-direct channels (which is new added mode into the firmware of the WiFi transceivers, and it is also known as peer-to-peer mode), yes you can identify these channel according to Android-API ...... (WifiP2pManager.ChannelListener in http://developer.android.com/reference/android/net/wifi/p2p/package-summary.html)
First let me tell you that I am not familiar with Android programming platform even though being using Android for so long :-)
What I want to know is actually, how android choose 802.11 channel to connect with available AP? Is it really depend on the AP working channel or does it run 'channel scanning' to connect? And how can we know what is the operating channel of an Android as a client, like we use the wifimanager to observe the operating channel of available WiFi AP.