driver_broadcom.c problem?

Ragnar Ch. Nevries nevries
Tue Mar 6 04:26:43 PST 2007


Jouni Malinen schrieb:
> On Thu, Mar 01, 2007 at 11:16:22AM +0100, Ragnar Ch. Nevries wrote:
>
>   
>> I get the following error if i try to connect to 802.1x secured wifi
>> network with an OpenWrt Router as client (it is an Dlink WRT54GL with
>> broadcom chip).
>> The version of wpa_supplicant is 0.4.7 . I think it is the same problem
>> as in Bug http://hostap.epitest.fi/bugz/show_bug.cgi?id=202
>>     
>
> Well, it is related, but not identical. The presense of WMM IE is indeed
> confusing the parser, but since you are not using WPA, that should be
> fine (but is not in v0.4.7).
>
>   
>> Please confirm this assumption and tell me if this is solved in newer
>> versions or if someone is working on it.
>>     
>
> The IE parsing problems is still open and I don't know whether anyone is
> working on it. The problem of bogus WPA IE preventing use of non-WPA
> mode has been resolved in v0.4.10 and v0.5.7. I would expect those
> versions to resolve the issue you are seeing (i.e., non-WPA case with
> WMM).
>
>   

Ok, i cross-compiled 0.4.10 for OpenWRT.
I'm not very experienced with 802.1x, but do i really not use WPA-mode?
The problem is not solved. See my config and debug output below.

Would it make sense to spend some time compiling 0.5.7 ?


CONFIG:
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
        ssid="802.1X"
        key_mgmt=IEEE8021X
        eap=PEAP
        phase2="auth=MSCHAPV2"
        identity="rn039"
        password="<removed>"
        #ca_cert="/etc/cert/ca.pem"
}


DEBUG:
root at OpenWrt:~# wpa_supplicant -c /etc/wpa_supplicant.conf -D broadcom
-i eth1 -dd
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver
'broadcom' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ap_scan=1
Line: 6 - start of a new network block
ssid - hexdump_ascii(len=6):
     38 30 32 2e 31 58                                 802.1X          
key_mgmt: 0x8
eap methods - hexdump(len=2): 19 00
phase2 - hexdump_ascii(len=13):
     61 75 74 68 3d 4d 53 43 48 41 50 56 32            auth=MSCHAPV2   
identity - hexdump_ascii(len=5):
     72 6e 30 33 39                                    rn039           
