windows can connect, ubuntu not

Nazeer Khan Nazeer.Khan
Fri Aug 31 22:34:33 PDT 2007


Hi,

The PSK seems to be incorrect. The 3 MSG of 4-way handshake is encrypted.
Check the PSK on the station and confirm that it is the same as on AP. You
can also find a debug MSG on STA if u are using wpa supplicant.

Cheers


On Sat, September 1, 2007 5:05 am, joerg at schoppet.de said:
> Hi,
>
> I've set up hostap on a ubuntu-server with an atheros-card.
> - Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC
> (rev 01)
>
> hostapd v0.5.5
> wpa_supplicant v0.5.5
>
> I've configured the card in master-mode and setup hostapd to use wpa.
>
> If I use a windows-machine as client, everything is ok.
> If I use a ubuntu-machine as client, I get no ip-address.
>
> If I start "hostapd -dd /etc/hostapd/hostapd.conf" it shows the following:
> Configuration file: /etc/hostapd/hostapd.conf
> ctrl_interface_group=0
> madwifi_set_iface_flags: dev_up=0
> madwifi_set_privacy: enabled=0
> Using interface ath0 with hwaddr 00:60:b3:4e:f6:db and ssid
> 'my_private_ap'
> SSID - hexdump_ascii(len=13):
>      6d 79 5f 70 72 69 76 61 74 65 5f 61 70            my_private_ap
> PSK (ASCII passphrase) - hexdump_ascii(len=20):
>      57 69 65 73 6f 3f 57 65 73 68 61 6c 62 3f 57 61   Wieso?Weshalb?Wa
>      72 75 6d 3f                                       rum?
> PSK (from passphrase) - hexdump(len=32): 71 af d1 7f 61 50 ab bf cd f7 fd
> ca a2 31 ce d6 bd f0 f2 db 0b f3 40 dc e1 bc 46 e6 66 44 8c ec
> 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=0x3
> WPA: group state machine entering state GTK_INIT
> GMK - hexdump(len=32): [REMOVED]
> GTK - hexdump(len=32): [REMOVED]
> WPA: group state machine entering state SETKEYSDONE
> madwifi_set_key: alg=TKIP addr=00:00:00:00:00:00 key_idx=1
> madwifi_set_privacy: enabled=1
> SIOCGIWRANGE: WE(compiled)=21 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
> ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
> Could not connect to kernel driver.
> Deauthenticate all stations
> madwifi_set_iface_flags: dev_up=1
> l2_packet_receive - recvfrom: Network is down
> Wireless event: cmd=0x8b19 len=8
>
>
> As soon as I bring up the ubuntu machine, I see the following:
> Wireless event: cmd=0x8c03 len=20
> ath0: STA 00:90:96:b8:23:53 IEEE 802.11: associated
>   New STA
> ath0: STA 00:90:96:b8:23:53 WPA: event 1 notification
> madwifi_del_key: addr=00:90:96:b8:23:53 key_idx=0
> ath0: STA 00:90:96:b8:23:53 WPA: start authentication
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state INITIALIZE
> madwifi_del_key: addr=00:90:96:b8:23:53 key_idx=0
> madwifi_set_sta_authorized: addr=00:90:96:b8:23:53 authorized=0
> ath0: STA 00:90:96:b8:23:53 IEEE 802.1X: unauthorizing port
> WPA: 00:90:96:b8:23:53 WPA_PTK_GROUP entering state IDLE
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state AUTHENTICATION
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state AUTHENTICATION2
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state INITPSK
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state PTKSTART
> ath0: STA 00:90:96:b8:23:53 WPA: sending 1/4 msg of 4-Way Handshake
> WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 ie_len=0
> gtk_len=0 keyidx=0 encr=0)
> TX EAPOL - hexdump(len=113): 00 90 96 b8 23 53 00 60 b3 4e f6 db 88 8e 02
> 03 00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 01 69 be 30 80 ad 64 1c 42 2d
> ae 75 56 ba a1 e2 64 1f b6 c8 d9 3b 12 c5 df d3 a9 11 38 e3 5c b3 ad 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:90:96:b8:23:53 WPA: EAPOL-Key timeout
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state PTKSTART
> ath0: STA 00:90:96:b8:23:53 WPA: sending 1/4 msg of 4-Way Handshake
> WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 ie_len=0
> gtk_len=0 keyidx=0 encr=0)
> TX EAPOL - hexdump(len=113): 00 90 96 b8 23 53 00 60 b3 4e f6 db 88 8e 02
> 03 00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 02 69 be 30 80 ad 64 1c 42 2d
> ae 75 56 ba a1 e2 64 1f b6 c8 d9 3b 12 c5 df d3 a9 11 38 e3 5c b3 ad 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: 121 bytes from 00:90:96:b8:23:53
>    IEEE 802.1X: version=1 type=3 length=117
> ath0: STA 00:90:96:b8:23:53 WPA: received EAPOL-Key frame (2/4 Pairwise)
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state PTKCALCNEGOTIATING
> PMK - hexdump(len=32): [REMOVED]
> PTK - hexdump(len=64): [REMOVED]
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state PTKCALCNEGOTIATING2
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state PTKINITNEGOTIATING
> madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
> ath0: STA 00:90:96:b8:23:53 WPA: sending 3/4 msg of 4-Way Handshake
> WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=54
> gtk_len=32 keyidx=1 encr=1)
> Plaintext EAPOL-Key Key Data - hexdump(len=104): [REMOVED]
> TX EAPOL - hexdump(len=217): 00 90 96 b8 23 53 00 60 b3 4e f6 db 88 8e 02
> 03 00 c7 02 13 ca 00 10 00 00 00 00 00 00 00 03 69 be 30 80 ad 64 1c 42 2d
> ae 75 56 ba a1 e2 64 1f b6 c8 d9 3b 12 c5 df d3 a9 11 38 e3 5c b3 ad 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 69 04 2e 8b 4c c8 f9 6f 55 da 24 b6 da c4 ef df 00 68 2a d9
> 90 b0 21 78 3f ec a3 91 8d 88 6d 68 a3 a2 b7 4d 9b 49 5a 48 72 b0 4b 80 a1
> 77 8c c6 32 71 f5 ec 5e 61 e2 8a 6f bd 18 99 03 d5 b6 8b 94 11 f6 99 3a 35
> 6c f6 fb 20 56 e7 6b b8 d4 b5 fc 05 26 0f bc 9d f3 69 32 6a a6 e8 4a e0 34
> ea 12 d7 8f ac 4d 38 bd 5d 09 9f f8 7e b1 1c 72 90 99 a4 d4 0a be 5d 2b 69
> 2e 65
> ath0: STA 00:90:96:b8:23:53 WPA: EAPOL-Key timeout
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state PTKINITNEGOTIATING
> madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
> ath0: STA 00:90:96:b8:23:53 WPA: sending 3/4 msg of 4-Way Handshake
> WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=54
> gtk_len=32 keyidx=1 encr=1)
> Plaintext EAPOL-Key Key Data - hexdump(len=104): [REMOVED]
> TX EAPOL - hexdump(len=217): 00 90 96 b8 23 53 00 60 b3 4e f6 db 88 8e 02
> 03 00 c7 02 13 ca 00 10 00 00 00 00 00 00 00 04 69 be 30 80 ad 64 1c 42 2d
> ae 75 56 ba a1 e2 64 1f b6 c8 d9 3b 12 c5 df d3 a9 11 38 e3 5c b3 ad 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 12 2f c9 0e 6b 22 27 5c 05 12 b0 13 e0 60 0c 6c 00 68 2a d9
> 90 b0 21 78 3f ec a3 91 8d 88 6d 68 a3 a2 b7 4d 9b 49 5a 48 72 b0 4b 80 a1
> 77 8c c6 32 71 f5 ec 5e 61 e2 8a 6f bd 18 99 03 d5 b6 8b 94 11 f6 99 3a 35
> 6c f6 fb 20 56 e7 6b b8 d4 b5 fc 05 26 0f bc 9d f3 69 32 6a a6 e8 4a e0 34
> ea 12 d7 8f ac 4d 38 bd 5d 09 9f f8 7e b1 1c 72 90 99 a4 d4 0a be 5d 2b 69
> 2e 65
> ath0: STA 00:90:96:b8:23:53 WPA: EAPOL-Key timeout
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state PTKINITNEGOTIATING
> madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
> ath0: STA 00:90:96:b8:23:53 WPA: sending 3/4 msg of 4-Way Handshake
> WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=54
> gtk_len=32 keyidx=1 encr=1)
> Plaintext EAPOL-Key Key Data - hexdump(len=104): [REMOVED]
> TX EAPOL - hexdump(len=217): 00 90 96 b8 23 53 00 60 b3 4e f6 db 88 8e 02
> 03 00 c7 02 13 ca 00 10 00 00 00 00 00 00 00 05 69 be 30 80 ad 64 1c 42 2d
> ae 75 56 ba a1 e2 64 1f b6 c8 d9 3b 12 c5 df d3 a9 11 38 e3 5c b3 ad 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 af 2d c7 be d9 de b3 90 93 f9 18 07 a3 57 31 5a 00 68 2a d9
> 90 b0 21 78 3f ec a3 91 8d 88 6d 68 a3 a2 b7 4d 9b 49 5a 48 72 b0 4b 80 a1
> 77 8c c6 32 71 f5 ec 5e 61 e2 8a 6f bd 18 99 03 d5 b6 8b 94 11 f6 99 3a 35
> 6c f6 fb 20 56 e7 6b b8 d4 b5 fc 05 26 0f bc 9d f3 69 32 6a a6 e8 4a e0 34
> ea 12 d7 8f ac 4d 38 bd 5d 09 9f f8 7e b1 1c 72 90 99 a4 d4 0a be 5d 2b 69
> 2e 65
> ath0: STA 00:90:96:b8:23:53 WPA: EAPOL-Key timeout
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state PTKINITNEGOTIATING
> madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
> ath0: STA 00:90:96:b8:23:53 WPA: sending 3/4 msg of 4-Way Handshake
> WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=54
> gtk_len=32 keyidx=1 encr=1)
> Plaintext EAPOL-Key Key Data - hexdump(len=104): [REMOVED]
> TX EAPOL - hexdump(len=217): 00 90 96 b8 23 53 00 60 b3 4e f6 db 88 8e 02
> 03 00 c7 02 13 ca 00 10 00 00 00 00 00 00 00 06 69 be 30 80 ad 64 1c 42 2d
> ae 75 56 ba a1 e2 64 1f b6 c8 d9 3b 12 c5 df d3 a9 11 38 e3 5c b3 ad 00 00
> 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00
> 00 00 00 00 00 d2 54 9a 3c 7a a0 f7 e8 0f 45 28 32 47 e6 e5 a6 00 68 2a d9
> 90 b0 21 78 3f ec a3 91 8d 88 6d 68 a3 a2 b7 4d 9b 49 5a 48 72 b0 4b 80 a1
> 77 8c c6 32 71 f5 ec 5e 61 e2 8a 6f bd 18 99 03 d5 b6 8b 94 11 f6 99 3a 35
> 6c f6 fb 20 56 e7 6b b8 d4 b5 fc 05 26 0f bc 9d f3 69 32 6a a6 e8 4a e0 34
> ea 12 d7 8f ac 4d 38 bd 5d 09 9f f8 7e b1 1c 72 90 99 a4 d4 0a be 5d 2b 69
> 2e 65
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state DISCONNECT
> hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA
> 00:90:96:b8:23:53 reason 2
> madwifi_sta_deauth: addr=00:90:96:b8:23:53 reason_code=2
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state DISCONNECTED
> WPA: 00:90:96:b8:23:53 WPA_PTK entering state INITIALIZE
> madwifi_del_key: addr=00:90:96:b8:23:53 key_idx=0
> ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
> madwifi_set_sta_authorized: addr=00:90:96:b8:23:53 authorized=0
> ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
> ath0: STA 00:90:96:b8:23:53 IEEE 802.1X: unauthorizing port
> Could not set station 00:90:96:b8:23:53 flags for kernel driver
> (errno=29).
> ath0: STA 00:90:96:b8:23:53 IEEE 802.11: deauthenticated due to local
> deauth request
> Wireless event: cmd=0x8c02 len=100
> Custom wireless event: 'STA-TRAFFIC-STAT
> mac=00:90:96:b8:23:53
> rx_packets=1
> rx_bytes=135
> tx_packets=6
> tx_bytes=1058
> '
> Wireless event: cmd=0x8c04 len=20
> ath0: STA 00:90:96:b8:23:53 IEEE 802.11: disassociated
>
>
> Can anybody give me a hint/tip/trick?
>
> Regards
>
> Joerg Schoppet
>
> _______________________________________________
> HostAP mailing list
> HostAP at shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>


-- 
Regards,

Nazeer Khan
Research Student
Networks and Pervasive Computing
National ICT Australia Limited
Phone: +61 2 8374 5554
Mobile: +61 415627442

The imagination driving Australia's ICT future.





More information about the Hostap mailing list