Lifetab P9516 patch for ad hoc networks.
If you want to use your tablet with for example an iPhone in tethering mode (MyWi),
you need a patched version of the wpa_supplicant file in your tablet.
The original supplicant filters out the ad hoc networks

!
Here is the procedure :
(you are supposed to have a rooted tablet and know how to use adb)
Decompress wpa_supplicant_adhoc_ICS.zip in your adb directory:
www.avi-plus.com/download/wpa_supplicant_adhoc_ICS.zip
File Name: wpa_supplicant_adhoc_ICS.zip
File Size: 264 KB
You get a file named wpa_supplicant_adhoc_ICS (471 Kb) in your adb directory.
Under windows, enter in cmd mode and cd to the adb directory, for exemple cd \adb
Enter:
Code:
adb push wpa_supplicant_adhoc_ICS [COLOR=#339933]/[/COLOR]sdcard[COLOR=#339933]/[/COLOR]wpa_supplicant
The file is copied in the sdcard and renamed as wpa_supplicant.
Enter the following command get into androïd shell mode:
Under Windows
Under Linux:
Code:
adb[COLOR=#339933]-[/COLOR]linux shell
Under Mac:
Code:
adb[COLOR=#339933]-[/COLOR]mac shell
Once in shell mode your prompt should be a $ sign
Enter :
The prompt becomes # (root access).
Enter :
Code:
mount [COLOR=#339933]-[/COLOR]o rw[COLOR=#339933],[/COLOR]remount [COLOR=#339933]-[/COLOR]t yaffs2 [COLOR=#339933]/[/COLOR]dev[COLOR=#339933]/[/COLOR]block[COLOR=#339933]/[/COLOR]mtdblock3 [COLOR=#339933]/[/COLOR][COLOR=#990000]system[/COLOR]
dd [COLOR=#B1B100]if[/COLOR][COLOR=#339933]=/[/COLOR][COLOR=#990000]system[/COLOR][COLOR=#339933]/[/COLOR]bin[COLOR=#339933]/[/COLOR]wpa_supplicant of[COLOR=#339933]=/[/COLOR]sdcard[COLOR=#339933]/[/COLOR]wpa_supplicant[COLOR=#339933].[/COLOR]original
This will save your original wpa_supplicant file version into your internal SDcard.
We will then copy the ad hoc patched version into the /system/bin directory.
Code:
dd [COLOR=#B1B100]if[/COLOR][COLOR=#339933]=/[/COLOR]sdcard[COLOR=#339933]/[/COLOR]wpa_supplicant_adhoc_ICS of[COLOR=#339933]=/[/COLOR][COLOR=#990000]system[/COLOR][COLOR=#339933]/[/COLOR]bin[COLOR=#339933]/[/COLOR]wpa_supplicant
This will overwrite the original file with the new one..
We have to make sure that the access rights are correct :
Code:
[COLOR=#990000]chmod[/COLOR] [COLOR=#CC66CC]755[/COLOR] [COLOR=#339933]/[/COLOR][COLOR=#990000]system[/COLOR][COLOR=#339933]/[/COLOR]bin[COLOR=#339933]/[/COLOR]wpa_supplicant
[COLOR=#990000]chown[/COLOR] [COLOR=#990000]system[/COLOR][COLOR=#339933].[/COLOR]wifi [COLOR=#339933]/[/COLOR]data[COLOR=#339933]/[/COLOR]misc[COLOR=#339933]/[/COLOR]wifi[COLOR=#339933]/[/COLOR]wpa_supplicant[COLOR=#339933].[/COLOR]conf
Enter exit twice to get out of the shell mode .
Code:
[COLOR=#990000]exit[/COLOR]
e[COLOR=#990000]xit[/COLOR]
Reboot the tablet by entering :
Your are done and you should see the ad hoc networks and be able to connect to any ad hoc network.

With this patched version (for ICS 4.0.4), your Wifi strength indicator should work correctly.
If something wrong happens, revert to the original file by doing this :
Code:
adb shell
su
mount [COLOR=#339933]-[/COLOR]o rw[COLOR=#339933],[/COLOR]remount [COLOR=#339933]-[/COLOR]t yaffs2 [COLOR=#339933]/[/COLOR]dev[COLOR=#339933]/[/COLOR]block[COLOR=#339933]/[/COLOR]mtdblock3 [COLOR=#339933]/[/COLOR][COLOR=#990000]system[/COLOR]
dd [COLOR=#B1B100]if[/COLOR][COLOR=#339933]=/[/COLOR]sdcard[COLOR=#339933]/[/COLOR]wpa_supplicant[COLOR=#339933].[/COLOR]original of[COLOR=#339933]=/[/COLOR][COLOR=#990000]system[/COLOR][COLOR=#339933]/[/COLOR]bin[COLOR=#339933]/[/COLOR]wpa_supplicant
This will restore the original wpa_supplicant.
Code:
[COLOR=#990000]
chmod[/COLOR] [COLOR=#CC66CC]755[/COLOR] [COLOR=#339933]/[/COLOR][COLOR=#990000]system[/COLOR][COLOR=#339933]/[/COLOR]bin[COLOR=#339933]/[/COLOR]wpa_supplicant
[COLOR=#990000]chown[/COLOR] [COLOR=#990000]system[/COLOR][COLOR=#339933].[/COLOR]wifi [COLOR=#339933]/[/COLOR]data[COLOR=#339933]/[/COLOR]misc[COLOR=#339933]/[/COLOR]wifi[COLOR=#339933]/[/COLOR]wpa_supplicant[COLOR=#339933].[/COLOR]conf
[COLOR=#990000]exit[/COLOR]
Then reboot your tablet:
Your original file will be restored.