wpa_supplicant 0.5.7 and ndiswrapper 1.38 not working

Brian J. Murrell brian
Sun Apr 29 15:42:10 PDT 2007


I'm trying to use wpa_supplicant 0.5.7 with ndiswrapper 1.38 on Ubuntu
feisty along with the nm-applet.  I choose personal psk and put in my
key and get the kind of problem I previous wrote this list about here:

http://lists.shmoo.com/pipermail/hostap/2006-August/013802.html

It seems then it was due to using -D ndiswrapper rather than -D wext.
AFAICT though the NetworkManager tool on Ubuntu Feisty is using wext and
I am getting this problem.  Here is a dump of the ndiswrapper debug:

Global control interface '/var/run/wpa_supplicant-global' 
RX global ctrl_iface - hexdump_ascii(len=50): 
     49 4e 54 45 52 46 41 43 45 5f 41 44 44 20 77 6c   INTERFACE_ADD wl 
     61 6e 30 09 09 77 65 78 74 09 2f 76 61 72 2f 72   an0__wext_/var/r 
     75 6e 2f 77 70 61 5f 73 75 70 70 6c 69 63 61 6e   un/wpa_supplican 
     74 09                                             t_               
CTRL_IFACE GLOBAL INTERFACE_ADD 'wlan0^I^Iwext^I/var/run/wpa_supplicant^I' 
Initializing interface 'wlan0' conf 'N/A' driver 'wext' ctrl_interface '/var/run/wpa_supplicant' bridge 'N/A' 
Initializing interface (2) 'wlan0' 
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 
SIOCGIWRANGE: WE(compiled)=21 WE(source)=18 enc_capa=0x5 
  capabilities: key_mgmt 0x5 enc 0x7 
WEXT: Operstate: linkmode=1, operstate=5 
2:08 
wpa_driver_wext_set_wpa 
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0 
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0 
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0 
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0 
wpa_driver_wext_set_countermeasures 
wpa_driver_wext_set_drop_unencrypted 
Setting scan request: 0 sec 100000 usec 
Added interface wlan0 
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) 
Wireless event: cmd=0x8b06 len=8 
RX ctrl_iface - hexdump_ascii(len=9): 
     41 50 5f 53 43 41 4e 20 31                        AP_SCAN 1        
RX ctrl_iface - hexdump_ascii(len=11): 
     41 44 44 5f 4e 45 54 57 4f 52 4b                  ADD_NETWORK      
CTRL_IFACE: ADD_NETWORK 
RX ctrl_iface - hexdump_ascii(len=37): [REMOVED] 
CTRL_IFACE: SET_NETWORK id=0 name='ssid' 
CTRL_IFACE: value - hexdump_ascii(len=18): [REMOVED] 
ssid - hexdump_ascii(len=9): 
     69 6c 69 6e 78 5f 77 70 61                        ilinx_wpa        
iface - hexdump_ascii(len=23): [REMOVED] 
CTRL_IFACE: SET_NETWORK id=0 name='proto' 
CTRL_IFACE: value - hexdump_ascii(len=3): [REMOVED] 
proto: 0x1 
RX ctrl_iface - hexdump_ascii(len=30): [REMOVED] 
CTRL_IFACE: SET_NETWORK id=0 name='key_mgmt' 
CTRL_IFACE: value - hexdump_ascii(len=7): [REMOVED] 
key_mgmt: 0x2 
RX ctrl_iface - hexdump_ascii(len=82): [REMOVED] 
CTRL_IFACE: SET_NETWORK id=0 name='psk' 
CTRL_IFACE: value - hexdump_ascii(len=64): [REMOVED] 
PSK - hexdump(len=32): [REMOVED] 
RX ctrl_iface - hexdump_ascii(len=16): 
     45 4e 41 42 4c 45 5f 4e 45 54 57 4f 52 4b 20 30   ENABLE_NETWORK 0 
