Multiple clients on ath0 authentication failure

Peter Savage silentkeystroke
Wed Dec 12 13:53:17 PST 2007


Using versions
hostapd 0.5.7

I think madwifi is built into my ubuntu gutsy restricted kernels.  I can't
seem to get the version.  This has previously worked ok with some linux
clients.  but at the moment I can't get my Nokia N800 to connect, or my
laptop.  A windows XP machine however connects fine as shown below.  I'm
really not sure what's happening here.  Occasionally clients will connect
but it usually takes a few tries.  At the moment however no linux based
clients seem able to connect.

Any help very much appreciated

Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
madwifi_set_iface_flags: dev_up=0
madwifi_set_privacy: enabled=0
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=13 enc_capa=0xf
ath0: IEEE 802.11 Fetching hardware channel/rate support not supported.
Flushing old station entries
madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
madwifi_sta_deauth: Failed to deauth STA (addr ff:ff:ff:ff:ff:ff reason 3)
Could not connect to kernel driver.
Deauthenticate all stations
Mode: IEEE 802.11b  Channel: 60  Frequency: 0 MHz
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=0
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=1
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=2
madwifi_del_key: addr=00:00:00:00:00:00 key_idx=3
Using interface ath0 with hwaddr 00:11:95:94:22:2c and ssid 'instance89'
SSID - hexdump_ascii(len=10):
     *****OBFUSCATED******
PSK (ASCII passphrase) - hexdump_ascii(len=12):
     *****OBFUSCATED******
PSK (from passphrase) - hexdump(len=32):      *****OBFUSCATED******
madwifi_set_ieee8021x: enabled=1
madwifi_configure_wpa: group key cipher=1
madwifi_configure_wpa: pairwise key ciphers=0xa
madwifi_configure_wpa: key management algorithms=0x2
madwifi_configure_wpa: rsn capabilities=0x0
madwifi_configure_wpa: enable WPA=0x1
madwifi_set_privacy: enabled=0
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=32): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
madwifi_set_key: alg=TKIP addr=00:00:00:00:00:00 key_idx=1
madwifi_set_privacy: enabled=1
madwifi_set_iface_flags: dev_up=1
ath0: Setup of interface done.
Wireless event: cmd=0x8b1a len=19
Wireless event: cmd=0x8c03 len=20
ath0: STA 00:19:4f:9e:cd:26 IEEE 802.11: associated
  New STA
ath0: STA 00:19:4f:9e:cd:26 WPA: event 1 notification
madwifi_del_key: addr=00:19:4f:9e:cd:26 key_idx=0
ath0: STA 00:19:4f:9e:cd:26 WPA: start authentication
WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:9e:cd:26 key_idx=0
madwifi_set_sta_authorized: addr=00:19:4f:9e:cd:26 authorized=0
ath0: STA 00:19:4f:9e:cd:26 IEEE 802.1X: unauthorizing port
WPA: 00:19:4f:9e:cd:26 WPA_PTK_GROUP entering state IDLE
WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state AUTHENTICATION
WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state AUTHENTICATION2
WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state INITPSK
WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:9e:cd:26 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0
encr=0)
TX EAPOL - hexdump(len=113): 00 19 4f 9e cd 26 00 11 95 94 22 2c 88 8e 02 03
00 5f fe 00 8a 00 10 00 00 00 00 00 00 00 01 bf 6f 4b 1c 15 46 72 45 18 d4
5f 1a 08 87 a3 c1 3d 76 af ad aa ba ad 7e a8 d2 df 4d 71 6b d9 f6 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ath0: STA 00:19:4f:9e:cd:26 WPA: EAPOL-Key timeout
WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:9e:cd:26 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0
encr=0)
TX EAPOL - hexdump(len=113): 00 19 4f 9e cd 26 00 11 95 94 22 2c 88 8e 02 03
00 5f fe 00 8a 00 10 00 00 00 00 00 00 00 02 bf 6f 4b 1c 15 46 72 45 18 d4
5f 1a 08 87 a3 c1 3d 76 af ad aa ba ad 7e a8 d2 df 4d 71 6b d9 f6 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ath0: STA 00:19:4f:9e:cd:26 WPA: EAPOL-Key timeout
WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:9e:cd:26 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0
encr=0)
TX EAPOL - hexdump(len=113): 00 19 4f 9e cd 26 00 11 95 94 22 2c 88 8e 02 03
00 5f fe 00 8a 00 10 00 00 00 00 00 00 00 03 bf 6f 4b 1c 15 46 72 45 18 d4
5f 1a 08 87 a3 c1 3d 76 af ad aa ba ad 7e a8 d2 df 4d 71 6b d9 f6 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ath0: STA 00:19:4f:9e:cd:26 WPA: EAPOL-Key timeout
WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:9e:cd:26 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0
encr=0)
TX EAPOL - hexdump(len=113): 00 19 4f 9e cd 26 00 11 95 94 22 2c 88 8e 02 03
00 5f fe 00 8a 00 10 00 00 00 00 00 00 00 04 bf 6f 4b 1c 15 46 72 45 18 d4
5f 1a 08 87 a3 c1 3d 76 af ad aa ba ad 7e a8 d2 df 4d 71 6b d9 f6 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA
00:19:4f:9e:cd:26 reason 2
madwifi_sta_deauth: addr=00:19:4f:9e:cd:26 reason_code=2
WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state DISCONNECTED
WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:9e:cd:26 key_idx=0
madwifi_del_key: Failed to delete key (addr 00:19:4f:9e:cd:26 key_idx 0)
madwifi_set_sta_authorized: addr=00:19:4f:9e:cd:26 authorized=0
madwifi_set_sta_authorized: Failed to unauthorize STA 00:19:4f:9e:cd:26
ath0: STA 00:19:4f:9e:cd:26 IEEE 802.1X: unauthorizing port
Could not set station 00:19:4f:9e:cd:26 flags for kernel driver (errno=29).
ath0: STA 00:19:4f:9e:cd:26 IEEE 802.11: deauthenticated due to local deauth
request
Wireless event: cmd=0x8c02 len=97
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:19:4f:9e:cd:26
rx_packets=0
rx_bytes=0
tx_packets=4
tx_bytes=428
'
Wireless event: cmd=0x8c04 len=20
ath0: STA 00:19:4f:9e:cd:26 IEEE 802.11: disassociated
Wireless event: cmd=0x8c03 len=20

