To connect to a wlan network it must be saved in the /system/etc/wifi/wpa_supplicant.conf
As i mentioned before in twister2 the file where networks are saved is /data/misc/wifi/bcm_supp.conf
So if you have connected once to your network in twister2 you can copy the file from twister2:/data/misc/wifi/bcm_supp.conf to cm7:/system/etc/wifi/wpa_supplicant.conf
so when this is done and you start the wpa_supplicant it should automatically connect to your network
set the nameservers to googlenameservers for example and you can browse over wifi!
"setprop net.dns1 126.96.36.199"
"setprop net.dns2 188.8.131.52"
Another way to connect to a network that is not saved in /system/etc/wifi/wpa_supplicant.conf is over terminal emulator with "wpa_cli":
-Open terminal emulator and type "su"---->Enter
-type "insmod /system/lib/modules/libertasspi.ko"---->Enter
-type "start wpa_supplicant"
-type "wpa_cli -p/data/misc/wifi/ -iwlan0"---->Enter
-type "scan_results"---->Enter //This lists the available Networks
-type "add_network"---->Enter //This creates a new Network and gives you a number which is the network_id
-type "set_network network_id ssid "the_name_of_your_network""---->Enter /for example: set_network 0 ssid "My WiFi 1"
-type "set_network network_id psk "the_password_of_your_network""---->Enter
-type "set_network network_id key_mgmt WPA-PSK"---->Enter
-type "enable_network network_id"---->Enter
This saves you desired network to the wpa_supplicant config file.
You can also edit the wpa_supplicant config file by hand, which is much faster i think...
i dont have fixed usb at all, because my usb port of my Omnia2 is broken, so i cant help with usb at all...
if i write console i always mean the terminal emulator!
with "iwlist scan" you can scan for networks via wifi
therefore you only need to load the libertasspi module -> insmod /system/lib/modules/libertasspi.ko
and then bring the interface online with -> ifconfig wlan0 up
after the wlan0 adapter is online you can scan for networks with -> iwlist scan
if this is working your wifi is ready to be configured.
the outoput of "dmesg | grep -i wlan" and "logcat | grep -i wlan" is not long (only a few lines), so you can wrote it here
Please dont misunderstand me... your help is appreciated :-)
with correct configured wpa_supplicant there is no need for "ifconfig wlan0 up" because wpa_supplicant does it on its own i think...
Sorry i dont understand the question?
For wifi to start i just have to write "start wpa_supplicant" in console and it connect with my Router which is saved in "/system/etc/wifi/wpa_supplicant.conf"
But over the Settings menu Wifi just gives Error <- i dont know how to fix this
in Twister2 the file where AP's saved is "/data/misc/wifi/bcm_supp.conf" <- so you can copy this file to /system/et/wifi/wpa_supplicant.conf
for dns to work write in console:
setprop net.dns1 184.108.40.206
setprop net.dns2 220.127.116.11
chmod 0777 /data/misc/dhcp
here is updated init.rc and mount.sh
if its not working for you:
what is the output of:
dmesg | grep -i wlan
logcat | grep -i wlan
well in minlroid
iwconfig and iwlist are in /system/xbin
wpa_cli and wpa_supplicant are in /system/bin
and i copied all to /system/bin
but i think it doesnt matter in which folder iwconfig and iwlist are... because they are just for testing wifi from console... Android itself doesnt use this files for turning wifi on i think... i might be wrong