CTRL_IFACE: ENABLE_NETWORK id=0 
Setting scan request: 0 sec 0 usec 
State: DISCONNECTED -> SCANNING 
Starting AP scan (broadcast SSID) 
Trying to get current scan results first without requesting a new scan to speed up initial association 
Received 486 bytes of scan results (2 BSSes) 
Scan results: 2 
Selecting BSS from priority group 0 
0: 00:12:17:41:37:c8 ssid='ilinx_wpa' wpa_ie_len=30 rsn_ie_len=26 caps=0x11 
PA IE 
Trying to associate with 00:12:17:41:37:c8 (SSID='ilinx_wpa' freq=2412 MHz) 
Cancelling scan request 
WPA: clearing own WPA/RSN IE 
Automatic auth_alg selection: 0x1 
WPA: using IEEE 802.11i/D3.0 
WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 2 proto 1 
WPA: set AP WPA IE - hexdump(len=30): dd 1c 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 04 00 50 f2 02 01 00 00 50
WPA: set AP RSN IE - hexdump(len=26): 30 18 01 00 00 0f ac 02 02 00 00 0f ac 04 00 0f ac 02 01 00 00 0f ac 02 00 00
WPA: using GTK TKIP 
WPA: using PTK CCMP 
WPA: using KEY_MGMT WPA-PSK 
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2
No keys have been configured - skip key clearing 
wpa_driver_wext_set_drop_unencrypted 
State: SCANNING -> ASSOCIATING 
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT) 
WEXT: Operstate: linkmode=-1, operstate=5 
wpa_driver_wext_associate 
Setting authentication timeout: 10 sec 0 usec 
EAPOL: External notification - EAP fail=0 
EAPOL: External notification - portControl=Auto 
RSN: Ignored PMKID candidate without preauth flag 
CTRL_IFACE monitor attached - hexdump(len=42): 2f 76 61 72 2f 72 75 6e 2f 4e 65 74 77 6f 72 6b 4d 61 6e 61 67 65 72
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) 
Wireless event: cmd=0x8b06 len=8 
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) 
Wireless event: cmd=0x8b04 len=12 
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) 
Wireless event: cmd=0x8b1a len=17 
Authentication with 00:00:00:00:00:00 timed out. 
CTRL_IFACE monitor send - hexdump(len=42): 2f 76 61 72 2f 72 75 6e 2f 4e 65 74 77 6f 72 6b 4d 61 6e 61 67 65 72 2f 
Added BSSID 00:12:17:41:37:c8 into blacklist 
State: ASSOCIATING -> DISCONNECTED 
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT) 
WEXT: Operstate: linkmode=-1, operstate=5 
No keys have been configured - skip key clearing 
 notification - portEnabled=0 
EAPOL: External notification - portValid=0 
Setting scan request: 0 sec 0 usec 
State: DISCONNECTED -> SCANNING 
Starting AP scan (broadcast SSID) 
Scan timeout - try to get results 
Received 486 bytes of scan results (2 BSSes) 
Scan results: 2 
Selecting BSS from priority group 0 
0: 00:12:17:41:37:c8 ssid='ilinx_wpa' wpa_ie_len=30 rsn_ie_len=26 caps=0x11 
   selected based on WPA IE 
Trying to associate with 00:12:17:41:37:c8 (SSID='ilinx_wpa' freq=2412 MHz) 
CTRL_IFACE monitor send - hexdump(len=42): 2f 76 61 72 2f 72 75 6e 2f 4e 65 74 77 6f 72 6b 4d 61 6e 61 67 65 72 2f 
Cancelling scan request 
WPA: clearing own WPA/RSN IE 
Automatic auth_alg selection: 0x1 
WPA: using IEEE 802.11i/D3.0 
WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 2 proto 1 
WPA: set AP WPA IE - hexdump(len=30): dd 1c 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 04 00 50 f2 02 01 00 00 50
c 02 02 00 00 0f ac 04 00 0f ac 02 01 00 00 0f ac 02 00 00 
WPA: using GTK TKIP 
WPA: using PTK CCMP 
WPA: using KEY_MGMT WPA-PSK 
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2
No keys have been configured - skip key clearing 
wpa_driver_wext_set_drop_unencrypted 
State: SCANNING -> ASSOCIATING 
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT) 
WEXT: Operstate: linkmode=-1, operstate=5 
wpa_driver_wext_associate 
Setting authentication timeout: 10 sec 0 usec 
EAPOL: External notification - EAP success=0 
EAPOL: External notification - EAP fail=0 
EAPOL: External notification - portControl=Auto 
RSN: Ignored PMKID candidate without preauth flag 
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) 
Wireless event: cmd=0x8b06 len=8 
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) 
Wireless event: cmd=0x8b04 len=12 
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP]) 
Wireless event: cmd=0x8b1a len=17 
Authentication with 00:00:00:00:00:00 timed out. 
CE monitor send - hexdump(len=42): 2f 76 61 72 2f 72 75 6e 2f 4e 65 74 77 6f 72 6b 4d 61 6e 61 67 65 72 2f 77 70 61
BSSID 00:12:17:41:37:c8 blacklist count incremented to 2 
State: ASSOCIATING -> DISCONNECTED 
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT) 
WEXT: Operstate: linkmode=-1, operstate=5 
No keys have been configured - skip key clearing 
EAPOL: External notification - portEnabled=0 
EAPOL: External notification - portValid=0 
Setting scan request: 0 sec 0 usec 
State: DISCONNECTED -> SCANNING 
Starting AP scan (broadcast SSID) 
Scan timeout - try to get results 
Received 486 bytes of scan results (2 BSSes) 
Scan results: 2 
Selecting BSS from priority group 0 
0: 00:12:17:41:37:c8 ssid='ilinx_wpa' wpa_ie_len=30 rsn_ie_len=26 caps=0x11 
   skip - blacklisted 
