Android Ad-hoc support hack/wpa_supplicant

Search This thread

blackplatypus

Senior Member
Jan 22, 2008
130
23
Heya,

Unfortunately android, to be precisely wpa_supplicant does not show ad-hoc networks, the following modified wpa_supplicant shows them, haven't seen it before so I posted it :).

all credits go to szym (http://szym.net/android/adhoc-wpa-supp.html)

The patch below modifies the wpa_supplicant code in the external/wpa_supplicant AOSP repo to make ad-hoc networks appear as regular APs with a (*) prefix.

The patch:

* removes the [IBSS] flag from scan results,
* masquerades and demasquerades ad-hoc ssid with (*) prefix
* sets mode 1 (ad-hoc) if the ssid is for IBSS
* permits the supplicant to select an IBSS when associating to a given ssid

patch: http://szym.net/android/wpa_supplicant-ibss.patch

The only thing I did was to apply the patch compile it for froyo and supply a signed update zip with the modified wpa_supplicant, work was done by szym.

Flash the attached wpa_adhoc-signed.zip in recovery and your done :).

a3e00f284ddff04804ba8d59364712b1 wpa_adhoc-signed.zip (v0.5.11)

Works with:

- Froyo/Eclair roms on HTC Hero (confirmed)
- roms using wpa_supplicant v0.5.x

Attention:
- It _seems_ like some rom using wpa_supplicant v0.6.x do not work! take care (e.g HTC Desire). Please report back.

you may check this post: http://xdaforums.com/showpost.php?p=7716862&postcount=24

Always do a nandroid backup!!
 

Attachments

  • wpa_adhoc-signed.zip
    131 KB · Views: 115,831
Last edited:

yamchung

Member
Jun 12, 2007
22
1
Downloaded and will have a try. It will be great if it works. Thanks.
The hero can detect the ad-hoc mode with a (*)before the name. It can be connected but can't access the internet. My laptop can access internet through this ad-hoc wifi. Didn't know why?
 
Last edited:

pascanu

Senior Member
Jan 22, 2009
553
55
Tg. Mures
It works! Beautiful. I used my old G1 to make an ad-hoc wireless network and my Desire saw it right away and connected without any problem. See my signature for the ROM I'm using (if it really matters).
 

funkyrohit

New member
Jun 4, 2010
1
0
The patch didn't work for me at first. I got "Error" while trying to turn my wi-fi on. :(
But when I restored the original /system/etc/wifi/tiwlan.ini and /data/misc/wifi/wpa_supplicant.conf back in the phone, it started detecting ad-hoc networks.
So the patch worked after all. :D

Thanks. :)

[EDIT]
Did not work after I rebooted my phone.

HTC Hero Brown
Running: FroydVillain 1.2.2
Kernel: 2.6.29-nindroid-ninpo@titan #302
Operator: Airtel India
 
Last edited:

rufryder

New member
Aug 17, 2010
1
0
Hi all, I just got my SGS yesterday. How can I flash this patch. I renamed file to update.zip, downloaded into my SGS /sdcard, and used ABD to install the update.zip. However it gave me a waring 'Installation Aborted'' . I may just doing something wrong here. :D...any suggestion? Thanks a lot!
 

ZedeN

Senior Member
Dec 20, 2009
119
13
Bristol
Thanks a lot, works on Magic 32b but only for non password protected connections
Able to see the connections on Desire, but unable to connect, gets stuck on Obtaining IP adress.....
Running on Cyanogen 6.0.0 RC1 on Magic, and LeeDroid 1.8c on Desire
 
Last edited:

tsailor1

Member
Feb 20, 2010
10
0
Did the update and now my wifi wont turn on. You can actually watch it on settings screen turn and off. It is stuck in this loop and eventually comes up with a force close!
Anyone have any ideas?
 

fmi

Member
Jan 2, 2007
25
0
So will this let me ad-hoc to my netbook which is also wfi-tethered to the phone?
 

anto1208

Senior Member
Oct 18, 2007
101
6
Roma
Heya,

Unfortunately android, to be precisely wpa_supplicant does not show ad-hoc networks, the following modified wpa_supplicant shows them, haven't seen it before so I posted it :).

all credits go to szym (http://szym.net/android/adhoc-wpa-supp.html)



patch: http://szym.net/android/wpa_supplicant-ibss.patch

The only thing I did was to apply the patch compile it for froyo and supply a signed update zip with the modified wpa_supplicant, work was done by szym.

Flash the attached wpa_adhoc-signed.zip in recovery and your done :).

