Ticket #1938 (closed defect: invalid)

Opened 2 months ago

Last modified 2 months ago

Can't get WPA-PSK to work

Reported by: michal@sawicz.net Assigned to:
Priority: major Milestone:
Component: madwifi: other Version: trunk
Keywords: Cc:
Patch is attached: 0

Description

I can't get madwifi with WPA-PSK working on debian stable, neither with stock (2.6.18) nor backported (2.6.22) kernel, stock madwifi (0.9.2), backported (0.9.4) and trunk, stock hostapd (0.5.5) and backported (0.5.10), all give more or less the same output, the error messages are:

ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument

I've found several tickets that mention these errors, all seem to be fixed, nevertheless I'm still getting these errors :|

hostapd 0.5.5:

serwer:~# hostapd -d /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
Configure bridge br0 for EAPOL traffic.
madwifi_set_privacy: enabled=0
Using interface ath0 with hwaddr 00:19:e0:84:07:07 and ssid 'Sawifi'
SSID - hexdump_ascii(len=6):
     53 61 77 69 66 69                                 Sawifi          
PSK (ASCII passphrase) - hexdump_ascii(len=12):
     74 65 73 74 69 6e 67 75 6a 65 6d 79               testingujemy    
PSK (from passphrase) - hexdump(len=32): 97 e4 f4 80 2e eb 37 f2 9e 73 90 5c b8 ea c7 86 c0 fc a6 21 10 ed ea f5 09 fa 26 47 dc 30 b8 d7
madwifi_configure_wpa: group key cipher=3
madwifi_configure_wpa: pairwise key ciphers=0x8
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=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE
madwifi_set_key: alg=CCMP addr=00:00:00:00:00:00 key_idx=1
madwifi_set_privacy: enabled=1
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
Deauthenticate all stations
l2_packet_receive - recvfrom: Network is down
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: associated
  New STA
ath0: STA 00:19:4f:d5:78:16 WPA: event 1 notification
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 WPA: start authentication
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
WPA: 00:19:4f:d5:78:16 WPA_PTK_GROUP entering state IDLE
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITPSK
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:d5:78:16 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)
IEEE 802.1X: 121 bytes from 00:19:4f:d5:78:16
   IEEE 802.1X: version=2 type=3 length=117
ath0: STA 00:19:4f:d5:78:16 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:19:4f:d5:78:16 reason 2
madwifi_sta_deauth: addr=00:19:4f:d5:78:16 reason_code=2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECTED
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
Could not set station 00:19:4f:d5:78:16 flags for kernel driver (errno=29).
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: deauthenticated due to local deauth request
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:19:4f:d5:78:16
rx_packets=1
rx_bytes=135
tx_packets=5
tx_bytes=855
'
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: disassociated
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: associated
  New STA
ath0: STA 00:19:4f:d5:78:16 WPA: event 1 notification
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 WPA: start authentication
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
WPA: 00:19:4f:d5:78:16 WPA_PTK_GROUP entering state IDLE
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITPSK
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:d5:78:16 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)
IEEE 802.1X: 121 bytes from 00:19:4f:d5:78:16
   IEEE 802.1X: version=2 type=3 length=117
ath0: STA 00:19:4f:d5:78:16 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:19:4f:d5:78:16 reason 2
madwifi_sta_deauth: addr=00:19:4f:d5:78:16 reason_code=2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECTED
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
Could not set station 00:19:4f:d5:78:16 flags for kernel driver (errno=29).
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: deauthenticated due to local deauth request
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:19:4f:d5:78:16
rx_packets=1
rx_bytes=135
tx_packets=5
tx_bytes=855
'
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: disassociated
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: associated
  New STA
ath0: STA 00:19:4f:d5:78:16 WPA: event 1 notification
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 WPA: start authentication
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
WPA: 00:19:4f:d5:78:16 WPA_PTK_GROUP entering state IDLE
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITPSK
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:d5:78:16 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)
IEEE 802.1X: 121 bytes from 00:19:4f:d5:78:16
   IEEE 802.1X: version=2 type=3 length=117
