(wireless-testing master-2009-08-31) Authentication Problem

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=5577

ZX81

01-09-2009 23:10:24

In the new wireless-testing release master-2009-08-31 the AP-Mode works again *great* ) .

But there is still one problem
My Squeezebox Boom and the iPod Touch booth authenticate without problems
on the Linux AP but my Windows XP notebook with the [b261aan0d]Intel 2200BG WLAN card[/b261aan0d]
needs minutes for the authentication process.

[quote261aan0d]lsmod

Module Size Used by
rt61pci 21280 0
crc_itu_t 1628 1 rt61pci
rt2x00pci 6876 1 rt61pci
rt2x00lib 28572 2 rt61pci,rt2x00pci
eeprom_93cx6 1692 1 rt61pci


modinfo rt2x00pci

filename /lib/modules/2.6.31-rc8-wl-34764-g40c1279/kernel/drivers/net/wireless/rt2x00/rt2x00pci.ko
license GPL
description rt2x00 pci library
version 2.3.0
author http//rt2x00.serialmonkey.com
srcversion B0094532E75ED61353F2AC4
depends rt2x00lib
vermagic 2.6.31-rc8-wl-34764-g40c1279 mod_unload VIAC7


modinfo rt61pci

filename /lib/modules/2.6.31-rc8-wl-34764-g40c1279/kernel/drivers/net/wireless/rt2x00/rt61pci.ko
license GPL
firmware rt2661.bin
firmware rt2561s.bin
firmware rt2561.bin
description Ralink RT61 PCI & PCMCIA Wireless LAN driver.
version 2.3.0
author http//rt2x00.serialmonkey.com
srcversion 2C3452705FF70346114D6EF
alias pciv00001814d00000401sv*sd*bc*sc*i*
alias pciv00001814d00000302sv*sd*bc*sc*i*
alias pciv00001814d00000301sv*sd*bc*sc*i*
depends rt2x00lib,rt2x00pci,eeprom_93cx6,crc-itu-t
vermagic 2.6.31-rc8-wl-34764-g40c1279 mod_unload VIAC7
parm nohwcryptDisable hardware encryption. (bool)
[/quote261aan0d]

The red marked section in the quote below loops for minutes in the log
before the Windows XP notebook with the Intel 2200BG card is able
to authenticate on the Linux AP

[quote261aan0d]
hostapd -v

hostapd v0.6.9
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi> and contributors


hostapd -dd /etc/hostapd/wpa2_ap.conf