1: 00:04:e2:b2:c9:52 ssid='SMC' wpa_ie_len=24 rsn_ie_len=0 caps=0x11 
   skip - SSID mismatch 
No APs found - clear blacklist and try again 
Removed BSSID 00:12:17:41:37:c8 from blacklist (clear) 
S from priority group 0 
0: 00:12:17:41:37:c8 ssid='ilinx_wpa' wpa_ie_len=30 rsn_ie_len=26 caps=0x11 
   selected based on WPA IE 
Trying to associate with 00:12:17:41:37:c8 (SSID='ilinx_wpa' freq=2412 MHz) 
CTRL_IFACE monitor send - hexdump(len=42): 2f 76 61 72 2f 72 75 6e 2f 4e 65 74 77 6f 72 6b 4d 61 6e 61 67 65 72 2f 
Cancelling scan request 
WPA: clearing own WPA/RSN IE 
Automatic auth_alg selection: 0x1 
WPA: using IEEE 802.11i/D3.0 
WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 2 proto 1 
WPA: set AP WPA IE - hexdump(len=30): dd 1c 00 50 f2 01 01 00 00 50 f2 02 02 00 00 50 f2 04 00 50 f2 02 01 00 00 50
WPA: set AP RSN IE - hexdump(len=26): 30 18 01 00 00 0f ac 02 02 00 00 0f ac 04 00 0f ac 02 01 00 00 0f ac 02 00 00
WPA: using GTK TKIP 
WPA: using PTK CCMP 
WPA: using KEY_MGMT WPA-PSK 
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 04 01 00 00 50 f2

Hopefully there is no keying info in there.  :-)  I guess I can just
reset my key if there was.  dmesg tells me:

[ 2072.304000] ndiswrapper version 1.38 loaded (preempt=no,smp=yes)
[ 2072.440000] ndiswrapper: driver bcmwl5 () loaded
[ 2072.448000] ACPI: PCI Interrupt 0000:02:03.0[A] -> Link [LNKB] -> GSI 5 (level, low) -> IRQ 5
[ 2072.456000] ndiswrapper: using IRQ 5
[ 2072.984000] wlan0: ethernet device 00:90:4b:b0:22:08 using NDIS driver: bcmwl5, version: 0x50000, NDIS version: 0x500, vendor: '', 14E4:4301:1028:0407.5.conf
[ 2072.984000] ndiswrapper (set_encr_mode:694): setting encryption mode to 6 failed (C00000BB)
[ 2072.984000] wlan0: encryption modes supported: WEP; TKIP with WPA
...
[ 7606.996000] ndiswrapper (set_encr_mode:694): setting encryption mode to 6 failed (C00000BB)
[ 7620.000000] ndiswrapper (set_encr_mode:694): setting encryption mode to 6 failed (C00000BB)
[ 7633.004000] ndiswrapper (set_encr_mode:694): setting encryption mode to 6 failed (C00000BB)
[ 7646.008000] ndiswrapper (set_encr_mode:694): setting encryption mode to 6 failed (C00000BB)
[ 7659.016000] ndiswrapper (set_encr_mode:694): setting encryption mode to 6 failed (C00000BB)

Any ideas what the problem could be?

b.

-- 
My other computer is your Microsoft Windows server.

Brian J. Murrell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20070429/c9a593bb/attachment.pgp 



More information about the Hostap mailing list