Hi Nail, You mentioned that you are connected. What does it mean you are connected? Did you get an IP address or are you attached to the AP (you should be able to see the SSID)?
Try first to find out on the AP whether it can see you. Roman Baumgaertner Sr. SW Engineer-OSDC ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On 4/9/09 7:19 PM, "nail" <s894...@gmail.com> wrote: > > Hi, I have enabled wifi using the following command written in > init.rc: > > "mkdir /data/misc/wifi 0770 wifi wifi > mkdir /data/misc/wifi/sockets 0770 wifi wifi > mkdir /data/system/wpa_supplicant 0770 wifi wifi > mkdir /data/misc/dhcp 0770 dhcp dhcp > chown dhcp dhcp /data/misc/dhcp > > ifup wlan0 > > service wpa_supplicant /system/bin/logwrapper /system/bin/ > wpa_supplicant -iwlan0 -c/system/etc/wifi/wpa_supplicant.conf -dd > group wifi > > service wlan_dhcpcd /system/bin/dhcpcd wlan0 " > > and it can connetc to the network, but when i type "wpa_cli -p/data/ > system/wpa_supplicant/ scan" > > it shows "Failed to connect to wpa_supplicant - wpa_ctrl_open: Unknown > error: 0" > > do you have any idea about this ? thank you > > > On 3月27日, 下午7時49分, Androidphan <niels.kee...@tass.nl> wrote: >> # wpa_cli -p/data/system/wpa_supplicant/ scan >> Selected interface 'wlan0' >> Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or >> directory >> >> On 27 mrt, 12:15, Michael Trimarchi <trimar...@gandalf.sssup.it> >> wrote: >> >> >> >>> Hi, >> >>> Androidphan wrote: >>>> This is the output when starting wpa_supplicant: >> >>>> Initializing interface 'wlan0' conf '/system/etc/wifi/ >>>> wpa_supplicant.conf' >>>> drive >>>> r 'wext' ctrl_interface 'N/A' bridge 'N/A' >>>> Configuration file '/system/etc/wifi/wpa_supplicant.conf' -> '/system/ >>>> etc/wifi/ >>>> w >>>> pa_supplicant.conf' >>>> Reading configuration file '/system/etc/wifi/wpa_supplicant.conf' >>>> update_config=1 >>>> ctrl_interface='DIR=/data/system/wpa_supplicant/ GROUP=system' >>>> eapol_version=1 >>>> ap_scan=1 >>>> fast_reauth=1 >>>> Initializing interface (2) 'wlan0' >>>> EAPOL: SUPP_PAE entering state DISCONNECTED >>>> EAPOL: KEY_RX entering state NO_KEY_RECEIVE >>>> EAPOL: SUPP_BE entering state INITIALIZE >>>> EAP: EAP entering state DISABLED >>>> EAPOL: External notification - portEnabled=0 >>>> EAPOL: External notification - portValid=0 >>>> SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf >>>> capabilities: key_mgmt 0xf enc 0xf >>>> WEXT: Operstate: linkmode=1, operstate=5 >>>> Own MAC address: 00:22:43:2c:fa:a6 >>>> wpa_driver_wext_set_wpa >>>> wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0 >>>> wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0 >>>> wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0 >>>> wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0 >>>> wpa_driver_wext_set_countermeasures >>>> ioctl[SIOCSIWAUTH]: Operation not supported on transport endpoint >>>> WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted >>>> Setting scan request: 0 sec 100000 usec >>>> ctrl_interface_group=1000 (from group name 'system') >>>> Added interface wlan0 >>>> RTM_NEWLINK: operstate=0 ifi_flags=0x1002 () >>>> RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added >>>> Wireless event: cmd=0x8b06 len=8 >>>> Ignore event for foreign ifindex 4 >>>> RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) >>>> RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added >>>> State: DISCONNECTED -> SCANNING >>>> CTRL-EVENT-STATE-CHANGE id=-1 state=2 >>>> Starting AP scan (broadcast SSID) >>>> Trying to get current scan results first without requesting a new scan >>>> to >>>> speed >>>> up initial association >>>> Received 0 bytes of scan results (0 BSSes) >>>> Scan results: 0 >>>> CTRL-EVENT-SCAN-RESULTS Ready >> >>> Hi, test youwificonnection using the wpa_cli program. The parse >>> function of the >>> scan result expect a - to the signal stregh (if I remember) to parse the >>> result, otherwise >>> fail. >> >>> wpa_cli has an interractive mode to operate, and you can send command like: >>> scan and scan-results. >> >>>> No suitable AP found. >>>> Setting scan request: 0 sec 0 usec >>>> No enabled networks - do not scan >>>> State: SCANNING -> INACTIVE >>>> CTRL-EVENT-STATE-CHANGE id=-1 state=1 >> >>>> On 27 mrt, 11:39, Androidphan <niels.kee...@tass.nl> wrote: >> >>>>> I'm getting the following error at the moment: >>>>> D/WifiHW ( 2325): Unable to open connection to supplicant on "/data/ >>>>> system/wpa_supplicant/wlan0": No such file or directory >> >>>>> I got wpa_supplicant running. >> >>>>> # ls -l /data/system/wpa_supplicant/ >>>>> srwxrwx--- root system 2009-03-27 11:39 wlan0 >> >>>>> So it exists. >> >>>>> Why is this?? >> >>> Regards Michael- 隱藏被引用文字 - >> >> - 顯示被引用文字 - > > Roman Baumgaertner Sr. SW Engineer-OSDC ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---