What you need to do is look at the capabilities of the ScanResult that
you have.  The following code will tell you if the signal is AdHoc or
not.

scanResult.capabilities.contains("[IBSS]");

if it returns true, its AdHoc, false and its not.  Hope that helps,

- Drew

On Feb 9, 5:57 pm, Susahosh Rahman <susah...@gmail.com> wrote:
> Hi,
> I am developing an application on the android platform. The app
> performs continues  WiFi scan and sends information about the list of
> visible access points to server. However, I need to remove all the Ad
> Hoc points. The android.net.wifi.ScanResult api does not seem to have
> any information on "mode" of the network. Is there anyway I can
> distinguish a given point is Ad Hoc or Master?
>
> Thank you,
> Susahosh

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to