Failed to parse WPA/RSN IE

Joo Aun Saw jasaw81
Mon Feb 18 15:24:10 PST 2008


Hi,

I'm trying to setup a WPA2 access point with hostapd and madwifi. When my station tries to associate with the access point, I get this error message "Failed to parse WPA/RSN IE from ..." before it tries to exchange keys, so WPA2 mode is not working for me. WPA1 is working for me. Another error I noticed is this "ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument". I don't know what caused those errors, and can't seem to get any useful information from the internet. Does anyone know how to fix it? Any help greatly appreciated.

Here's my hostapd.conf file:
bridge=br0
interface=ath0
driver=madwifi
logger_syslog=-1
logger_syslog_level=3
logger_stdout=-1
logger_stdout_level=3
debug=0
ctrl_interface_group=0
macaddr_acl=0
deny_mac_file=/etc/hostapd.deny
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
dump_file=/tmp/hostapd.dump
ssid=myTestAP
wpa=2
wpa_passphrase=A_Secret_Password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP

Here's a log from hostapd:
Configuration file: /etc/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)=19 WE(source)=13 enc_capa=0xf
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_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:80:48:4e:97:70 and ssid 'myTestAP'
SSID - hexdump_ascii(len=8): ... (deleted the real SSID)
PSK (ASCII
 passphrase) - hexdump_ascii(len=23): ... (deleted the real passphrase)
PSK (from passphrase) - hexdump(len=32): ...
madwifi_configure_wpa: group key cipher=1
madwifi_configure_wpa: pairwise key ciphers=0xa
madwifi_configure_wpa: key management algorithms=0x3
madwifi_configure_wpa: rsn capabilities=0x0
madwifi_configure_wpa: enable WPA=0x2
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.
l2_packet_receive - recvfrom: Network is down
ath0: STA 00:04:e2:81:23:f5 IEEE 802.11: associated
  New STA
Failed to parse WPA/RSN IE from 00:04:e2:81:23:f5 (res=-2)
WPA/RSN
IE - hexdump(len=138): 7d 88 c3 6b 7d 7c c0 03 90 58 c0 03 8e fc c3 6b
7d b4 c3 6b 7d 8c c0 03 7c f0 c0 03 90 50 80 00 00 13 00 00 00 40 20 00
00 13 c3 57 90 00 c3 6b 7e a8 c3 7e 70 00 c3 c2 d7 80 c3 6b 7d cc c3 6b
7d b8 c0 03 7d 48 c0 03 7c a4 00 00 00 00 00 00 00 00 c3 6b 7e 84 c3 6b
7d d0 c0 13 0a a8 c0 13 01 14 c3 c2 d7 80 c3 6b 7d f8 c3 6b 7d e4 c0 03
7d 48 c0 03 7c a4 00 00 00 00 00 00 00 00 c3 6b 7e b0 c3 6b 7d fc c0 13
0a a8
WPA/RSN information element rejected? (res 1)
Data frame from not associated STA 00:04:e2:81:23:f5
Custom wireless event: 'STA-TRAFFIC-STAT
mac=00:04:e2:81:23:f5
rx_packets=1
rx_bytes=19
tx_packets=0
tx_bytes=0
'
ath0: STA 00:04:e2:81:23:f5 IEEE 802.11: disassociated
madwifi_del_key: addr=00:04:e2:81:23:f5 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
madwifi_del_key: Failed to delete key (addr 00:04:e2:81:23:f5 key_idx 0)
WPA: 00:04:e2:81:23:f5 WPA_PTK entering state DISCONNECTED
WPA: WPA_PTK::DISCONNECTED -
 did not decrease GNoStations (STA 00:04:e2:81:23:f5)
WPA: 00:04:e2:81:23:f5 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:04:e2:81:23:f5 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
madwifi_del_key: Failed to delete key (addr 00:04:e2:81:23:f5 key_idx 0)






      Get the name you always wanted with the new y7mail email address.
www.yahoo7.com.au/y7mail

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20080218/3f804947/attachment.htm 



More information about the Hostap mailing list