afer days of looking around and trying to figure out a way finally got it to work with the help of fbelleri on xda-forums
Here is the link ..
http://forum.xda-dev...44#post11832544
Hi,
your wpa_supplicant.conf file is the best full commented file that I never see. Reading the file you can find many explanations in the commented lines (#).
The initial assumption is that the device works as AP is a cell phone that only allows ad-hoc mode, as my Nokia 5800 with the program JoikuSpot. Some more lucky people have phones with hardware that can operate in infrastructure mode and do not need to do anything.
Other assumption is that you have wpa_supplicant.conf file in the /system/etc/wifi/ folder.
I have the wpa_supplicant.conf file in /system/etc/wifi/
Other assumption is that your tablet doesn't have a TexasInstrument wifi chip (not important)
I have the wpa.....ifi/, i couldnt find the other file u mentioned.
The simplest way is to create one personalized wpa...conf file needed only when You want have access to your ad-hoc phone wifi network.
So you will have 2 wpa...conf files: the first for normal networks and the secon only for your personalized ad-hoc network.
Remember that the file in use can be automatically modified by the Network configuration in settings. Do not use scan network in settings when there is in use the wpa..conf ad-hoc file, because the app will automatically modify it erasing the line ap_scan=2. When is in use the 'normal' file, you can do all you want.
I have modified the files as you need. YOU must edit 1 line in the adhoc file (use the internal editor of your pad or Wordpad in Win) and insert the correct SSID (the wifi network name).
I have also added the .normal file in the case you have problems with your 'normal' wifi network
I tried to do it as u said and now wen i try to connect to internet it says WiFi unable to connect.
Step1:
Edit "wpa.supplicant.conf.adhoc" attached file and insert the correct SSID.
Step2:
Copy "wpa.supplicant.conf.adhoc" file to the folder /system/etc/wifi/.
Step3:
Assuming that you already have at least one 'normal' wifi network running, using RootExplorer go to the folder /system/etc/wifi/ and make a copy of your file wpa...conf in use and rename the copy "wpa_supplicant.conf.normal" in the same folder. Why? Because this file contains your update normal wifi networks configuration and passwords.
So, what I have to do when I want swith from NORMAL to ADHOC network?
1 Disable the wifi network in settings.
2 With RootExplorer,
2.1 go to folder /system/etc/wifi/
2.2 long press on file wpa_supplicant.conf, when menu pop up, delete this file.
2.3 long press on file wpa_supplicant.conf.adhoc, when menu pop up, copy and paste.
2.4 long press on file "wpa_supplicant.conf.adhoc - Copy" and rename it to wpa_supplicant.conf
3 Enable the wifi network in settings.
4 After 2 seconds, your tablet should connect to the adhoc ap of your phone.
5 DO NOT use scan for netwoks in settings because it will auto modify your wpa..conf file.
What I have to do when I want change the network from ADHOC to NORMAL?
1 Disable the wifi network in settings
2 With RootExplorer,
2.1 go to folder /system/etc/wifi/
2.2 long press on file wpa_supplicant.conf, when menu pop up, delete this file.
2.3 long press on file wpa_supplicant.conf.normal, when menu pop up, copy and paste.
2.4 long press on file "wpa_supplicant.conf.normal - Copy" and rename it to wpa_supplicant.conf
3 Enable the wifi network in settings.
4 After 1/2 seconds, your tablet should connect to the ap of your wifi network..
5 You can use/modify/add netwoks in settings because it will correctly modify your wpa..conf 'normal' file. If you add/modify anything make a copy of your updated wpa..conf to "wpa_supplicant.conf.normal" erasing old one.
It would be more comfortable not having to use this procedure that may seem complicated, but in practice it is really easy. Four years have passed since the first request to allow the adhoc connection was requested to the developer of Android. Still no answer.
I've used this procedure with my old tablet A81E, with my Herotab C8 clone, and with a linux notebook.
To me it always works. If sometimes I have problems is because of the phone and its software.
Tell me if it works!
Try it out !!
Enjoy !
Attached File(s)
-
wpa.zip (821bytes)
Number of downloads: 78

Help














