Gentoo 2.6.20, Broadcom 4311 and wpa_supplicant

Jason Gerfen jason.gerfen
Fri Mar 9 00:45:33 PST 2007


I am not sure why I am not able to use a shared public certificate with
wpa_supplicant.

Any help, pointers is appreciated. In the output from running
'wpa_supplicant -Dwext -ieth1 -c
/etc/wpa_supplicant/wpa_supplicant.conf' I am recieving an error of the
following:

wpa_driver_wext_associate
ioctl[SIOCSIWFREQ]: Invalid argument
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec

My system specs are as follows:
Dell Inspiron 9400/E1705
Intel Core Duo Processor T7200 (2GHz/667 FSB/4MB L2 Cache)
1GB Dual Channel 667MHz DDR2

Kernel output-
%> uname -a
Linux juxtapose 2.6.19-gentoo-r5 #7 SMP Thu Mar 1 12:06:23 MST 2007
x86_64 Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz GenuineIntel
GNU/Linux

Applied latest bcm43xx patch
(https://lists.berlios.de/pipermail/bcm43xx-dev/2007-February/003808.html)
%> cd /usr/src/linux-2.6.20/ && patch -p0 <../patch-bcm43xx

Current Kernel config-
Networking --->
<*>   Generic IEEE 802.11 Networking Stack
  [*]     Enable full debugging output
 <M>     IEEE 802.11 WEP encryption (802.1x)
 <M>     IEEE 802.11i CCMP support
 <M>     IEEE 802.11i TKIP encryption
 <M>     Software MAC add-on to the IEEE 802.11 networking stack

Device Drivers --->
 Networking Device Support --->
   Wireless LAN (non-hamradio) --->
     <M>   IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP)
      [*]    Support downloading firmware images with Host AP driver
      [*]    Support for non-volatile firmware download
     <M>   Host AP driver for Prism2/2.5/3 in PLX9052 PCI adaptors
     <M>   Host AP driver for Prism2.5 PCI adaptors
     <M>   Broadcom BCM43xx wireless support
      [*]    Broadcom BCM43xx debugging (RECOMMENDED)
              BCM43xx data transfer mode (DMA + PIO)  --->

And the steps I took to get the bcm43xx firmware installed-
%> bcm43xx-fwcutter -w /lib/firmware wl_apsta.o

lspci output-
%> lscpi
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and
945GT Express Memory Controller Hub (rev 03)
00:01.0 PCI bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and
945GT Express PCI Express Root Port (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High
Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
Port 2 (rev 01)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express
Port 4 (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
#1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
#2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
#3 (rev 01)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI
#4 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI
Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface
Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family)
Serial ATA Storage Controller IDE (rev 01)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller
(rev 01)
01:00.0 VGA compatible controller: nVidia Corporation Unknown device
0298 (rev a1)
03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX
(rev 02)
03:01.0 FireWire (IEEE 1394): Ricoh Co Ltd Unknown device 0832
03:01.1 Class 0805: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host
Adapter (rev 19)
03:01.2 System peripheral: Ricoh Co Ltd Unknown device 0843 (rev 01)
03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host
Adapter (rev 0a)
03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 05)
0c:00.0 Network controller: Broadcom Corporation Unknown device 4311
(rev 01)

The current wpa_supplicant.conf output-
%> cat wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant

network={
   ssid="network.com"
   scan_ssid=1
   proto=WPA2
   key_mgmt=WPA-EAP
   pairwise=TKIP
   eap=TTLS
   identity="username at network.com"
   password="password"
   ca_cert="public-certificate.cer"
   phase2="auth=PAP"
}

Some more details follow:

dmesg output-
%> dmesg
SoftMAC: Authentication response received from 00:11:24:91:61:fd but no
queue item exists.
SoftMAC: Authentication response received from 00:0b:0e:18:70:c2 but no
queue item exists.
SoftMAC: Authentication response received from 00:11:24:91:62:81 but no
queue item exists.
SoftMAC: Authentication response received from 00:0b:0e:18:70:c2 but no
queue item exists.
SoftMAC: Authentication response received from 00:11:24:92:a9:9d but no
queue item exists.
SoftMAC: Authentication response received from 00:0b:0e:18:70:c2 but no
queue item exists.
SoftMAC: Authentication response received from 00:11:24:91:61:40 but no
queue item exists.
SoftMAC: Authentication response received from 00:0b:0e:18:70:c2 but no
queue item exists.
SoftMAC: Authentication response received from 00:0b:0e:18:70:c2 but no
queue item exists.
SoftMAC: Authentication response received from 00:11:24:91:5d:fb but no
queue item exists.
printk: 1 messages suppressed.
SoftMAC: Authentication response received from 00:11:24:91:fb:f4 but no
queue item exists.
SoftMAC: Scanning finished: scanned 14 channels starting with channel 1
SoftMAC: Scanning finished: scanned 14 channels starting with channel 1
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
wpa_supplicant[14935]: segfault at 0000000000000048 rip 0000000000420ef6
rsp 00007fffbe6a8c50 error 4
bcm43xx: Radio turned off
bcm43xx: DMA-32 0x0200 (RX) max used slots: 2/64
bcm43xx: DMA-32 0x02A0 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0280 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0260 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0240 (TX) max used slots: 0/512
bcm43xx: DMA-32 0x0220 (TX) max used slots: 2/512
bcm43xx: DMA-32 0x0200 (TX) max used slots: 0/512
bcm43xx: Microcode rev 0x127, pl 0xe (2005-04-18  02:36:27)
bcm43xx: Radio turned on
bcm43xx: Chip initialized
bcm43xx: 32-bit DMA initialized
bcm43xx: Keys cleared
bcm43xx: Selected 802.11 core (phytype 2)
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
bcm43xx: set security called, .level = 0, .enabled = 0, .encrypt = 0
wpa_supplicant[14943]: segfault at 0000000000000048 rip 0000000000420ef6
rsp 00007fff641af750 error 4
eth1: no IPv6 routers present
bcm43xx: Radio turned off

