Problems with WPA-PSK and madwifi driver

Michael Reilly michaelr
Thu Feb 10 23:51:34 PST 2005


Ok.  Lets do this.  One configuration which a number of us all have problems with -

AP is a Cisco 1100 or 1200 with an 802.11b or 802.11g radio running the latest 
version of IOS SW.

Client is a Cisco CB21A/B/G card (vendor 0x168c, device 0x0013
using madwifi CVS from last friday.

Kernel is 2.4.28.

wpa_supplicant.conf is

eapol_version=1
ap_scan=1
network={
         ssid="MySSID"
	proto=WPA
	key_mgmt=WPA-PSK
	pairwise=CCMP TKIP
	group=CCMP TKIP WEP104
	psk="The key"
	priority=4
	scan_ssid=1
}

bash# wpa_supplicant -c/etc/wpa_supplicant.conf -iath0 -Dmadwifi -dd

The wpa_supplicant log is -
Initializing interface 'ath0' conf '/etc/wpa_supplicant.conf' driver 'madwifi'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=0
eapol_version=1
ap_scan=1
Line: 185 - start of a new network block
ssid - hexdump_ascii(len=11):
      4d 69 6b 6f 56 6c 61 6e 31 30 67                  MySSID
proto: 0x1
key_mgmt: 0x2
pairwise: 0x18
group: 0x1c
PSK - hexdump(len=32): [REMOVED]
priority=4 (0x4)
scan_ssid=1 (0x1)
Priority group 4
    id=0 ssid='MySSID'
Initializing interface (2) 'ath0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Own MAC address: 00:40:96:a4:72:52
wpa_driver_madwifi_set_wpa: enabled=1
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_set_countermeasures: enabled=0
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=11):
      4d 69 6b 6f 56 6c 61 6e 31 30 67                  MySSID
Wireless event: cmd=0x8b1a len=24
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=0
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=0
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=0
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=0
Wireless event: cmd=0x8b19 len=12
Received 277 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 4
0: 00:12:43:b9:58:20 ssid='MySSID' wpa_ie_len=26 rsn_ie_len=0
    selected
Trying to associate with 00:12:43:b9:58:20 (SSID='MySSID' freq=2442 MHz)
Cancelling scan request
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Own WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 
50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
wpa_driver_madwifi_associate
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b1a len=24
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:12:43:b9:58:20
Association event - clear replay counter
Associated to a new BSS: BSSID=00:12:43:b9:58:20
No keys have been configured - skip key clearing
Associated with 00:12:43:b9:58:20
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Setting authentication timeout: 10 sec 0 usec
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=29 idleWhile=59
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=28 idleWhile=58
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=27 idleWhile=57
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Setting scan request: 0 sec 100000 usec
Added BSSID 00:12:43:b9:58:20 into blacklist
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Disconnect event - remove keys
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_del_key: keyidx=0

Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=12
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=26 idleWhile=56
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=25 idleWhile=55
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=24 idleWhile=54
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=23 idleWhile=53
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=22 idleWhile=52
Wireless event: cmd=0x8b19 len=12
Received 277 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 4
0: 00:12:43:b9:58:20 ssid='MySSID' wpa_ie_len=26 rsn_ie_len=0
    skip - blacklisted
No APs found - clear blacklist and try again
Removed BSSID 00:12:43:b9:58:20 from blacklist (clear)
Selecting BSS from priority group 4
0: 00:12:43:b9:58:20 ssid='MySSID' wpa_ie_len=26 rsn_ie_len=0
    selected
Trying to associate with 00:12:43:b9:58:20 (SSID='MySSID' freq=2442 MHz)
Cancelling scan request
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Own WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 
50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_madwifi_set_drop_unencrypted: enabled=1
wpa_driver_madwifi_associate
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b1a len=24
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:12:43:b9:58:20
Association event - clear replay counter
Associated to a new BSS: BSSID=00:12:43:b9:58:20
No keys have been configured - skip key clearing
Associated with 00:12:43:b9:58:20
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Setting authentication timeout: 10 sec 0 usec
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=29 idleWhile=59
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=28 idleWhile=58
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=27 idleWhile=57
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:00:00:00:00:00
Setting scan request: 0 sec 100000 usec
Added BSSID 00:12:43:b9:58:20 into blacklist
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
Disconnect event - remove keys
wpa_driver_madwifi_del_key: keyidx=0
wpa_driver_madwifi_del_key: keyidx=1
wpa_driver_madwifi_del_key: keyidx=2
wpa_driver_madwifi_del_key: keyidx=3
wpa_driver_madwifi_del_key: keyidx=0


Anyone have this working?  if so what are we doing wrong?

Thanks,

michael
Jouni Malinen wrote:
> On Thu, Feb 10, 2005 at 11:00:07AM -0800, Michael Reilly wrote:
> 
> 
>>Atheros based cards have not worked with madwifi and wpa_supplicant for me 
>>for several months.  I have been forced to purchased a driverloader license 
>>which does work with wpa_supplicant and my Atheros based cards
> 
> 
> madwifi + wpa_supplicant has worked fine in my tests during the last
> months and number of different APs and different security policies etc.
> This has been with numerous CVS versions of both madwifi and
> wpa_supplicant.
> 
> 
>>I also tried ndisdriver but it wouldn't even find the APs (Cisco, Linksys, 
>>D-Link) then.
> 
> 
> I could repeat my comment above for ndiswrapper + wpa_supplicant case.
> However, in this case there have been a bit more variance based on which
> NDIS driver version was used.
> 
> 
> In other words, there a lots of known cases where both of these
> combinations work fine. In order to resolve possibly remaining issues,
> more detailed reports are needed. These should include exact description
> of the used configuration (both the AP and client sides) and debug logs
> from all the possible sources (AP, authentication server, client (both
> driver and wpa_supplicant debug).
> 

-- 
---- ---- ----
Michael Reilly    michaelr at cisco.com
     Cisco Systems,  California




More information about the Hostap mailing list