I think that ralink wifi driver use the name of rausb0 You can try it!
2009/6/30 Elvis Dowson <[email protected]> > > Hi, > I am getting the following error, while trying to port my > Ralink RT2571WF wifi module to android-2.6.29. > > E/WifiHW ( 918): Unable to open connection to supplicant on "wlan0": > No such file or directory > I/WifiHW ( 918): wifi_connect_to_supplicant called > > How can I resolve this? > > Some people who have enable wifi have set ctrl_interface to wlan0 in > their wpa_supplicant.conf file: > > ctrl_interface=wlan0 > > Other have specified a directory: > > ctrl_interface=DIR=/data/system/wpa_supplicant/ GROUP=system > > This also gives me an error :-) > > E/WifiHW ( 912): Unable to open connection to supplicant on "/data/ > system/wpa_supplicant/wlan0": No such file or directory > I/WifiHW ( 912): wifi_connect_to_supplicant called > > So, I'm not sure what I should be doing!! :-) > > This is what my init.rc file looks like at the moment: > > # create wifi filesystem structure > mkdir /data/misc/wifi 0770 system system > mkdir /data/misc/wifi/sockets 0770 system system > mkdir /data/system/wpa_supplicant 0770 system system > mkdir /data/misc/dhcp 0770 dhcp dhcp > chown dhcp dhcp /data/misc/dhcp > > on boot > # basic network init > ifup lo > ifup wlan0 > hostname localhost > domainname localdomain > > ## Daemon processes to be run by init. > ## > service console /system/bin/sh > console > > # adbd is controlled by the persist.service.adb.enable system property > service adbd /sbin/adbd > disabled > > # adbd on at boot in emulator > on property:ro.kernel.qemu=1 > start adbd > > on property:persist.service.adb.enable=1 > start adbd > > on property:persist.service.adb.enable=0 > stop adbd > > service servicemanager /system/bin/servicemanager > user system > critical > onrestart restart zygote > onrestart restart media > > service vold /system/bin/vold > socket vold stream 0660 root mount > > service mountd /system/bin/mountd > socket mountd stream 0660 root mount > > service debuggerd /system/bin/debuggerd > > #service ril-daemon /system/bin/rild > # socket rild stream 660 root radio > # socket rild-debug stream 660 radio system > # user root > # group radio cache inet misc > > service zygote /system/bin/app_process -Xzygote /system/bin --zygote -- > start-system-server > socket zygote stream 666 > onrestart write /sys/android_power/request_state wake > onrestart write /sys/power/state on > > service media /system/bin/mediaserver > user media > group system audio camera graphics inet net_bt net_bt_admin > > #service bootsound /system/bin/playmp3 > # user media > # group audio > # oneshot > > #service dbus /system/bin/dbus-daemon --system --nofork > # socket dbus stream 660 bluetooth bluetooth > # user bluetooth > # group bluetooth net_bt_admin > > #service hcid /system/bin/hcid -s -n -f /etc/bluez/hcid.conf > # socket bluetooth stream 660 bluetooth bluetooth > # socket dbus_bluetooth stream 660 bluetooth bluetooth > # init.rc does not yet support applying capabilities, so run as > root and > # let hcid drop uid to bluetooth with the right linux capabilities > # group bluetooth net_bt_admin misc > # disabled > > #service hfag /system/bin/sdptool add --channel=10 HFAG > # user bluetooth > # group bluetooth net_bt_admin > # disabled > # oneshot > > #service hsag /system/bin/sdptool add --channel=11 HSAG > # user bluetooth > # group bluetooth net_bt_admin > # disabled > # oneshot > > service wlan_loader /system/bin/wlan_loader > disabled > oneshot > > service ifcfg_ralink /system/bin/ifconfig wlan0 up > disabled > oneshot > > service wpa_supplicant /system/bin/logwrapper /system/bin/ > wpa_supplicant -Dwext -iwlan0 -c /system/etc/wifi/wpa_supplicant.conf - > dd > disabled > group system > > service dhcpcd /system/bin/logwrapper /system/bin/dhcpcd -d wlan0 -dd > disabled > #group system dhcp > > #on property:init.svc.wpa_supplicant=stopped > # stop dhcpcd > > service installd /system/bin/installd > socket installd stream 600 system system > > #service flash_recovery /system/bin/flash_image recovery /system/ > recovery.img > # oneshot > > Best regards, > > Elvis > > > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
