You are not logged in.

#1 2006-08-25 08:01:04

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

WPA-PSK with wpa_supplicant and ipw3945

Hi, I've just bought a notebook with the ipw3945 wifi nic and I can't associate with my WPA-PSK home network. The AP is running Slackware/hostapd 0.5.4/madwifi 0.9.2. I don't have any problems associating using Windows XP.
hostapd.conf:

interface=ath0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=--1
logger_stdout_level=2
debug=0
ctrl_interface_group=0
macaddr_acl=0
deny_mac_file=/etc/hostapd.deny
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
dump_file=/tmp/hostapd.dump
ssid=Continuity
wpa=3
wpa_passphrase=<some_wpa_string_key>
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP

I installed Arch (current) on the new laptop: kernel 2.6.17.11/ipw3945 1.0.12/ipw3945d 1.7.22/wpa_supplicant 0.48-3. Everything seemd to go exactly as planned, I started ipw3945d and the module and firmware were loaded. I could see the thing in iwconfig, and no errors were reported in dmesg. I could easily scan for networks etc: usual stuff.

So I did exactly what http://wiki.archlinux.org/index.php/Wpa_supplicant told me to:

iwconfig eth1 mode managed essid Continuity channel 6
ifconfig eth1 up

Then I edited wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
        ssid="Continuity"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP WEP104 WEP40
        psk="<some_wpa_string_key>
}

and run:

wpa_supplicant -Dwext -i eth1 -c /etc/wpa_supplicant.conf -d

And then... nothing worked.

Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=1
Priority group 0
   id=0 ssid='Continuity'
Initializing interface (2) 'eth1'
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)=20 WE(source)=16 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
Own MAC address: 00:13:02:3e:94:50
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
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Added interface eth1
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 784 bytes of scan results (4 BSSes)
Scan results: 4
Selecting BSS from priority group 0
0: 00:0f:a3:42:20:e7 ssid='Continuity' wpa_ie_len=28 rsn_ie_len=26 caps=0x11
   selected based on WPA IE
Trying to associate with 00:0f:a3:42:20:e7 (SSID='Continuity' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 2
WPA: set AP WPA IE - hexdump(len=28): dd 1a 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 04 00 50 f2 02 01 00 00 50 f2 02
WPA: set AP RSN IE - hexdump(len=26): 30 18 01 00 00 0f ac 02 02 00 00 0f ac 04 00 0f ac 02 01 00 00 0f ac 02 00 00
WPA: using GTK TKIP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RSN: Ignored PMKID candidate without preauth flag
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b1a len=19
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:00:00:00:00:00 into blacklist
State: ASSOCIATING -> DISCONNECTED
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 983 bytes of scan results (5 BSSes)
(......)

I just don't know what to do. I've googled for the last hour for any clues. I tried different wpa_suplicant.conf options, i tried different -D drivers (wext and ipw) - nothing.

Anyone could help?

[/url]

Offline

#2 2006-08-25 14:45:07

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: WPA-PSK with wpa_supplicant and ipw3945

Nevermind. Updating wpa_supplicant to 0.5.2 and ipw3945 to 1.1.0 seems to have solved the problem.

Offline

Board footer

Powered by FluxBB