EAP_TLS and wpa_supplicant

Harshil Anil Kumar Shah Harshil_Shah at infosys.com
Thu Aug 5 08:29:26 CEST 2010

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

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
and uses the ar6000 kernel module for wlan

3.2) Qi (boot loader) is from


-----Original Message-----
From: support-bounces at lists.openmoko.org [mailto:support-bounces at 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 <Harshil_Shah at infosys.com> writes:
> How to solve this bug???

Try the manual steps I listed in the report.

support mailing list
support at lists.openmoko.org

More information about the support mailing list