=========================================
=========================================

However, it works fine on a windows machine

ath0: STA 00:19:7e:53:90:54 IEEE 802.11: associated
  New STA
ath0: STA 00:19:7e:53:90:54 WPA: event 1 notification
madwifi_del_key: addr=00:19:7e:53:90:54 key_idx=0
ath0: STA 00:19:7e:53:90:54 WPA: start authentication
WPA: 00:19:7e:53:90:54 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:7e:53:90:54 key_idx=0
madwifi_set_sta_authorized: addr=00:19:7e:53:90:54 authorized=0
ath0: STA 00:19:7e:53:90:54 IEEE 802.1X: unauthorizing port
WPA: 00:19:7e:53:90:54 WPA_PTK_GROUP entering state IDLE
WPA: 00:19:7e:53:90:54 WPA_PTK entering state AUTHENTICATION
WPA: 00:19:7e:53:90:54 WPA_PTK entering state AUTHENTICATION2
WPA: 00:19:7e:53:90:54 WPA_PTK entering state INITPSK
WPA: 00:19:7e:53:90:54 WPA_PTK entering state PTKSTART
ath0: STA 00:19:7e:53:90:54 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0
encr=0)
TX EAPOL - hexdump(len=113): 00 19 7e 53 90 54 00 11 95 94 22 2c 88 8e 02 03
00 5f fe 00 8a 00 10 00 00 00 00 00 00 00 01 c2 fd a7 82 ef a1 10 21 2b 09
56 8f a6 1d 74 03 a5 1e e1 5f 62 9e 30 ea ad 75 f9 70 83 9a 67 c7 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
IEEE 802.1X: 125 bytes from 00:19:7e:53:90:54
   IEEE 802.1X: version=1 type=3 length=121
ath0: STA 00:19:7e:53:90:54 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:19:7e:53:90:54 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
WPA: 00:19:7e:53:90:54 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 00:19:7e:53:90:54 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:7e:53:90:54 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=0 mic=1 ack=1 install=1 pairwise=8 kde_len=28
keyidx=0 encr=0)
TX EAPOL - hexdump(len=141): 00 19 7e 53 90 54 00 11 95 94 22 2c 88 8e 02 03
00 7b fe 01 ca 00 10 00 00 00 00 00 00 00 02 c2 fd a7 82 ef a1 10 21 2b 09
56 8f a6 1d 74 03 a5 1e e1 5f 62 9e 30 ea ad 75 f9 70 83 9a 67 c7 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 79 5f 62 93 04 9e 2f 9d b4 53 d5 21 b8 fa dd f7 00 1c 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
IEEE 802.1X: 99 bytes from 00:19:7e:53:90:54
   IEEE 802.1X: version=1 type=3 length=95
ath0: STA 00:19:7e:53:90:54 WPA: received EAPOL-Key frame (4/4 Pairwise)
WPA: 00:19:7e:53:90:54 WPA_PTK entering state PTKINITDONE
madwifi_set_key: alg=CCMP addr=00:19:7e:53:90:54 key_idx=0
madwifi_set_sta_authorized: addr=00:19:7e:53:90:54 authorized=1
ath0: STA 00:19:7e:53:90:54 IEEE 802.1X: authorizing port
madwifi_sta_clear_stats: addr=00:19:7e:53:90:54
ath0: STA 00:19:7e:53:90:54 WPA: pairwise key handshake completed (WPA)
WPA: 00:19:7e:53:90:54 WPA_PTK_GROUP entering state REKEYNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:7e:53:90:54 WPA: sending 1/2 msg of Group Key Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=0 pairwise=0 kde_len=32
keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=40): [REMOVED]
TX EAPOL - hexdump(len=153): 00 19 7e 53 90 54 00 11 95 94 22 2c 88 8e 02 03
00 87 fe 03 92 00 20 00 00 00 00 00 00 00 03 c2 fd a7 82 ef a1 10 21 2b 09
56 8f a6 1d 74 03 a5 1e e1 5f 62 9e 30 ea ad 75 f9 70 83 9a 67 bd 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 09 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 93 9d af 28 25 13 0e 33 61 94 21 df df 61 6a 9d 00 28 8f 02 ff
33 75 8c 26 a4 02 60 a3 66 0f 45 9d ac e2 f9 3d ca 09 c2 5d 29 93 8d e8 77
de d3 d7 fa 83 1a c2 c4 c5 fc 53 a4
IEEE 802.1X: 99 bytes from 00:19:7e:53:90:54
   IEEE 802.1X: version=1 type=3 length=95
ath0: STA 00:19:7e:53:90:54 WPA: received EAPOL-Key frame (2/2 Group)
WPA: 00:19:7e:53:90:54 WPA_PTK_GROUP entering state REKEYESTABLISHED
ath0: STA 00:19:7e:53:90:54 WPA: group key handshake completed (WPA)

-- 
Pete Savage - cbx33::silentk
wiki.ubuntu.com/PeteSavage
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20071212/28c43264/attachment.htm 



More information about the Hostap mailing list