iwlist output-
%> iwlist eth1 scan
eth1      Scan completed :
          Cell 01 - Address: 00:0B:0E:18:70:C0
                    ESSID:"network-1"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Channel:6
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Quality=100/100  Signal level=-34 dBm  Noise
level=-69 dBm
                    Extra: Last beacon: 216ms ago
          Cell 02 - Address: 00:0B:0E:18:70:C2
                    ESSID:"wpa-network"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Channel:6
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Quality=99/100  Signal level=-37 dBm  Noise
level=-69 dBm
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : 802.1X
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : 802.1X
                    Extra: Last beacon: 284ms ago

wpa_supplicant output-
%> wpa_supplicant -Dwext -ieth1 -dd
Initializing interface 'eth1' conf
'/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface
'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' ->
'/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Line: 6 - start of a new network block
ssid - hexdump_ascii(len=17):
     75 63 6f 6e 6e 65 63 74 2e 75 74 61 68 2e 65 64   wpa-networ
     75                                                k
scan_ssid=1 (0x1)
proto: 0x2
key_mgmt: 0x1
pairwise: 0x8
eap methods - hexdump(len=16): 00 00 00 00 15 00 00 00 00 00 00 00 00 00
00 00
identity - hexdump_ascii(len=17):
     75 30 33 36 38 38 33 39 40 75 74 61 68 2e 65 64   username at wpa-networ
     75                                                k
password - hexdump_ascii(len=8): [REMOVED]
ca_cert - hexdump_ascii(len=48):
     2f 68 6f 6d 65 2f 6a 61 73 6f 6e 2f 55 6f 66 55   /home/username/UofU
     57 69 72 65 6c 65 73 73 2f 55 6f 66 55 5f 50 75   Wireless/UofU_Pu
     62 6c 69 63 5f 43 41 5f 43 65 72 74 2e 63 65 72   blic_CA_Cert.cer
phase2 - hexdump_ascii(len=8):
     61 75 74 68 3d 50 41 50                           auth=PAP
Line 17: removed CCMP from group cipher list since it was not allowed
for pairwise cipher
Priority group 0
   id=0 ssid='wpa-network'
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
SIOCGIWRANGE: WE(compiled)=21 WE(source)=18 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:1a:92:42:40:d3
wpa_driver_wext_set_wpa
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
Using existing control interface directory.
ctrl_iface bind(PF_UNIX) failed: Address already in use
ctrl_iface exists, but does not allow connections - assuming it was
leftover from forced program termination
Successfully replaced leftover ctrl_iface socket
'/var/run/wpa_supplicant/eth1'
Added interface eth1
RTM_NEWLINK: operstate=0 ifi_flags=0x11023 ([UP][LOWER_UP])
Wireless event: cmd=0x8b06 len=12
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=17):
     75 63 6f 6e 6e 65 63 74 2e 75 74 61 68 2e 65 64   wpa-network
     75                                                u
Trying to get current scan results first without requesting a new scan
to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
RTM_NEWLINK: operstate=0 ifi_flags=0x11023 ([UP][LOWER_UP])
Wireless event: cmd=0x8b19 len=16
Received 657 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:0b:0e:18:70:c2 ssid='wpa-network' wpa_ie_len=30 rsn_ie_len=26
caps=0x11
   selected based on RSN IE
Trying to associate with 00:0b:0e:18:70:c2 (SSID='wpa-network' freq=2437
MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
RSN: using IEEE 802.11i/D9.0
WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 1 proto 2
WPA: set AP WPA IE - hexdump(len=30): dd 1c 00 50 f2 01 01 00 00 50 f2
02 02 00 00 50 f2 02 00 50 f2 04 01 00 00 50 f2 01 00 00
WPA: set AP RSN IE - hexdump(len=26): 30 18 01 00 00 0f ac 02 02 00 00
0f ac 02 00 0f ac 04 01 00 00 0f ac 01 00 00
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT 802.1X
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 02
01 00 00 0f ac 02 01 00 00 0f ac 01 00 00
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
ioctl[SIOCSIWFREQ]: Invalid argument
Association request to the driver failed
Setting authentication timeout: 5 sec 0 usec
EAPOL: External notification - portControl=Auto
RSN: Ignored PMKID candidate without preauth flag
RTM_NEWLINK: operstate=0 ifi_flags=0x11023 ([UP][LOWER_UP])
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x11023 ([UP][LOWER_UP])
Wireless event: cmd=0x8b1a len=33
RTM_NEWLINK: operstate=0 ifi_flags=0x11023 ([UP][LOWER_UP])
Wireless event: cmd=0x8b19 len=16
Received 657 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:0b:0e:18:70:c2 ssid='wpa-network' wpa_ie_len=30 rsn_ie_len=26
caps=0x11
   selected based on RSN IE
Already associated with the selected AP.
RSN: Ignored PMKID candidate without preauth flag
^XCTRL-EVENT-TERMINATING - signal 2 received
Removing interface eth1
State: ASSOCIATING -> DISCONNECTED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
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
No keys have been configured - skip key clearing
Cancelling scan request
Cancelling authentication timeout
WEXT: Operstate: linkmode=0, operstate=6




More information about the Hostap mailing list