#1651: ioctl[IEEE80211_IOCTL_SETKEY]: Invalid argument, madwifi_set_key: Failed 
to
set key
------------------------------------+---------------------------------------
 Reporter:  [EMAIL PROTECTED]  |             Type:  defect
   Status:  new                     |         Priority:  minor 
Component:  madwifi: other          |          Version:        
 Keywords:                          |   Patch_attached:  0     
------------------------------------+---------------------------------------
 Hello,

 I have a problem to establish WPA session between my linux AP (latest
 madwifi-see below) and Windows XP clients.

 I tried two differnt clients one with chipset Intel Pro Wireless 2200
 another with 2100 and I tried different setups of hostapd setup (wpa=1,2
 and 3; eapol_verson 1 and 2 and other parameters as well) but with no
 luck.

 I double-checked and changed wpa key several times and it is longer than 8
 chars.
 I always end with the same error:

 ------------------------------------------------------------------------
 {{{
 ath0: STA xx:xx:xx:xx:xx:xx WPA: received EAPOL-Key frame (4/4 Pairwise)
 WPA: xx:xx:xx:xx:xx:xx WPA_PTK entering state PTKINITDONE
 madwifi_set_key: alg=TKIP addr=xx:xx:xx:xx:xx:xx key_idx=0
 ioctl[IEEE80211_IOCTL_SETKEY]: Invalid argument
 madwifi_set_key: Failed to set key (addr xx:xx:xx:xx:xx:xx key_idx 0 alg
 'TKIP'
 key_len 32 txkey 1)
 hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA
 xx:xx:xx:xx:xx:xx reason 2
 madwifi_sta_deauth: addr=xx:xx:xx:xx:xx:xx reason_code=2
 ath0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: deauthenticated due to local
 deauth request
 Wireless event: cmd=0x8c02 len=99
 Custom wireless event: 'STA-TRAFFIC-STAT
 mac=xx:xx:xx:xx:xx:xx
 rx_packets=2
 rx_bytes=252
 tx_packets=2
 tx_bytes=238
 '
 Wireless event: cmd=0x8c04 len=20
 ath0: STA xx:xx:xx:xx:xx:xx IEEE 802.11: disassociated
 }}}
 ------------------------------------------------------------------------

 Does anybody have any suggestion what can be wrong here?

 Thank you in advance.

 Jan

 ------------------------------------------------------------------------
 My setup:
 Wifi card: Ethernet controller: Atheros Communications, Inc. AR5212
 802.11abg NIC

 OS: Fedora 7

 Kernel: 2.6.23.1-21.fc7 i686 i686 i386

 Madwifi version: svn r2855, 0.9.4 beta

 Hostapd: hostapd-0.5.8-13.fc7


 Hostapd.conf:
 {{{
 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=wheel
 ssid=test
 hw_mode=g
 beacon_int=100
 dtim_period=2
 max_num_sta=255
 rts_threshold=2347
 fragm_threshold=2346
 macaddr_acl=0
 auth_algs=3
 ignore_broadcast_ssid=0
 wme_enabled=1
 wme_ac_bk_cwmin=4
 wme_ac_bk_cwmax=10
 wme_ac_bk_aifs=7
 wme_ac_bk_txop_limit=0
 wme_ac_bk_acm=0
 wme_ac_be_aifs=3
 wme_ac_be_cwmin=4
 wme_ac_be_cwmax=10
 wme_ac_be_txop_limit=0
 wme_ac_be_acm=0
 wme_ac_vi_aifs=2
 wme_ac_vi_cwmin=3
 wme_ac_vi_cwmax=4
 wme_ac_vi_txop_limit=94
 wme_ac_vi_acm=0
 wme_ac_vo_aifs=2
 wme_ac_vo_cwmin=2
 wme_ac_vo_cwmax=3
 wme_ac_vo_txop_limit=47
 wme_ac_vo_acm=0
 ap_max_inactivity=600
 eapol_version=2
 eapol_key_index_workaround=0
 eap_server=0
 own_ip_addr=127.0.0.1
 wpa=1
 wpa_psk_file=/etc/hostapd.wpa_psk
 wpa_key_mgmt=WPA-PSK
 wpa_pairwise=TKIP
 }}}

-- 
Ticket URL: <http://madwifi.org/ticket/1651>
madwifi.org <http://madwifi.org/>
Multiband Atheros Driver for Wireless Fidelity
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Madwifi-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/madwifi-tickets

Reply via email to