hostapd: Segmentation fault when using WPA with nl80211

Tim Connolly voyd at comcen.com.au
Wed Jun 4 04:01:45 EDT 2008


[Apologies if this message shows up twice - I originally sent it before 
subscribing and have missed the deadline for cancelling the message]


I have been able to successfully get an open AP going but when trying to use 
WPA I consistently get a segmentation fault during negotiation. This seems to 
be happening when returning from driver_nl80211.c:get_key_handler().

Kernel: latest rt2x00.git
Hostap: latest hostap.git
libnl: various different commit points from libnl.git
Test client: Windows XP Professional

My C isn't the best so I have not been able to figure out if this is some kind 
of version incompatibility (libnl? kernel? kernel headers?) or whether I have 
hit a genuine bug. I'd be grateful if someone could point me in the right 
direction.

While composing this message I realised that to get hostapd to build I had 
commented out the following line in driver_nl80211.c:
   #include <net/if.h>
and left the following line uncommented in Makefile:
    CFLAGS += -DUSE_KERNEL_HEADERS -I/usr/src/linux/include

Perhaps this is where the problem is coming from.


Sample output:

wlan0: STA 00:12:f0:76:03:b9 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=1 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 
keyidx=0 encr=0)
Checking STA 00:12:f0:76:03:b9 inactivity:
   Polling STA with data frame
wlan0: STA 00:12:f0:76:03:b9 WPA: EAPOL-Key timeout
WPA: 00:12:f0:76:03:b9 WPA_PTK entering state PTKSTART
wlan0: STA 00:12:f0:76:03:b9 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=1 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 
keyidx=0 encr=0)
IEEE 802.1X: 121 bytes from 00:12:f0:76:03:b9
    IEEE 802.1X: version=1 type=3 length=117
wlan0: STA 00:12:f0:76:03:b9 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA:  00:12:f0:76:03:b9 WPA_PTK entering state PTKCALCNEGOTIATING
WPA:  PTK derivation - A1=00:17:9a:c9:37:a7 A2=00:12:f0:76:03:b9
WPA:  PMK - hexdump(len=32): [REMOVED]
WPA:  PTK - hexdump(len=64): [REMOVED]
WPA:  00:12:f0:76:03:b9 WPA_PTK entering state PTKCALCNEGOTIATING2
WPA:  00:12:f0:76:03:b9 WPA_PTK entering state PTKINITNEGOTIATING
Segmentation fault



More information about the HostAP mailing list