System configuration:
Debian lenny 2.6.26-2-686
wifi dongle driven by ndiswrapper and the windows NT sis163u driver
My wifi works fine with without wpa_supplicant but when I try to launch it with wpa_supplicant all the system freeze with the generic wext driver. I have the to access the interfaces file from another system to bring it up again.
So I tried to use another driver, I built wpa_supplicant 0.6.9 with ndiswrapper driver support. The system does not hang but wpa_supplicant cant associate to my ap.
The configuration is basic:
ap_scan=2
network={
ssid="3Com"
key_mgmt=NONE
id_str="home"
}
the result of
wpa_supplicant -Dndiswrapper -iwlan0 -c/etc/network/wpa_supplicant/wpa_supplicant.conf -dd
Code:
Initializing interface 'wlan0' conf '/etc/network/wpa_supplicant/wpa_supplicant.conf' driver 'ndiswrapper' ctrl_interface 'wpa_ssid=3Com' bridge 'N/A'
Configuration file '/etc/network/wpa_supplicant/wpa_supplicant.conf' -> '/etc/network/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/network/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=2
Line: 3 - start of a new network block
ssid - hexdump_ascii(len=4):
33 43 6f 6d 3Com
key_mgmt: 0x4
id_str - hexdump_ascii(len=4):
68 6f 6d 65 home
Priority group 0
id=0 ssid='3Com'
Initializing interface (2) 'wlan0'
Interface wlan0 set UP - waiting a second for the driver to complete initialization
SIOCGIWRANGE: WE(compiled)=22 WE(source)=18 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf flags 0x0
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:40:f4:f0:86:ab
Driver does not support 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
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
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
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Trying to associate with SSID '3Com'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=ForceAuthorized
EAPOL: disable timer tick
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:00:00:00:00:00 into blacklist
No keys have been configured - skip key clearing
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Trying to associate with SSID '3Com'
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
Association request to the driver failed
...
running with strace give me a lot of "operation not supported"... I suspect the sys163u driver to be incompatible with wpa_supplicant...
1. Why my system hangs with wext?
2. Why wpa_supplicant cant associate with ndiswrapper?
Tx for your help, I tried to activate debug on my ndiswrapper module but unsuccessfuly