ath0: STA 00:19:4f:d5:78:16 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 ie_len=46 gtk_len=16 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:19:4f:d5:78:16 reason 2
madwifi_sta_deauth: addr=00:19:4f:d5:78:16 reason_code=2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECTED
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
Could not set station 00:19:4f:d5:78:16 flags for kernel driver (errno=29).
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: deauthenticated due to local deauth request
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:19:4f:d5:78:16
rx_packets=1
rx_bytes=135
tx_packets=5
tx_bytes=855
'
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: disassociated
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: associated
  New STA
ath0: STA 00:19:4f:d5:78:16 WPA: event 1 notification
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 WPA: start authentication
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
WPA: 00:19:4f:d5:78:16 WPA_PTK_GROUP entering state IDLE
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITPSK
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:d5:78:16 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)
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:19:4f:d5:78:16
rx_packets=0
rx_bytes=0
tx_packets=1
tx_bytes=107
'
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: disassociated
ath0: STA 00:19:4f:d5:78:16 WPA: event 2 notification
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECTED
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
Could not set station 00:19:4f:d5:78:16 flags for kernel driver (errno=29).

hostapd 0.5.10:

serwer:~# hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
Could not connect to kernel driver.
Using interface ath0 with hwaddr 00:19:e0:84:07:07 and ssid 'Sawifi'
l2_packet_receive - recvfrom: Network is down
Signal 2 received - terminating
serwer:~# hostapd -d /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
ctrl_interface_group=0
Configure bridge br0 for EAPOL traffic.
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
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
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
madwifi_set_privacy: enabled=0
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:19:e0:84:07:07 and ssid 'Sawifi'
SSID - hexdump_ascii(len=6):
     53 61 77 69 66 69                                 Sawifi          
PSK (ASCII passphrase) - hexdump_ascii(len=12):
     74 65 73 74 69 6e 67 75 6a 65 6d 79               testingujemy    
PSK (from passphrase) - hexdump(len=32): 97 e4 f4 80 2e eb 37 f2 9e 73 90 5c b8 ea c7 86 c0 fc a6 21 10 ed ea f5 09 fa 26 47 dc 30 b8 d7
madwifi_configure_wpa: group key cipher=3
madwifi_configure_wpa: pairwise key ciphers=0x8
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 (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
madwifi_set_key: alg=CCMP 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.
l2_packet_receive - recvfrom: Network is down
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: associated
  New STA
ath0: STA 00:19:4f:d5:78:16 WPA: event 1 notification
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 WPA: start authentication
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
WPA: 00:19:4f:d5:78:16 WPA_PTK_GROUP entering state IDLE
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITPSK
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:d5:78:16 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)
IEEE 802.1X: 121 bytes from 00:19:4f:d5:78:16
   IEEE 802.1X: version=2 type=3 length=117
ath0: STA 00:19:4f:d5:78:16 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:19:4f:d5:78:16 reason 2
madwifi_sta_deauth: addr=00:19:4f:d5:78:16 reason_code=2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECTED
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
madwifi_del_key: Failed to delete key (addr 00:19:4f:d5:78:16 key_idx 0)
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
madwifi_set_sta_authorized: Failed to unauthorize STA 00:19:4f:d5:78:16
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
Could not set station 00:19:4f:d5:78:16 flags for kernel driver (errno=29).
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: deauthenticated due to local deauth request
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:19:4f:d5:78:16
rx_packets=1
rx_bytes=135
tx_packets=5
tx_bytes=855
'
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: disassociated
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: associated
  New STA
ath0: STA 00:19:4f:d5:78:16 WPA: event 1 notification
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 WPA: start authentication
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
WPA: 00:19:4f:d5:78:16 WPA_PTK_GROUP entering state IDLE
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITPSK
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:d5:78:16 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)
IEEE 802.1X: 121 bytes from 00:19:4f:d5:78:16
   IEEE 802.1X: version=2 type=3 length=117