password - hexdump_ascii(len=8): [REMOVED]
Priority group 0
   id=0 ssid='802.1X'
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:18:f8:71:1e:d1
BROADCOM: wlioctl(eth1,164,len=4,val=0x7fff7c88)
BROADCOM: wlioctl(eth1,133,len=4,val=0x7fff7c8c)
BROADCOM: wlioctl(eth1,165,len=4,val=0x7fff7c88)
BROADCOM: wlioctl(eth1,134,len=4,val=0x7fff7c8c)
BROADCOM: wlioctl(eth1,122,len=6,val=0x7fff7c80)
BROADCOM: SET KEY[0] alg=0
BROADCOM: addr - hexdump(len=6): ff ff ff ff ff ff
BROADCOM: wlioctl(eth1,45,len=164,val=0x7fff7ba0)
BROADCOM: SET KEY[1] alg=0
BROADCOM: addr - hexdump(len=6): ff ff ff ff ff ff
BROADCOM: wlioctl(eth1,45,len=164,val=0x7fff7ba0)
BROADCOM: SET KEY[2] alg=0
BROADCOM: addr - hexdump(len=6): ff ff ff ff ff ff
BROADCOM: wlioctl(eth1,45,len=164,val=0x7fff7ba0)
BROADCOM: SET KEY[3] alg=0
BROADCOM: addr - hexdump(len=6): ff ff ff ff ff ff
BROADCOM: wlioctl(eth1,45,len=164,val=0x7fff7ba0)
BROADCOM: wlioctl(eth1,82,len=4,val=0x7fff7c98)
BROADCOM: wlioctl(eth1,120,len=4,val=0x7fff7c98)
Setting scan request: 0 sec 100000 usec
Added interface eth1
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
BROADCOM: wlioctl(eth1,50,len=36,val=0x7fff7c60)
Scan timeout - try to get results
BROADCOM: wlioctl(eth1,51,len=8192,val=0x100079b0)
BROADCOM: AP IEs - hexdump(len=127): 00 06 38 30 32 2e 31 58 01 08 82 04
0b 0c 12 16 18 24 03 01 06 2a 01 02 32 04 30 48 60 6c 85 1e 00 00 8c 00
0f 00 ff 03 19 00 61 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00
00 27 dd 06 00 40 96 01 01 02 dd 05 00 40 96 03 03 dd 16 00 40 96 04 00
08 07 a4 00 00 23 a4 00 00 42 43 00 00 62 32 00 00 dd 18 00 50 f2 02 01
01 08 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
BROADCOM: IE: id:0, len:6
BROADCOM: oui:383032
BROADCOM: IE: id:1, len:8
BROADCOM: oui:82040b
BROADCOM: IE: id:3, len:1
BROADCOM: IE: id:2a, len:1
BROADCOM: IE: id:32, len:4
BROADCOM: oui:304860
BROADCOM: IE: id:85, len:30
BROADCOM: oui:00008c
BROADCOM: IE: id:dd, len:6
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:5
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:22
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:24
BROADCOM: oui:0050f2
BROADCOM: AP IEs - hexdump(len=125): 00 04 77 6c 61 6e 01 08 82 04 0b 0c
12 16 18 24 03 01 06 2a 01 02 32 04 30 48 60 6c 85 1e 00 00 8c 00 0f 00
ff 03 19 00 61 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 27
dd 06 00 40 96 01 01 02 dd 05 00 40 96 03 03 dd 16 00 40 96 04 00 08 07
a4 00 00 23 a4 00 00 42 43 00 00 62 32 00 00 dd 18 00 50 f2 02 01 01 08
00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
BROADCOM: IE: id:0, len:4
BROADCOM: oui:776c61
BROADCOM: IE: id:1, len:8
BROADCOM: oui:82040b
BROADCOM: IE: id:3, len:1
BROADCOM: IE: id:2a, len:1
BROADCOM: IE: id:32, len:4
BROADCOM: oui:304860
BROADCOM: IE: id:85, len:30
BROADCOM: oui:00008c
BROADCOM: IE: id:dd, len:6
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:5
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:22
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:24
BROADCOM: oui:0050f2
BROADCOM: AP IEs - hexdump(len=40): 00 03 76 72 70 01 05 82 84 8b 96 2c
03 01 09 2a 01 04 32 08 0c 12 18 24 30 48 60 6c dd 0a 08 00 28 01 01 00
02 00 ff 0f
BROADCOM: IE: id:0, len:3
BROADCOM: oui:767270
BROADCOM: IE: id:1, len:5
BROADCOM: oui:82848b
BROADCOM: IE: id:3, len:1
BROADCOM: IE: id:2a, len:1
BROADCOM: IE: id:32, len:8
BROADCOM: oui:0c1218
BROADCOM: IE: id:dd, len:10
BROADCOM: oui:080028
BROADCOM: AP IEs - hexdump(len=134): 00 06 38 30 32 2e 31 58 01 08 82 04
0b 0c 12 16 18 24 03 01 0b 2a 01 03 32 04 30 48 60 6c 85 1e 00 00 8c 00
0f 00 ff 03 19 00 41 50 5f 33 30 2e 31 37 5f 55 4e 49 5f 48 47 00 01 00
00 27 dd 06 00 40 96 01 01 02 dd 05 00 40 96 03 04 dd 16 00 40 96 04 00
03 07 a4 00 00 23 a4 00 00 42 43 00 00 62 32 00 00 dd 05 00 40 96 0b 01
dd 18 00 50 f2 02 01 01 83 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32
2f 00
BROADCOM: IE: id:0, len:6
BROADCOM: oui:383032
BROADCOM: IE: id:1, len:8
BROADCOM: oui:82040b
BROADCOM: IE: id:3, len:1
BROADCOM: IE: id:2a, len:1
BROADCOM: IE: id:32, len:4
BROADCOM: oui:304860
BROADCOM: IE: id:85, len:30
BROADCOM: oui:00008c
BROADCOM: IE: id:dd, len:6
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:5
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:22
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:5
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:24
BROADCOM: oui:0050f2
BROADCOM: AP IEs - hexdump(len=132): 00 04 77 6c 61 6e 01 08 82 04 0b 0c
12 16 18 24 03 01 0b 2a 01 03 32 04 30 48 60 6c 85 1e 00 00 8c 00 0f 00
ff 03 19 00 41 50 5f 33 30 2e 31 37 5f 55 4e 49 5f 48 47 00 01 00 00 27
dd 06 00 40 96 01 01 02 dd 05 00 40 96 03 04 dd 16 00 40 96 04 00 03 07
a4 00 00 23 a4 00 00 42 43 00 00 62 32 00 00 dd 05 00 40 96 0b 01 dd 18
00 50 f2 02 01 01 83 00 03 a4 00 00 27 a4 00 00 42 43 5e 00 62 32 2f 00
BROADCOM: IE: id:0, len:4
BROADCOM: oui:776c61
BROADCOM: IE: id:1, len:8
BROADCOM: oui:82040b
BROADCOM: IE: id:3, len:1
BROADCOM: IE: id:2a, len:1
BROADCOM: IE: id:32, len:4
BROADCOM: oui:304860
BROADCOM: IE: id:85, len:30
BROADCOM: oui:00008c
BROADCOM: IE: id:dd, len:6
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:5
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:22
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:5
BROADCOM: oui:004096
BROADCOM: IE: id:dd, len:24
BROADCOM: oui:0050f2
Received 1016 bytes of scan results (5 BSSes)
Scan results: 5
Selecting BSS from priority group 0
0: 00:14:1b:59:bf:e0 ssid='802.1X' wpa_ie_len=26 rsn_ie_len=0 caps=0x0
wpa_parse_wpa_ie_wpa: malformed ie or unknown version
   skip WPA IE - parse failed
1: 00:14:1b:59:bf:e2 ssid='wlan' wpa_ie_len=26 rsn_ie_len=0 caps=0x0
   skip - SSID mismatch
2: 00:15:0c:14:28:f4 ssid='vrp' wpa_ie_len=0 rsn_ie_len=0 caps=0x0
   skip - no WPA/RSN IE
3: 00:14:1b:59:a3:10 ssid='802.1X' wpa_ie_len=26 rsn_ie_len=0 caps=0x0
wpa_parse_wpa_ie_wpa: malformed ie or unknown version
   skip WPA IE - parse failed
4: 00:14:1b:59:a3:12 ssid='wlan' wpa_ie_len=26 rsn_ie_len=0 caps=0x0
   skip - SSID mismatch
No suitable AP found.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 186 bytes
Desc: OpenPGP digital signature
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20070306/17955786/attachment.pgp 



More information about the Hostap mailing list