OpenWrt Forum Archive

Topic: WPA supplicant troubles

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,
I'm running Kamikaze r7243 on Compex WP54-WRT. I set my board as a client:

root@OpenWrt:~# wlanconfig ath0 create wlandev wifi0 wlanmode sta
ath0

Then I wanted to use WPA Supplicant to associate the board to a Linksys WRT54GL running OpenWrt WhiteRussian. WPA Supplicant did not create by itself its configuration file, so I manually wrote /etc/wpa_supplicant.conf

ap_scan=2
fast_reauth=1
network={
ssid="foo"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
psk="<MY_KEY>"
pairwise=TKIP
group=TKIP
priority=5
}

On Linksys side, I set these settings on the Webif 0.2.1:

Wireless Interface: Enabled
ESSID Broadcast: Show
ESSID: foo
Channel: 11
Mode: Access point

Encryption type: WPA (PSK)
WPA Mode: WPA1
WPA Algorithms: RC4 (TKIP)
WPA PSK: <MY_KEY>

Running WPA Supplicant on Compex board I had these results:

root@OpenWrt:/# wpa_supplicant -i ath0 -D wext -c /etc/wpa_supplicant.conf
Trying to associate with SSID 'foo'
Associated with 00:14:bf:**:**:**
Authentication with 00:14:bf:**:**:** timed out.
Trying to associate with SSID 'foo'
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Associated with 00:14:bf:**:**:**
Authentication with 00:14:bf:**:**:** timed out.
Trying to associate with SSID 'foo'
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Associated with 00:00:00:00:00:00
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Associated with 00:14:bf:**:**:**

and so on...

Am I doing something wrong?
Thank you.

(Last edited by ggp81 on 12 Jun 2007, 13:32)

Solved.
I was trying to do everything using the shell. I just have tried to configure wpa settings using webif

The discussion might have continued from here.