> It seems your IBSS fails to merge, that's a common problem with Ad-Hoc
> mode and very much dependent on Wifi cards and drivers. In short, IBSS
> which have the same name and are on the same channel should agree on
> the same BSSID after some (short) time. It seems that this is not the
> case for you.
I tested again with channel 1, and it worked ;-)
> Finally, there is no iwconfig on Android, and it's generally
> considered deprecated, but "iw" can be used instead.
Thank you, with "iw", it works!
I downloaded "iw" ARM binary from here:
http://www.onlyxool.net/porting-iw-tools-to-android/Serval still uses "iwconfig", and "iw" does not work with some devices,
for example my Motorola Milestone:
# iw dev tiwlan0 info
nl80211 not found.
I added the missing glue to Serval for detecting and driving Galaxy
Nexus chipset using "iw":
https://github.com/rom1v/batphone/commits/gnexusThis includes:
- the "iw" binary;
- the detection and edify scripts for Galaxy Nexus (using "iw");
- a new variable in adhoc.conf for the frequency ("iw" expects
a frequency, not a channel);
- a new check for detecting the network interface state for chipsets
with flag "nowirelessextensions" (it tries with "iw" before fallback
detection).
I also needed to change the target (in project.properties) from
android-8 to android-10, but I kept minSDKVersion and targetSDKVersion
to 8 (in AndroidManifest.xml), so it will still work on phones from
android-8, and calls to elements not available in android-8 need the
@TargetApi annotation. Indeed, I needed *NetworkInterface.isUp()* method
available from android-9 (but android-9 does not exist anymore), because
"iw" gives a network type even if the interface is down, so we must
check (only if Build.VERSION is at least 9) if it is up. If it is a
problem, we can call "ifconfig" and parse the result instead.
With these changes, Galaxy Nexus works perfectly with Batphone. Thank
you for your implementation of ad-hoc mode for this device.
Note to serval developers:
If you agree to merge my changes in, you should recompile the "iw"
binary: we have no reason to blindly trust onlyxool (the blog from where
I downloaded "iw"), and you have no reason to trust me (or anyone else)
including such a binary blob into Serval.
®om
> Le mercredi 13 mars 2013 18:32:05 UTC+1, Bruno Randolf a �crit :
>
> Hello!
>
> As you are working with Ad-Hoc (IBSS) mode as well, we believe you
> might be interested in our attempt to properly bring Ad-Hoc mode to
> Android. We have extended the latest Android version to include
> Ad-Hoc mode, from the public API to the user interface.
>
> We currently provide only a few CyanogenMod based system images, put
> have uplodaed our changes to AOSP and CyanogenMod gerrit for review
> and inclusion and hope to build for more devices soon. We hope that
> this way we can get IBSS properly included in Android in future
> releases.
>
> You can find more information here:
> http://www.thinktube.com/android-tech/46-android-wifi-ibss
> <http://www.thinktube.com/android-tech/46-android-wifi-ibss>
>
> If you have any thoughts or feedback, we would be happy to hear from
> you...
>
> bruno
> (Thinktube)
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Serval Project Developers" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/serval-project-developers/JGN00i00nFk/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> serval-project-developers+unsub...@googlegroups.com.