Using versions<br>
hostapd 0.5.7<br><br>
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.
<br><br>Any help very much appreciated<br><br>Configuration file: /etc/hostapd/hostapd.conf<br>ctrl_interface_group=0<br>madwifi_set_iface_flags: dev_up=0<br>madwifi_set_privacy: enabled=0<br>BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
<br>SIOCGIWRANGE: WE(compiled)=22 WE(source)=13 enc_capa=0xf<br>ath0: IEEE 802.11 Fetching hardware channel/rate support not supported.<br>Flushing old station entries<br>madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
<br>madwifi_sta_deauth: Failed to deauth STA (addr ff:ff:ff:ff:ff:ff reason 3)<br>Could not connect to kernel driver.<br>Deauthenticate all stations<br>Mode: IEEE 802.11b Channel: 60 Frequency: 0 MHz<br>madwifi_del_key: addr=00:00:00:00:00:00 key_idx=0
<br>madwifi_del_key: addr=00:00:00:00:00:00 key_idx=1<br>madwifi_del_key: addr=00:00:00:00:00:00 key_idx=2<br>madwifi_del_key: addr=00:00:00:00:00:00 key_idx=3<br>Using interface ath0 with hwaddr 00:11:95:94:22:2c and ssid 'instance89'
<br>SSID - hexdump_ascii(len=10):<br> *****OBFUSCATED******<br>PSK (ASCII passphrase) - hexdump_ascii(len=12):<br> *****OBFUSCATED******<br>PSK (from passphrase) - hexdump(len=32): *****OBFUSCATED******<br>madwifi_set_ieee8021x: enabled=1
<br>madwifi_configure_wpa: group key cipher=1<br>madwifi_configure_wpa: pairwise key ciphers=0xa<br>madwifi_configure_wpa: key management algorithms=0x2<br>madwifi_configure_wpa: rsn capabilities=0x0<br>madwifi_configure_wpa: enable WPA=0x1
<br>madwifi_set_privacy: enabled=0<br>WPA: group state machine entering state GTK_INIT (VLAN-ID 0)<br>GMK - hexdump(len=32): [REMOVED]<br>GTK - hexdump(len=32): [REMOVED]<br>WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
<br>madwifi_set_key: alg=TKIP addr=00:00:00:00:00:00 key_idx=1<br>madwifi_set_privacy: enabled=1<br>madwifi_set_iface_flags: dev_up=1<br>ath0: Setup of interface done.<br>Wireless event: cmd=0x8b1a len=19<br>Wireless event: cmd=0x8c03 len=20
<br>ath0: STA 00:19:4f:9e:cd:26 IEEE 802.11: associated<br> New STA<br>ath0: STA 00:19:4f:9e:cd:26 WPA: event 1 notification<br>madwifi_del_key: addr=00:19:4f:9e:cd:26 key_idx=0<br>ath0: STA 00:19:4f:9e:cd:26 WPA: start authentication
<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state INITIALIZE<br>madwifi_del_key: addr=00:19:4f:9e:cd:26 key_idx=0<br>madwifi_set_sta_authorized: addr=00:19:4f:9e:cd:26 authorized=0<br>ath0: STA 00:19:4f:9e:cd:26 IEEE 802.1X
: unauthorizing port<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK_GROUP entering state IDLE<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state AUTHENTICATION<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state AUTHENTICATION2<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state INITPSK
<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state PTKSTART<br>ath0: STA 00:19:4f:9e:cd:26 WPA: sending 1/4 msg of 4-Way Handshake<br>WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)<br>
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
<br>ath0: STA 00:19:4f:9e:cd:26 WPA: EAPOL-Key timeout<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state PTKSTART<br>ath0: STA 00:19:4f:9e:cd:26 WPA: sending 1/4 msg of 4-Way Handshake<br>WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
<br>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
<br>ath0: STA 00:19:4f:9e:cd:26 WPA: EAPOL-Key timeout<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state PTKSTART<br>ath0: STA 00:19:4f:9e:cd:26 WPA: sending 1/4 msg of 4-Way Handshake<br>WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
<br>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
<br>ath0: STA 00:19:4f:9e:cd:26 WPA: EAPOL-Key timeout<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state PTKSTART<br>ath0: STA 00:19:4f:9e:cd:26 WPA: sending 1/4 msg of 4-Way Handshake<br>WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
<br>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
<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state DISCONNECT<br>hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:19:4f:9e:cd:26 reason 2<br>madwifi_sta_deauth: addr=00:19:4f:9e:cd:26 reason_code=2
<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state DISCONNECTED<br>WPA: 00:19:4f:9e:cd:26 WPA_PTK entering state INITIALIZE<br>madwifi_del_key: addr=00:19:4f:9e:cd:26 key_idx=0<br>madwifi_del_key: Failed to delete key (addr 00:19:4f:9e:cd:26 key_idx 0)
<br>madwifi_set_sta_authorized: addr=00:19:4f:9e:cd:26 authorized=0<br>madwifi_set_sta_authorized: Failed to unauthorize STA 00:19:4f:9e:cd:26<br>ath0: STA 00:19:4f:9e:cd:26 IEEE 802.1X: unauthorizing port<br>Could not set station 00:19:4f:9e:cd:26 flags for kernel driver (errno=29).
<br>ath0: STA 00:19:4f:9e:cd:26 IEEE 802.11: deauthenticated due to local deauth request<br>Wireless event: cmd=0x8c02 len=97<br>Custom wireless event: 'STA-TRAFFIC-STAT<br>mac=00:19:4f:9e:cd:26<br>rx_packets=0<br>rx_bytes=0
<br>tx_packets=4<br>tx_bytes=428<br>'<br>Wireless event: cmd=0x8c04 len=20<br>ath0: STA 00:19:4f:9e:cd:26 IEEE 802.11: disassociated<br>Wireless event: cmd=0x8c03 len=20<br><br>=========================================
<br>=========================================<br><br>However, it works fine on a windows machine<br><br>ath0: STA 00:19:7e:53:90:54 IEEE 802.11: associated<br> New STA<br>ath0: STA 00:19:7e:53:90:54 WPA: event 1 notification
<br>madwifi_del_key: addr=00:19:7e:53:90:54 key_idx=0<br>ath0: STA 00:19:7e:53:90:54 WPA: start authentication<br>WPA: 00:19:7e:53:90:54 WPA_PTK entering state INITIALIZE<br>madwifi_del_key: addr=00:19:7e:53:90:54 key_idx=0
<br>madwifi_set_sta_authorized: addr=00:19:7e:53:90:54 authorized=0<br>ath0: STA 00:19:7e:53:90:54 IEEE 802.1X: unauthorizing port<br>WPA: 00:19:7e:53:90:54 WPA_PTK_GROUP entering state IDLE<br>WPA: 00:19:7e:53:90:54 WPA_PTK entering state AUTHENTICATION
<br>WPA: 00:19:7e:53:90:54 WPA_PTK entering state AUTHENTICATION2<br>WPA: 00:19:7e:53:90:54 WPA_PTK entering state INITPSK<br>WPA: 00:19:7e:53:90:54 WPA_PTK entering state PTKSTART<br>ath0: STA 00:19:7e:53:90:54 WPA: sending 1/4 msg of 4-Way Handshake
<br>WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)<br>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
<br>IEEE 802.1X: 125 bytes from 00:19:7e:53:90:54<br> IEEE 802.1X: version=1 type=3 length=121<br>ath0: STA 00:19:7e:53:90:54 WPA: received EAPOL-Key frame (2/4 Pairwise)<br>WPA: 00:19:7e:53:90:54 WPA_PTK entering state PTKCALCNEGOTIATING
<br>PMK - hexdump(len=32): [REMOVED]<br>PTK - hexdump(len=64): [REMOVED]<br>WPA: 00:19:7e:53:90:54 WPA_PTK entering state PTKCALCNEGOTIATING2<br>WPA: 00:19:7e:53:90:54 WPA_PTK entering state PTKINITNEGOTIATING<br>madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
<br>ath0: STA 00:19:7e:53:90:54 WPA: sending 3/4 msg of 4-Way Handshake<br>WPA: Send EAPOL(secure=0 mic=1 ack=1 install=1 pairwise=8 kde_len=28 keyidx=0 encr=0)<br>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
<br>IEEE 802.1X: 99 bytes from 00:19:7e:53:90:54<br> IEEE 802.1X: version=1 type=3 length=95<br>ath0: STA 00:19:7e:53:90:54 WPA: received EAPOL-Key frame (4/4 Pairwise)<br>WPA: 00:19:7e:53:90:54 WPA_PTK entering state PTKINITDONE
<br>madwifi_set_key: alg=CCMP addr=00:19:7e:53:90:54 key_idx=0<br>madwifi_set_sta_authorized: addr=00:19:7e:53:90:54 authorized=1<br>ath0: STA 00:19:7e:53:90:54 IEEE 802.1X: authorizing port<br>madwifi_sta_clear_stats: addr=00:19:7e:53:90:54
<br>ath0: STA 00:19:7e:53:90:54 WPA: pairwise key handshake completed (WPA)<br>WPA: 00:19:7e:53:90:54 WPA_PTK_GROUP entering state REKEYNEGOTIATING<br>madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1<br>ath0: STA 00:19:7e:53:90:54 WPA: sending 1/2 msg of Group Key Handshake
<br>WPA: Send EAPOL(secure=1 mic=1 ack=1 install=0 pairwise=0 kde_len=32 keyidx=1 encr=1)<br>Plaintext EAPOL-Key Key Data - hexdump(len=40): [REMOVED]<br>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
<br>IEEE 802.1X: 99 bytes from 00:19:7e:53:90:54<br> IEEE 802.1X: version=1 type=3 length=95<br>ath0: STA 00:19:7e:53:90:54 WPA: received EAPOL-Key frame (2/2 Group)<br>WPA: 00:19:7e:53:90:54 WPA_PTK_GROUP entering state REKEYESTABLISHED
<br>ath0: STA 00:19:7e:53:90:54 WPA: group key handshake completed (WPA)<br><br clear="all">-- <br>Pete Savage - cbx33::silentk<br><a href="http://wiki.ubuntu.com/PeteSavage">wiki.ubuntu.com/PeteSavage</a>