a3e00f284ddff04804ba8d59364712b1 wpa_adhoc-signed.zip
You can do the same work for corporate APN with request for
authentication?
THANKS
 

meteora

Senior Member
Aug 1, 2009
107
4
Nexus

I have Nexus one with cyanogen 6.0 RC3 installed on it.
I have flashed this zip file but my phone still doesn't see the adhoc network on my laptop. i don't know if there is a fault in my PC settings or this is a compatibility issue for cyanogen. can anyone please shed light on my situation? it is very important for me.
 

alakin

Member
Aug 10, 2010
37
0
that's great!! i Have a nexus one with android 2.2 FRF91 and it worked for me too. i just flashed the zip from the recovery. tnz a lot man, i've been waiting for this
 

calvin2x

Member
Aug 6, 2010
9
0
@blackplatypus - will this work with unrooted HTC Desire froyo?

Do I need to do anything special with the file wpa_adhoc-signed.zip other than renaming it to update.zip and flashing in recovery?

I'm getting verification failed message :(

Please help - Android Noob
 

calvin2x

Member
Aug 6, 2010
9
0
Esofron- would you mind sharing how you managed to do it on your desire? Thanks!

Sent from my HTC Desire using XDA App
 

Top Liked Posts

  • There are no posts matching your filters.
  • 12
    Heya,

    Unfortunately android, to be precisely wpa_supplicant does not show ad-hoc networks, the following modified wpa_supplicant shows them, haven't seen it before so I posted it :).

    all credits go to szym (http://szym.net/android/adhoc-wpa-supp.html)

    The patch below modifies the wpa_supplicant code in the external/wpa_supplicant AOSP repo to make ad-hoc networks appear as regular APs with a (*) prefix.

    The patch:

    * removes the [IBSS] flag from scan results,
    * masquerades and demasquerades ad-hoc ssid with (*) prefix
    * sets mode 1 (ad-hoc) if the ssid is for IBSS
    * permits the supplicant to select an IBSS when associating to a given ssid

    patch: http://szym.net/android/wpa_supplicant-ibss.patch

    The only thing I did was to apply the patch compile it for froyo and supply a signed update zip with the modified wpa_supplicant, work was done by szym.

    Flash the attached wpa_adhoc-signed.zip in recovery and your done :).

    a3e00f284ddff04804ba8d59364712b1 wpa_adhoc-signed.zip (v0.5.11)

    Works with:

    - Froyo/Eclair roms on HTC Hero (confirmed)
    - roms using wpa_supplicant v0.5.x

    Attention:
    - It _seems_ like some rom using wpa_supplicant v0.6.x do not work! take care (e.g HTC Desire). Please report back.

    you may check this post: http://xdaforums.com/showpost.php?p=7716862&postcount=24

    Always do a nandroid backup!!
    3
    i took it off by reinstalling the same rom over it deleted the kernel an the wifi to so im back to normal now but yea how do i do this properly i thought i just it on the rom an every thing is ok lol an whats adb

    its included in the android sdk toolchain.



    Can all the people which had problems, check the version of wpa_supplicant their rom is using? connectbot or via adb in cmd.exe/shell (adb shell wpa_supplicant -v) and post the output?.

    It seems like some newer roms are using wpa_supplicant v6 with different libs.

    You can try to use the precompiled wpa_supplicant from daveba http://xdaforums.com/showpost.php?p=7711198&postcount=6

    our flash the attached signed update zip. (its the same file)

    Attention: its not my file!!
    2
    Sweet.

    I got this working on my HTC Flyer WiFi with FlyHigh Rom.

    Extract the wpa_supplicant from the zip file. Back up your original. Turn WiFi off. Use Root Explorer to paste it into your system/bin folder. Change the permissions on the file to rwxr-xr-x. Turn wifi back on. When scanning it should show (*) in front of any adhoc networks. I have it running with barnacle wifi tether on my OG Droid! W00tness!
    1
    Would anyone provide "ad-hoc support in wep" in a signed update zip? Thanks.
    1
    I got this working on my HTC Flyer WiFi with FlyHigh Rom.

    Extract the wpa_supplicant from the zip file. Back up your original. Turn WiFi off. Use Root Explorer to paste it into your system/bin folder. Change the permissions on the file to rwxr-xr-x. Turn wifi back on. When scanning it should show (*) in front of any adhoc networks. I have it running with barnacle wifi tether on my OG Droid! W00tness!

    Thank you. you are a genius