Hi!<br><pre>MotherBoard:IXP425<br>kernel:2.6.30.5<br>hostapd:hostapd-0.6.9<br>madwifi:madwifi-0.9.4-r4100-20090929<br>Wireless Card: Atheros AR5212 CM9-GP on mini-PCI<br><br>Attempting to connect from a PC using wireless to an Access Point running<br>
hostapd and madwifi with WPA with Pre-shared key (PSK) on IXP425 board.<br>Hostapd (with -dd) emits following message on the access point: (see<br>below). Also, the ath0 interface is included in a bridge br0 on the<br>access point.<br>
<br>#dmesg<br>......<br><6>ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413, REGOPS_FUNC)<br><6>wlan: 0.9.4.1<br><6>ath_rate_amrr: 0.1 (0.9.4.1)<br><6>ath_rate_onoe: 1.0 (0.9.4.1)<br>
<6>wlan: mac acl policy registered<br><6>ath_rate_sample: 1.2 (0.9.4.1)<br><6>ath_pci: 0.9.4.1<br><4>PCI: enabling device 0000:00:01.0 (0340 -> 0342)<br><4>wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps<br>
<4>wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps<br><4>wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps<br><4>wifi0: turboA rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps<br>
<4>wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps<br><4>wifi0: H/W encryption support: WEP AES AES_CCM TKIP<br><4>wifi0: mac 5.9 phy 4.3 radio 3.6<br><4>wifi0: Use hw queue 1 for WME_AC_BE traffic<br>
<4>wifi0: Use hw queue 0 for WME_AC_BK traffic<br><4>wifi0: Use hw queue 2 for WME_AC_VI traffic<br><4>wifi0: Use hw queue 3 for WME_AC_VO traffic<br><4>wifi0: Use hw queue 8 for CAB traffic<br><4>wifi0: Use hw queue 9 for beacons<br>
<6>wifi0: Atheros 5212: mem=0x48000000, irq=28<br><6>ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (0.9.4.1)<br><6>ath_rate_minstrel: Look around rate set to 10%<br><6>ath_rate_minstrel: EWMA rolloff level set to 75%<br>
<6>ath_rate_minstrel: Max Segment size in the mrr set to 6000 us<br><6>device eth0 entered promiscuous mode<br><6>device ath0 entered promiscuous mode<br>......<br><br># cat /etc/hostapd.conf <br>bridge=br0<br>
interface=ath0<br>driver=madwifi<br>logger_syslog=-1<br>logger_syslog_level=2<br>logger_stdout=-1<br>logger_stdout_level=1<br>debug=0<br>dump_file=/tmp/hostapd.dump<br>ctrl_interface=/var/run/hostapd<br>ctrl_interface_group=0<br>
ssid=hello<br>auth_algs=1<br>wpa=1<br>wpa_passphrase=hellotestmywpa<br>wpa_key_mgmt=WPA-PSK<br>wpa_pairwise=TKIP CCMP<br><br><br># hostapd -dd /etc/hostapd.conf<br>=================================================<br>Configuration file: /etc/hostapd.conf<br>
Line 8: DEPRECATED: 'debug' configuration variable is not used anymore<br>ctrl_interface_group=0<br>br0: port 2(ath0) entering disabled state<br>Configure bridge br0 for EAPOL traffic.<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>ioctl[IEEE80211_IOCTL_SETMLME]: Argument list too long<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>madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=2<br>ioctl[IEEE80211_IOCTL_SETMLME]: Argument list too long<br>madwifi_sta_deauth: Failed to deauth STA (addr ff:ff:ff:ff:ff:ff reason 2)<br>
madwifi_set_privacy: enabled=0<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:0b:6b:0a:4f:e5 and ssid 'hello'<br>SSID - hexdump_ascii(len=5):<br> 68 65 6c 6c 6f hello <br>PSK (ASCII passphrase) - hexdump_ascii(len=14):<br>
68 65 6c 6c 6f 74 65 73 74 6d 79 77 70 61 hellotestmywpa <br>PSK (from passphrase) - hexdump(len=32): 12 d2 62 62 3b 1f ba e1 d6 bb 72 c3 e4 f5 a1 f0 cb 13 af c9 7d 0d 24 3b 67 1b d5 76 c9 br0: port 2(ath0) ee<br>
4e 53 33<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>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>l2_packet_receive - recvfrom: Network is down<br>Wireless event: cmd=0x8c03 len=20<br>
ath0: STA 00:92:c3:80:05:7d IEEE 802.11: associated<br> New STA<br>ioctl[unknown???]: Invalid argument<br>madwifi_process_wpa_ie: Failed to get WPA/RSN IE<br>Failed to get WPA/RSN information element.<br>Wireless event: cmd=0x8c03 len=20<br>
ath0: STA 00:92:c3:80:05:88 IEEE 802.11: associated<br> New STA<br>ioctl[unknown???]: Invalid argument<br>madwifi_process_wpa_ie: Failed to get WPA/RSN IE<br>Failed to get WPA/RSN information element.<br>Wireless event: cmd=0x8c03 len=20<br>
ath0: STA 00:92:c3:80:05:88 IEEE 802.11: associated<br>ioctl[unknown???]: Invalid argument<br>madwifi_process_wpa_ie: Failed to get WPA/RSN IE<br>Failed to get WPA/RSN information element.<br>Wireless event: cmd=0x8c03 len=20<br>
ath0: STA 00:92:c3:80:05:7d IEEE 802.11: associated<br>ioctl[unknown???]: Invalid argument<br>madwifi_process_wpa_ie: Failed to get WPA/RSN IE<br>Failed to get WPA/RSN information element.<br>Wireless event: cmd=0x8c02 len=95<br>
Custom wireless event: 'STA-TRAFFIC-STAT<br>mac=00:92:c3:80:05:88<br>rx_packets=0<br>rx_bytes=0<br>tx_packets=0<br>tx_bytes=0<br>'<br>Wireless event: cmd=0x8c04 len=20<br>ath0: STA 00:92:c3:80:05:88 IEEE 802.11: disassociated<br>
Wireless event: cmd=0x8c03 len=20<br>ath0: STA 00:92:c3:80:05:88 IEEE 802.11: associated<br> New STA<br>ioctl[unknown???]: Invalid argument<br>madwifi_process_wpa_ie: Failed to get WPA/RSN IE<br>Failed to get WPA/RSN information element.<br>
Wireless event: cmd=0x8c02 len=95<br>Custom wireless event: 'STA-TRAFFIC-STAT<br>mac=00:92:c3:80:05:7d<br>rx_packets=0<br>rx_bytes=0<br>tx_packets=0<br>tx_bytes=0<br>'<br>Wireless event: cmd=0x8c04 len=20<br>ath0: STA 00:92:c3:80:05:7d IEEE 802.11: disassociated<br>
Wireless event: cmd=0x8c03 len=20<br>ath0: STA 00:92:c3:80:05:7d IEEE 802.11: associated<br> New STA<br>ioctl[unknown???]: Invalid argument<br>madwifi_process_wpa_ie: Failed to get WPA/RSN IE //here failed to get WPA/RSN IE and return <br>
Failed to get WPA/RSN information element.<br><br>^CSignal 2 received - terminating //I can't connect to the Ap from PC, so abort it using CTRL+C<br><br>Removing station 00:92:c3:80:05:7d<br>Removing station 00:92:c3:80:05:88<br>
Flushing old station entries<br>madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3<br>br0: port 2(ath0) entering disabled state<br>ioctl[IEEE80211_IOCTL_SETMLME]: Argument list too long<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>madwifi_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=2<br>ioctl[IEEE80211_IOCTL_SETMLME]: Argument list too long<br>madwifi_sta_deauth: Failed to deauth STA (addr ff:ff:ff:ff:ff:ff reason 2)<br>
madwifi_set_privacy: enabled=0<br>madwifi_set_ieee8021x: enabled=0<br>madwifi_set_iface_flags: dev_up=0<br><br>=============================================================<br>We can see error is comming from ioctl call in driver_madwifi::set80211priv for<br>
op-code IEEE80211_IOCTL_GETWPAIE<br>This is defined in madwifi code /net80211/ieee80211_ioctl.h as<br>SIOCDEVPRIVATE+4. SIOCDEVPRIVATE is defined in linux/include/sockios.h<br>as 0x89F0. <br><br><br><br>Who can help me with this problem ? <br>
Thank you!<br><br><br><br></pre> <br><pre><br></pre><br>