ath0: STA 00:19:4f:d5:78:16 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:19:4f:d5:78:16 reason 2
madwifi_sta_deauth: addr=00:19:4f:d5:78:16 reason_code=2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECTED
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
madwifi_del_key: Failed to delete key (addr 00:19:4f:d5:78:16 key_idx 0)
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
madwifi_set_sta_authorized: Failed to unauthorize STA 00:19:4f:d5:78:16
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
Could not set station 00:19:4f:d5:78:16 flags for kernel driver (errno=29).
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: deauthenticated due to local deauth request
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:19:4f:d5:78:16
rx_packets=1
rx_bytes=135
tx_packets=5
tx_bytes=855
'
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: disassociated
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: associated
  New STA
ath0: STA 00:19:4f:d5:78:16 WPA: event 1 notification
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 WPA: start authentication
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
WPA: 00:19:4f:d5:78:16 WPA_PTK_GROUP entering state IDLE
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITPSK
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:d5:78:16 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)
IEEE 802.1X: 121 bytes from 00:19:4f:d5:78:16
   IEEE 802.1X: version=2 type=3 length=117
ath0: STA 00:19:4f:d5:78:16 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING
PMK - hexdump(len=32): [REMOVED]
PTK - hexdump(len=64): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKINITNEGOTIATING
madwifi_get_seqnum: addr=00:00:00:00:00:00 idx=1
ath0: STA 00:19:4f:d5:78:16 WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=70 keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=80): [REMOVED]
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:19:4f:d5:78:16 reason 2
madwifi_sta_deauth: addr=00:19:4f:d5:78:16 reason_code=2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECTED
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
madwifi_del_key: Failed to delete key (addr 00:19:4f:d5:78:16 key_idx 0)
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
madwifi_set_sta_authorized: Failed to unauthorize STA 00:19:4f:d5:78:16
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
Could not set station 00:19:4f:d5:78:16 flags for kernel driver (errno=29).
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: deauthenticated due to local deauth request
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:19:4f:d5:78:16
rx_packets=1
rx_bytes=135
tx_packets=5
tx_bytes=855
'
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: disassociated
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: associated
  New STA
ath0: STA 00:19:4f:d5:78:16 WPA: event 1 notification
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 WPA: start authentication
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
WPA: 00:19:4f:d5:78:16 WPA_PTK_GROUP entering state IDLE
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state AUTHENTICATION2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITPSK
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:d5:78:16 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)
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:d5:78:16 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)
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:d5:78:16 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)
ath0: STA 00:19:4f:d5:78:16 WPA: EAPOL-Key timeout
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state PTKSTART
ath0: STA 00:19:4f:d5:78:16 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)
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:19:4f:d5:78:16 reason 2
madwifi_sta_deauth: addr=00:19:4f:d5:78:16 reason_code=2
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state DISCONNECTED
WPA: 00:19:4f:d5:78:16 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:19:4f:d5:78:16 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
madwifi_del_key: Failed to delete key (addr 00:19:4f:d5:78:16 key_idx 0)
ioctl[IEEE80211_IOCTL_SETMLME]: Invalid argument
madwifi_set_sta_authorized: Failed to unauthorize STA 00:19:4f:d5:78:16
ath0: STA 00:19:4f:d5:78:16 IEEE 802.1X: unauthorizing port
Could not set station 00:19:4f:d5:78:16 flags for kernel driver (errno=29).
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: deauthenticated due to local deauth request
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:19:4f:d5:78:16
rx_packets=0
rx_bytes=0
tx_packets=4
tx_bytes=428
'
ath0: STA 00:19:4f:d5:78:16 IEEE 802.11: disassociated
Signal 2 received - terminating
Flushing old station entries
madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
Deauthenticate all stations
madwifi_set_privacy: enabled=0
madwifi_set_iface_flags: dev_up=0

Attachments

Change History

05/12/08 22:15:29 changed by mentor

  • status changed from new to closed.
  • resolution set to invalid.
  • summary changed from ioctl Invalid argument errors on debian, can't get WPA-PSK to work to Can't get WPA-PSK to work.

Those IOCTL errors should be non-fatal and unrelated to your problem.

Please use the regular support channels for this request.

At a first stab at the problem I would recommend checking out UserDocs/AntennaDiversity. The problem seems to be that there is no response to the 3/4 EAPOL-Key PTK handshaking packety thing, so if the antenna settings don't fix it, information about the client would be good.

Closing as invalid.


Add/Change #1938 (Can't get WPA-PSK to work)