Remove All Ads from XDA

Android Ad-hoc support hack/wpa_supplicant

129 posts
Thanks Meter: 20
By blackplatypus, Senior Member on 15th August 2010, 02:11 AM
Post Reply Email Thread

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 (


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


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 in recovery and your done .

a3e00f284ddff04804ba8d59364712b1 (v0.5.11)

Works with:

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

- 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:

Always do a nandroid backup!!
Attached Files
File Type: zip - [Click for QR Code] (131.0 KB, 113462 views)
The Following 11 Users Say Thank You to blackplatypus For This Useful Post: [ View ] Gift blackplatypus Ad-Free
15th August 2010, 03:04 AM |#2  
Junior Member
Thanks Meter: 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?
15th August 2010, 07:24 PM |#3  
pascanu's Avatar
Senior Member
Flag Tg. Mures
Thanks Meter: 54
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).
16th August 2010, 02:39 AM |#4  
Junior Member
Thanks Meter: 1
Would anyone provide "ad-hoc support in wep" in a signed update zip? Thanks.
The Following User Says Thank You to yamchung For This Useful Post: [ View ] Gift yamchung Ad-Free
16th August 2010, 07:54 PM |#5  
OP Senior Member
Thanks Meter: 20
Originally Posted by yamchung

Would anyone provide "ad-hoc support in wep" in a signed update zip? Thanks.

it is already look at the first post.
17th August 2010, 10:51 AM |#6  
Junior Member
Thanks Meter: 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.


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
17th August 2010, 01:00 PM |#7  
solidkundi's Avatar
Senior Member
Thanks Meter: 2
what does this allow me to do ? will i be able to transfer files between phones?
17th August 2010, 01:38 PM |#8  
Junior Member
Thanks Meter: 0
Hi all, I just got my SGS yesterday. How can I flash this patch. I renamed file to, downloaded into my SGS /sdcard, and used ABD to install the However it gave me a waring 'Installation Aborted'' . I may just doing something wrong here. ...any suggestion? Thanks a lot!
17th August 2010, 02:03 PM |#9  
Senior Member
Flag Bristol
Thanks Meter: 8
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
17th August 2010, 02:11 PM |#10  
Flag Rainbow City, AL
Thanks Meter: 15
Thumbs up
will this work on a stock rooted 2.1 Vibrant??

Just flash via ROM Manager?
17th August 2010, 02:15 PM |#11  
Junior Member
Thanks Meter: 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?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes