wpa supplicant v0.3.4 and WEP issue

Henrik Brix Andersen brix at gentoo.org
Wed Jan 19 10:32:09 EST 2005


Hi,

On Tue, 2005-01-18 at 22:05 -0500, Zimmermann, Christopher Brian (Chris)
wrote:
> In the function wpa_supplicant_associate(), in file wpa_supplicant.c, I
> believe there is a bug for static WEP keying (no 802.1x) and no
> encryption modes.  I've needed to modify the block of code towards the
> end of the function to include the VxWorks specific block.  Otherwise
> the function wpa_supplicant_timeout() will continuously attempt to
> disassociate/scan.
[snip code]

Looks right to me...

> Does anyone else see this?

Actually, I was just investigating a similar problem yesterday. When I
start wpa_supplicant [1] and it associates with a non-encrypted AP it
seems to drop the connection almost immediately. If I issue a 'wpa_cli
reassociate' it re-associates and the connection is not dropped again.

The relevant section of my wpa_supplicant.conf file looks as follows:

        ctrl_interface=/var/run/wpa_supplicant
        ctrl_interface_group=wheel
        eapol_version=1
        ap_scan=1
        
        network={
                ssid="Wireless"
                key_mgmt=NONE
                priority=0
        }

I've tested this with wpa_supplicant-0.2.6 and 0.3.4 (both with and
without your proposed patch). The problem occurs with both versions.

The debug output from wpa_supplicant is attached to this mail in hope
that someone might be able to spot the problem.

Sincerely,
Brix

[1]: wpa_supplicant -i eth1 -D ipw2100 -c /etc/wpa_supplicant.conf -dd
-- 
Henrik Brix Andersen <brix at gentoo.org>
Gentoo Linux
-------------- next part --------------
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ipw2100'
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=10 (from group name 'wheel')
eapol_version=1
ap_scan=1
Line: 12 - start of a new network block
ssid - hexdump_ascii(len=6):
     63 61 72 76 69 74                                 carvit          
BSSID - hexdump(len=6): 00 0c 41 3a 55 6f
key_mgmt: 0x2
pairwise: 0x8
group: 0x8
PSK - hexdump(len=32): [REMOVED]
priority=2 (0x2)
Line: 35 - start of a new network block
ssid - hexdump_ascii(len=11):
     49 48 41 2d 4f 50 45 4e 4e 45 54                  IHA-OPENNET     
proto: 0x1
eap methods - hexdump(len=2): 19 00
key_mgmt: 0x1
pairwise: 0x8
group: 0x8
eap methods - hexdump(len=2): 19 00
identity - hexdump_ascii(len=9):
     69 68 61 5c 30 31 30 37 39                        iha\01079       
password - hexdump_ascii(len=8): [REMOVED]
phase1 - hexdump_ascii(len=9):
     70 65 61 70 76 65 72 3d 30                        peapver=0       
phase2 - hexdump_ascii(len=13):
     61 75 74 68 3d 4d 53 43 48 41 50 56 32            auth=MSCHAPV2   
priority=1 (0x1)
Line: 50 - start of a new network block
ssid - hexdump_ascii(len=7):
     72 65 64 73 70 6f 74                              redspot         
key_mgmt: 0x4
priority=0 (0x0)
Line: 56 - start of a new network block
ssid - hexdump_ascii(len=8):
     57 69 72 65 6c 65 73 73                           Wireless        
key_mgmt: 0x4
priority=0 (0x0)
Priority group 2
   id=0 ssid='carvit'
Priority group 1
   id=1 ssid='IHA-OPENNET'
Priority group 0
   id=2 ssid='redspot'
   id=3 ssid='Wireless'
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:0c:f1:1d:48:41
wpa_driver_ipw2100_set_wpa: enabled=1
wpa_driver_ipw2100_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_ipw2100_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_ipw2100_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_ipw2100_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_ipw2100_set_countermeasures: enabled=0
wpa_driver_ipw2100_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Starting AP scan (broadcast SSID)
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
Scan timeout - try to get results
Received 207 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 2
0: 00:30:ab:0c:38:25 ssid='Wireless' wpa_ie_len=0 rsn_ie_len=0
   skip - no WPA/RSN IE
Selecting BSS from priority group 1
0: 00:30:ab:0c:38:25 ssid='Wireless' wpa_ie_len=0 rsn_ie_len=0
   skip - no WPA/RSN IE
Selecting BSS from priority group 0
0: 00:30:ab:0c:38:25 ssid='Wireless' wpa_ie_len=0 rsn_ie_len=0
   skip - no WPA/RSN IE
   selected non-WPA AP 00:30:ab:0c:38:25 ssid='Wireless'
Trying to associate with 00:30:ab:0c:38:25 (SSID='Wireless' freq=0 MHz)
Cancelling scan request
Automatic auth_alg selection: 0x1
wpa_driver_ipw2100_set_auth_alg: auth_alg=0x1
No keys have been configured - skip key clearing
wpa_driver_ipw2100_set_drop_unencrypted: enabled=0
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=ForceAuthorized
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:30:ab:0c:38:25
Association event - clear replay counter
Associated to a new BSS: BSSID=00:30:ab:0c:38:25
Associated with 00:30:ab:0c:38:25
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state S_FORCE_AUTH
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Cancelling authentication timeout
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
Wireless event: cmd=0x8b1a len=21
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=59
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=58
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=57
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=56
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=55
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=54
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=53
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=52
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=51
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=50
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=49
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=48
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=47
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=46
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=45
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=44
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=43
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=42
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=41
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=40
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=39
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=38
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=37
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=36
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=35
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=34
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=33
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=32
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=31
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=30
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=29
RX ctrl_iface - hexdump_ascii(len=11):
     52 45 41 53 53 4f 43 49 41 54 45                  REASSOCIATE     
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=28
RTM_NEWLINK, IFLA_IFNAME: Interface 'eth1' added
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:30:ab:0c:38:25
Association event - clear replay counter
Associated with 00:30:ab:0c:38:25
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 - portEnabled=1
EAPOL: SUPP_PAE entering state S_FORCE_AUTH
EAPOL: SUPP_BE entering state IDLE
EAP: EAP entering state INITIALIZE
EAP: EAP entering state IDLE
Cancelling authentication timeout
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=59
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=58
Scan timeout - try to get results
Received 207 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 2
0: 00:30:ab:0c:38:25 ssid='Wireless' wpa_ie_len=0 rsn_ie_len=0
   skip - no WPA/RSN IE
Selecting BSS from priority group 1
0: 00:30:ab:0c:38:25 ssid='Wireless' wpa_ie_len=0 rsn_ie_len=0
   skip - no WPA/RSN IE
Selecting BSS from priority group 0
0: 00:30:ab:0c:38:25 ssid='Wireless' wpa_ie_len=0 rsn_ie_len=0
   skip - no WPA/RSN IE
   selected non-WPA AP 00:30:ab:0c:38:25 ssid='Wireless'
Trying to associate with 00:30:ab:0c
-------------- 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/20050119/36917316/attachment.pgp 


More information about the HostAP mailing list