HostAP + madwifi / Windows XP
S Lang
haptiger
Sat Oct 7 04:34:39 PDT 2006
I have been trying to get hostapd working for several months now off and
on, and have met absolutely no success. I am coming here hoping someone
might have some insight into why my network does not work.
I have tried using numerous versions (and combinations) of madwifi-ng and
hostapd. Currently I'm trying the latest snapshot of both. I have tried
WPA-PSK with both TKIP and CCMP, as well as a half-hearted attempt at
EAP-TLS.
When the Windows machine tries to authenticate to hostapd without having
an assigned WPA PSK, I see some debug output from hostapd indicating it is
trying to associate with the AP. Once I set the key, any attempt to
connect to the network produces absolutely no debug output on hostapd.
(If I intentionally set an incorrect key on Windows, the result is the
same.)
I have tested the driver by running as a client on an open network, and by
running in AP mode without any authentication. Both worked fine.
So that is where I am now. A few details on my system...
Server w/ AP: Running Debian with a custom Linux 2.6.16 kernel
Atheros based A/B/G wifi card
Madwifi-ng 0.9.2, as well as SVN head as of revision 1747
Client: Running Windows XP Home SP2 (Only wifi support is what came with
the OS)
Atheros based A/B/G wifi
Hostapd config:
interface=ath0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=CHouse
macaddr_acl=1
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
wpa=3
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
wpa_psk=(Appropriate number of hex digits)
Output when I run hostapd -dd (Before any attempt to associate the
Windows client):
Configuration file: /etc/hostapd/hostapd.cf4
ctrl_interface_group=0
madwifi_set_iface_flags: dev_up=0
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=19 WE(source)=13 enc_capa=0xf
ath0: IEEE 802.11 Fetching hardware channel/rate support not supported.
Flushing old station entries
Deauthenticate all stations
Using interface ath0 with hwaddr 00:0f:b5:82:4e:b2 and ssid 'CHouse'
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
madwifi_set_iface_flags: dev_up=1
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
l2_packet_receive - recvfrom: Network is down
Output when I attempt to associate the Windows client without setting it
to WPA-PSK:
Wireless event: cmd=0x8c03 len=20
ath0: STA 00:90:96:92:c2:e4 IEEE 802.11: associated
New STA
Failed to parse WPA/RSN IE from 00:90:96:92:c2:e4 (res=-2)
WPA/RSN IE - hexdump(len=194): 1f c0 00 00 00 00 1d 00 00 00 01 00 02 00
86 02 00 00 bb be 1f c0 01 00 00 00 08 94 2e ec 96 02 00 00 91 ff ff 00 44
fe cb c7 09 00 00 00 08 94 2e ec 86 02 00 00 7d fc 11 00 fc fd cb c7 0c 90
27 45 5c 16 3d 05 00 ca 9a 3b 00 26 80 f7 bc e2 cc f6 91 ff ff ff 14 ad 2e
f7 00 00 00 00 01 00 00 00 ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 40 b5 ee f7 00 00 00 00 00 00 00 00 14 ad 2e f7 40
b5 ee f7 c0 f3 12 c0 44 fe cb c7 44 fe cb c7 b2 fe cb c7 ff ff ff ff b4 fd
cb c7 01 00 00 00 01 00 00 00 00 00 00 00 01 00 00 00 9d 0f 00 00 0a 00 00
00 0a 00 00 00
WPA/RSN information element rejected? (res 1)
Data frame from not associated STA 00:90:96:92:c2:e4
Data frame from not associated STA 00:90:96:92:c2:e4
Data frame from not associated STA 00:90:96:92:c2:e4
Wireless event: cmd=0x8c04 len=20
ath0: STA 00:90:96:92:c2:e4 IEEE 802.11: disassociated
ath0: STA 00:90:96:92:c2:e4 WPA: event 2 notification
madwifi_del_key: addr=00:90:96:92:c2:e4 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
WPA: 00:90:96:92:c2:e4 WPA_PTK entering state DISCONNECTED
WPA: 00:90:96:92:c2:e4 WPA_PTK entering state INITIALIZE
madwifi_del_key: addr=00:90:96:92:c2:e4 key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
As I said before, once I set up the Windows client with the correct key
and try to associate to the AP, I see no debug output from hostapd.
If anyone has any insight or anything else I could check I would greatly
appreciate it.
More information about the Hostap
mailing list