unable to configure WPA with madwifi
Tiago Rodrigues
omicronix
Sun Jun 25 06:12:40 PDT 2006
Hi,
I have configured a linux box with a pci with the atheros chip to act
as an AP, bridging my wired net with the wireless net. Everything is
working ok with WEP.
Now I wanted to use WPA. I configured Hostap but I can't get it to
work. The clients keep trying to connect but the hostap is always
deauthenticating them (madwifi_sta_deauth: addr=XX:XX:XX:XX:XX:XX
reason_code=2). I can't find any info on the reason_code=2.
here my hostap configuration file and hostap output:
*** HOSTAP CONFIG FILE:
interface=ath0
bridge=br0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=2
dump_file=/tmp/hostapd.dump
ssid=WPAnet
macaddr_acl=1
accept_mac_file=/etc/hostapd/hostapd.accept
wpa=1
wpa_psk_file=/etc/hostapd/hostapd.wpa_psk
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP
wpa_group_rekey=600
wpa_gmk_rekey=86400
*** HOSTAP OUTPUT:
Configuration file: /etc/hostapd/hostapd.conf
Configure bridge br0 for EAPOL traffic.
madwifi_set_iface_flags: dev_up=0
Using interface ath0 with hwaddr 00:13:f7:16:03:62 and ssid 'WPAnet'
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= 0x1
madwifi_set_iface_flags: dev_up=1
madwifi_set_key: alg=TKIP addr=00:00:00:00:00:00 key_idx=1
madwifi_set_privacy: enabled=1
madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
l2_packet_receive - recvfrom: Network is down
Wireless event: cmd=0x8c03 len=20
New STA
madwifi_del_key: addr=00:11:d8:38:4a:3d key_idx=0
madwifi_del_key: addr=00:11:d8:38:4a:3d key_idx=0
madwifi_sta_deauth: addr=00:11:d8:38:4a:3d reason_code=2
madwifi_del_key: addr=00:11:d8:38:4a:3d key_idx=0
ioctl[IEEE80211_IOCTL_DELKEY]: Invalid argument
Wireless event: cmd=0x8c04 len=20
Wireless event: cmd=0x8c03 len=20
(...)
thanks,
Tiago.
More information about the Hostap
mailing list