ioctl error

Lasse Riis lists
Wed Nov 9 16:06:44 PST 2005


Hi

I'm having various problems with WPA_supplicant.

I've left out the in-kernel 80211 subsystem and I have the following 
versions of things (a combo reported to work on the ipw2100-list): 
(forgive the portage-style)
[ebuild   R   ] net-wireless/ieee80211-1.1.6
[ebuild   R   ] net-wireless/ipw2100-1.1.3
[ebuild   R   ] net-wireless/wpa_supplicant-0.4.6
[ebuild   R   ] net-wireless/wireless-tools-28_pre10

And my wpa_sup.conf (currently) reads:
nashe ~ # cat /etc/wpa_supplicant.conf
#ctrl_interface=/var/run/wpa_supplicant

eapol_version=1

ap_scan=2

network={
         ssid="Pozzi"
         proto=WPA
         key_mgmt=WPA-PSK
         pairwise=TKIP
         group=TKIP WEP104 WEP40
         psk="mykey"
         priority=2
}

One in a hundred times or so my wpa-setup will actually function. That 
means come up, obtain an IP-address and actually work. But usually only 
for an hour or less. (I've recognised no pattern of causes in the 
outages). This part of the problem i'm not sure i can blame on wpa_sup 
or my Linksys WAP54G, but so far I'm blaming the latter. I've not been 
able to have a Windows box running at the same time (as i don't have 
one) to see if it also drops the connection (as this would isolate the 
problem). These outages caused me to update to the above mentioned 
versions of everything. Hoping to increase stability.

However once I get kicked off, or just at most other times, starting wpa 
will fail. Running it manually reveals this ioctl error:
ioctl[SIOCSIWFREQ]: Operation not supported

I've not been able to tell what causes the whole thing to work. But it 
seems to only happen on "fresh boots", meaning times where the machine 
has just been booted, the ipw2100 mod has just been loaded and wpa_sup 
is started. But again, this is only 1/100 times or so, and hence not 
really a trusty pattern.

I have no clue what happens, or if this is even a wpa_sup or an ipw2100 
problem. (but ipw2100 works fine with unencrypted networks).

I was hoping someone might have some ideas?

Here's some sample output from a non-working run:

nashe ~ # wpa_supplicant -ieth1 -Dwext -c /etc/wpa_supplicant.conf -ddd
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'wext'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
eapol_version=1
ap_scan=2
Line: 7 - start of a new network block
ssid - hexdump_ascii(len=5):
      50 6f 7a 7a 69                                    Pozzi
proto: 0x1
key_mgmt: 0x2
pairwise: 0x8
group: 0xe
PSK (ASCII passphrase) - hexdump_ascii(len=14): [REMOVED]
priority=2 (0x2)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 2
    id=0 ssid='Pozzi'
Initializing interface (2) 'eth1'
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:04:23:92:09:4a
wpa_driver_wext_set_wpa
SIOCGIWRANGE: WE(compiled)=19 WE(source)=16 enc_capa=0x0
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
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
Trying to associate with SSID 'Pozzi'
Cancelling scan request
Automatic auth_alg selection: 0x1
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 14 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_wext_set_drop_unencrypted
wpa_driver_wext_associate
ioctl[SIOCSIWFREQ]: Operation not supported
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=Auto
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b1a len=14
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
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=0
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
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
Trying to associate with SSID 'Pozzi'
Cancelling scan request
Automatic auth_alg selection: 0x1
WPA: Set cipher suites based on configuration
WPA: Selected cipher suites: group 14 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_wext_set_drop_unencrypted
wpa_driver_wext_associate
ioctl[SIOCSIWFREQ]: Operation not supported
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=Auto
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b1a len=14
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
Signal 2 received - terminating
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
wpa_driver_wext_set_wpa
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_countermeasures
Removed BSSID 00:00:00:00:00:00 from blacklist (clear)




More information about the Hostap mailing list