IEEE 802.1x with dynamic WEP doesn't work in hostapd CVS

Andrew Barr barr.156
Fri Nov 12 13:39:38 PST 2004


I upgraded my AP to the latest HostAP CVS trying to resolve a WPA issue that 
now appears to be the fault of the driver (or operator) ;-). Failing to 
resolve the issue, I configured my AP to use IEEE 802.1x with dynamic WEP, 
and I could not authenticate. Running xsupplicant with -d9 for verbose 
debugging, I got this:

tigris abarr # xsupplicant -i eth1 -f -d9
Using default config!
network_list: "osuweb"
network_list: "OakcourtNG"
Logfile: "/var/log/xsupplicant.log"
First_Auth command: "/usr/bin/true"
Reauth command: "/usr/bin/true"
allow_interface_list: "eth1"
deny_interface_list: "eth0"
deny_interface_list: "lo"
deny_interface_list: "sit0"
deny_interface_list: "irda0"
Type: Wireless
Allow Types: ALL
ID: "barr156"
leap username: "barr156"
leap password: "xxxxxxxxxxxxxxxxx"
Type: Wireless
Allow Types: ALL
ID: "abarr"
peap root_cert: "/etc/certs/root.crt"
peap chunk: 1398
peap rand: "/dev/urandom"
peap CN check : "Oakcourt.dyndns.org"
match CN exactly : "no"
Session Resumption = YES
mschapv2 username: "abarr"
mschapv2 password: "xxxxxxxxxxxxxxx"
[INT] Called event_core_setup()!
[INT] Called cardif_linux_rtnetlink_init()!
[INT] Found interface : lo
[INT] Interface lo will be ignored!
[INT] Found interface : irda0
[INT] Interface irda0 will be ignored!
[INT] Found interface : eth0
[INT] Interface eth0 will be ignored!
[INT] Found interface : eth1
[INT] ADDING INTERFACE : eth1
[INT] Flags are : 06
[INT] Initializing socket for interface eth1..
[INT] Index : 7
[INT] Allmulti is currently disabled on this device!
Interface eth1 initalized!
[INT] Interface eth1 is wireless!
[INT] The card reported that the destination MAC address is now 00 0D 88 50 C7 
30
[INT] Userdata is NULL!
[INT] Working with ESSID : OakcourtNG
[CONFIG] Working from config file /etc/xsupplicant.conf.
[INT] No more interfaces to look at!
[CONFIG] Opened socket descriptor #7
Checking event interface.
[INT] Got an RTM_NEWLINK!
[INT] Working with an interface with index of 7.
[INT]    -- Got a new interface request.
[INT] Found interface eth1, with index of 7! (Ignored)
[ALL] Processing interface eth1... (Flags : 05)
Couldn't get frame.  (Maybe there weren't any!)
Socket would block!
There are no frames to process.
[STATE] (global) -> DISCONNECTED
[INT] Encryption appears to be disabled.  We will not reset keys on interface 
eth1!
[STATE] Processing DISCONNECTED state.
[STATE] DISCONNECTED -> CONNECTING
Checking event interface.
[ALL] Processing interface eth1... (Flags : 05)
Couldn't get frame.  (Maybe there weren't any!)
Socket would block!
There are no frames to process.
[STATE] Processing CONNECTING state.
[STATE] Sending EAPOL-Start Frame.
[ALL] Frame to be sent :
00 0D 88 50 C7 30 00 04 - 23 5E F9 21 88 8E 01 01 ...P.0..#^.!....
00 00                                             ..
Checking event interface.
[ALL] Processing interface eth1... (Flags : 05)
[ALL] Got Frame :
00 04 23 5E F9 21 00 0D - 88 50 C7 30 88 8E 02 00 ..#^.!...P.0....
00 05 01 00 00 05 01                              .......
[ALL] Got invalid EAPOL frame!
Checking event interface.
[ALL] Processing interface eth1... (Flags : 05)
Couldn't get frame.  (Maybe there weren't any!)
Socket would block!
There are no frames to process.
[ALL] Clock tick! authWhile=29 heldWhile=59 startWhen=29 curState=CONNECTING
<preceding 6 lines repeat until killed>

Notice the invalid EAPOL frame message. Downgrading to the latest release 
(hostapd 0.2.5) immediately resolves the problem. Does the CVS version of 
hostapd work, or should I be sticking to stable releases here?

Andrew




More information about the Hostap mailing list