[pkg-wpa-devel] Can't connect to my AP in "managed mode"
Kel Modderman
kelrin at tpg.com.au
Fri Apr 14 16:06:12 UTC 2006
To debug this sort of problem, I always revert to doing each step by hand.
In one terminal, I start the daemon:
wpa_supplicant -W -ddd -P /var/run/wpa_supplicant.ath0.pid -i ath0 -c
/var/run/wpa_supplicant -D wext
In another terminal, I attach a wpa_cli console:
wpa_cli -p /var/run/wpa_supplicant -i ath0
Then in the wpa_cli console, emulate the script by plugging in the
required network parameters:
> add_network
0
> set_network 0 ssid "kelnet"
OK
> set_network 0 key_mgmt WPA-PSK
OK
> set_network 0 proto RSN
OK
> set_network 0 pairwise CCMP
OK
> set_network 0 group CCMP
OK
> set_network 0 psk
06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
OK
> enable_network 0
OK
> <2>Trying to associate with 00:13:10:41:7e:1f (SSID='kelnet'
freq=2422 MHz)
<2>Associated with 00:13:10:41:7e:1f
<2>WPA: Key negotiation completed with 00:13:10:41:7e:1f [PTK=CCMP GTK=CCMP]
<2>CTRL-EVENT-CONNECTED - Connection to 00:13:10:41:7e:1f completed (auth)
Thanks, Kel.
More information about the Pkg-wpa-devel
mailing list