Configuration file /etc/hostapd/wpa2_ap.conf
ctrl_interface_group=0
Opening raw packet socket for ifindex -1209147024
BSS count 1, BSSID mask ffffffffffff (0 bits)
SIOCGIWRANGE WE(compiled)=22 WE(source)=21 enc_capa=0xf
nl80211 Added 802.11b mode based on 802.11g information
Allowed channel mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=12 freq=2467 MHz max_tx_power=20 dBm
Allowed channel mode=1 chan=13 freq=2472 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=12 freq=2467 MHz max_tx_power=20 dBm
Allowed channel mode=0 chan=13 freq=2472 MHz max_tx_power=20 dBm
RATE[0] rate=10 flags=0x2
RATE[1] rate=20 flags=0x6
RATE[2] rate=55 flags=0x6
RATE[3] rate=110 flags=0x6
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Passive scanning not supported
Flushing old station entries
Deauthenticate all stations
Mode IEEE 802.11g Channel 7 Frequency 2442 MHz
Using interface wlan0 with hwaddr 00805axxxxxx and ssid 'WLAN_1'
SSID - hexdump_ascii(len=6)
57 4c 41 4e 5f 31 WLAN_1
PSK (ASCII passphrase) - hexdump_ascii(len=27)
[REMOVED]
PSK (from passphrase) - hexdump(len=32) [REMOVED]
WPA group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32) [REMOVED]
GTK - hexdump(len=16) [REMOVED]
WPA group state machine entering state SETKEYSDONE (VLAN-ID 0)
wlan0 Setup of interface done.
.......
------------------------------------begin loop------------------------------------------------
MGMT (TX callback) ACK
STA 000e35xxxxxx sent probe request for our SSID
MGMT (TX callback) ACK
mgmtproberesp cb
MGMT
mgmtauth
authentication STA=000e35xxxxxx auth_alg=0 auth_transaction=1 status_code=0 wep=0
New STA
wlan0 STA 000e35xxxxxx IEEE 802.11 authentication OK (open system)
wlan0 STA 000e35xxxxxx MLME MLME-AUTHENTICATE.indication(000e35xxxxxx, OPEN_SYSTEM)
wlan0 STA 000e35xxxxxx MLME MLME-DELETEKEYS.request(000e35xxxxxx)
authentication reply STA=000e35xxxxxx auth_alg=0 auth_transaction=2 resp=0 (IE len=0)
MGMT (TX callback) ACK
mgmtauth cb
wlan0 STA 000e35xxxxxx IEEE 802.11 authenticated
MGMT
mgmtassoc_req
association request STA=000e35xxxxxx capab_info=0x411 listen_interval=10
new AID 2
wlan0 STA 000e35xxxxxx IEEE 802.11 association OK (aid 2)
MGMT (TX callback) ACK
mgmtassoc_resp cb
wlan0 STA 000e35xxxxxx IEEE 802.11 associated (aid 2)
wlan0 STA 000e35xxxxxx MLME MLME-ASSOCIATE.indication(000e35xxxxxx)
wlan0 STA 000e35xxxxxx MLME MLME-DELETEKEYS.request(000e35xxxxxx)
wlan0 STA 000e35xxxxxx WPA event 1 notification
wlan0 STA 000e35xxxxxx WPA start authentication
WPA 000e35xxxxxx WPA_PTK entering state INITIALIZE
wlan0 STA 000e35xxxxxx IEEE 802.1X unauthorizing port
WPA 000e35xxxxxx WPA_PTK_GROUP entering state IDLE
WPA 000e35xxxxxx WPA_PTK entering state AUTHENTICATION
WPA 000e35xxxxxx WPA_PTK entering state AUTHENTICATION2
WPA 000e35xxxxxx WPA_PTK entering state INITPSK
WPA 000e35xxxxxx WPA_PTK entering state PTKSTART
wlan0 STA 000e35xxxxxx WPA sending 1/4 msg of 4-Way Handshake
WPA Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
IEEE 802.1X 000e35xxxxxx TX status - version=2 type=3 length=95 - ack=1
wlan0 STA 000e35xxxxxx WPA EAPOL-Key timeout
WPA 000e35xxxxxx WPA_PTK entering state PTKSTART
wlan0 STA 000e35xxxxxx WPA sending 1/4 msg of 4-Way Handshake
WPA Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
IEEE 802.1X 000e35xxxxxx TX status - version=2 type=3 length=95 - ack=1
wlan0 STA 000e35xxxxxx WPA EAPOL-Key timeout
WPA 000e35xxxxxx WPA_PTK entering state PTKSTART
wlan0 STA 000e35xxxxxx WPA sending 1/4 msg of 4-Way Handshake
WPA Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
IEEE 802.1X 000e35xxxxxx TX status - version=2 type=3 length=95 - ack=1
wlan0 STA 000e35xxxxxx WPA EAPOL-Key timeout
WPA 000e35xxxxxx WPA_PTK entering state PTKSTART
wlan0 STA 000e35xxxxxx WPA sending 1/4 msg of 4-Way Handshake
WPA Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
IEEE 802.1X 000e35xxxxxx TX status - version=2 type=3 length=95 - ack=1
wlan0 STA 000e35xxxxxx WPA EAPOL-Key timeout
WPA 000e35xxxxxx WPA_PTK entering state PTKSTART
WPA 000e35xxxxxx WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect WPA authenticator requests disconnect STA 000e35xxxxxx reason 2
WPA 000e35xxxxxx WPA_PTK entering state DISCONNECTED
WPA 000e35xxxxxx WPA_PTK entering state INITIALIZE
wlan0 STA 000e35xxxxxx IEEE 802.1X unauthorizing port
wlan0 STA 000e35xxxxxx IEEE 802.11 deauthenticated due to local deauth request

------------------------------------end loop------------------------------------------------
[/color261aan0d]
[/quote261aan0d]

At the moment I use the following rt2x00 version, they works fine without any problem.

[quote261aan0d]modinfo rt2x00pci

filename /lib/modules/2.6.31-rc1-wl-27576-g5b7eb32/kernel/drivers/net/wireless/rt2x00/rt2x00pci.ko
license GPL
description rt2x00 pci library
version 2.3.0
author http//rt2x00.serialmonkey.com
srcversion 6EFDEC00C4C7E38A0F59E19
depends rt2x00lib
vermagic 2.6.31-rc1-wl-27576-g5b7eb32 mod_unload VIAC7

modinfo rt61pci
filename /lib/modules/2.6.31-rc1-wl-27576-g5b7eb32/kernel/drivers/net/wireless/rt2x00/rt61pci.ko
license GPL
firmware rt2661.bin
firmware rt2561s.bin
firmware rt2561.bin
description Ralink RT61 PCI & PCMCIA Wireless LAN driver.
version 2.3.0
author http//rt2x00.serialmonkey.com
srcversion 67369019B1C95D9A437CB8D
alias pciv00001814d00000401sv*sd*bc*sc*i*
alias pciv00001814d00000302sv*sd*bc*sc*i*
alias pciv00001814d00000301sv*sd*bc*sc*i*
depends rt2x00lib,rt2x00pci,eeprom_93cx6,crc-itu-t
vermagic 2.6.31-rc1-wl-27576-g5b7eb32 mod_unload VIAC7
parm nohwcryptDisable hardware encryption. (bool)[/quote261aan0d]