Are you talking abt following steps:
1. I do not get, what changes we need to make in functions.sh??
2. In the 2nd step, Do I have to modify functions.sh again???
---
1) strace reveals that the line
WPA_ID=$(wpa_cli add_network)
in /etc/wpa_supplicant/function.sh sometimes sets WPA_ID to the value
of "'ADD_NETWORK' command timed out." instead of the usual "0". This
then causes functions.sh to run funny stuff like
10622 execve("/sbin/wpa_cli", ["/sbin/wpa_cli", "-p",
"/var/run/wpa_supplicant", "-i", "wlan", "set_network", "'ADD_NETWORK'",
"command", "timed", "out.", "ssid", "\"Langtao\""], [/* 14 vars */]) = 0
10627 execve("/sbin/wpa_cli", ["/sbin/wpa_cli", "-p",
"/var/run/wpa_supplicant", "-i", "wlan", "set_network", "'ADD_NETWORK'",
"command", "timed", "out.", "psk", "\"CENSORED\""], [/* 14 vars */]) = 0
10628 execve("/sbin/wpa_cli", ["/sbin/wpa_cli", "-p",
"/var/run/wpa_supplicant", "-i", "wlan", "enable_network", "'ADD_NETWORK'
command timed out."], [/* 14 vars */]) = 0
Maybe wpa_cli gets to run before wpasupplicant has managed to bind its
unix socket?
In any case, functions.sh should detect the case where wpa_cli fails
and not try to pass its error message as an argument for other
commands...
2) For now I can connect to the network using
sudo killall dhclient
sudo killall wpa_supplicant
om wifi power 0
sleep 4
om wifi power 1
sleep 4
sudo /sbin/wpa_supplicant -B -s -P /var/run/wpa_supplicant.wlan.pid -i wlan -D
wext -t -ddd -C /var/run/wpa_supplicant
sleep 4
sudo wpa_cli -p /var/run/wpa_supplicant -i wlan add_network
sleep 4
sudo wpa_cli -p /var/run/wpa_supplicant -i wlan set_+network 0 ssid
"\"Langtao\""
sleep 4
sudo wpa_cli -p /var/run/wpa_supplicant -i wlan set_network 0 psk "\"CENSORED\""
sleep 4
sudo wpa_cli -p /var/run/wpa_supplicant -i wlan enable_network 0
sleep 4
sudo dhclient -d wlan
but I'd definitely want to get back to using ifup and ifdown.
3) The device is an openmoko freerunner gta02v5 running debian
unstable with the following exceptions:
3.1) linux is from
http://git.openmoko.org/?p=kernel.git;a=commit;h=a3587e4ed77974adfb057af261aaeea4022018e8
and uses the ar6000 kernel module for wlan
3.2) Qi (boot loader) is from
http://git.openmoko.org/?p=qi.git;a=commit;h=9ef7754b8243457ce9e3edb01bb078fac1f77ac1
-Original Message-
From: support-boun...@lists.openmoko.org
[mailto:support-boun...@lists.openmoko.org] On Behalf Of Timo Juhani Lindfors
Sent: Wednesday, August 04, 2010 4:59 PM
To: Support for Openmoko Device Owners
Subject: Re: EAP_TLS and wpa_supplicant
Harshil Anil Kumar Shah writes:
> How to solve this bug???
Try the manual steps I listed in the report.
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support