You are not logged in.

#1 2012-05-28 11:38:35

vpoinot
Member
Registered: 2009-04-09
Posts: 19

Cannot connect via wifi with Broadcom 4313 / brcmsmac

I am trying to get wpa_supplicant working with my Broadcom 4313 wifi card.
According to https://wiki.archlinux.org/index.php/Broadcom_wireless, I should use the driver bcrmsac (my card's PCI id is [14e4:4727]). And indeed, I can see that udev selects this driver at boot time.

However wpa_supplicant cannot connect to my network: I frst thought it was a WPA / wrong key issue, so I disabled any encryption... and it still does not work.

In my wpa_supplicant.conf, I have:

update_config=1
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
ap_scan=1
fast_reauth=1

network={
        ssid="MySSID"
	key_mgmt=NONE
}

I try to run wpa_supplicant in debug mode with:

wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf -d

which produces:

Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
update_config=1
ctrl_interface='DIR=/var/run/wpa_supplicant GROUP=wheel'
eapol_version=1
ap_scan=1
fast_reauth=1
Priority group 0
   id=0 ssid='MySSID''
WEXT: cfg80211-based driver detected
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
netlink: Operstate: linkmode=1, operstate=5
Own MAC address: <some MAC address: not mine>
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
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
WPS: UUID based on MAC address - hexdump(len=16): fe 2e b3 80 a8 3c 51 fd ad fe 7d c4 78 ac 3d a4
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
ctrl_interface_group=10 (from group name 'wheel')
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=16
State: DISCONNECTED -> SCANNING
Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 5 seconds
EAPOL: disable timer tick
EAPOL: Supplicant port status: Unauthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=16
Scan results did not fit - trying larger buffer (8192 bytes)
Scan results did not fit - trying larger buffer (16384 bytes)
Received 9113 bytes of scan results (20 BSSes)
BSS: Start scan result update 1
BSS: Add new id 0 BSSID <MAC address1> SSID 'someSSID1'
BSS: Add new id 1 BSSID <MAC address2> SSID 'someSSID2'
...
BSS: Add new id 13 BSSID <my MAC address> SSID 'MySSID'
...
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: <MAC address1> ssid='someSSID1' wpa_ie_len=22 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
1: <MAC address2> ssid='someSSID2' wpa_ie_len=0 rsn_ie_len=24 caps=0x11
   skip - SSID mismatch
...
13: <my MAC address> ssid='MySSID' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   skip - no WPA/RSN IE
...
Try to find non-WPA AP
0: <MAC address1> ssid='someSSID1' wpa_ie_len=22 rsn_ie_len=0 caps=0x11
   skip - SSID mismatch
1: <MAC address2> ssid='someSSI2' wpa_ie_len=0 rsn_ie_len=24 caps=0x11
   skip - SSID mismatch
...
13: <my MAC address> ssid='MySSID' wpa_ie_len=0 rsn_ie_len=0 caps=0x1
   selected non-WPA AP <my MAC address> ssid='MySSID'
Trying to associate with <my MAC address> (SSID='MySSID' freq=2462 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: clearing AP WPA IE
WPA: clearing AP RSN IE
WPA: clearing own WPA/RSN IE
No keys have been configured - skip key clearing
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_psk
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP fail=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portControl=ForceAuthorized
EAPOL: Supplicant port status: Unauthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=16
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b04 len=16
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=25
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8c08 len=32
AssocResp IE wireless event - hexdump(len=16): 01 08 82 84 8b 96 0c 12 18 24 32 04 30 48 60 6c
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: <my MAC address>
Association info event
resp_ies - hexdump(len=16): 01 08 82 84 8b 96 0c 12 18 24 32 04 30 48 60 6c
State: ASSOCIATING -> ASSOCIATED
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
Associated to a new BSS: BSSID=<my MAC address>
Associated with <my MAC address>
WPA: Association event - clear replay counter
WPA: Clear old PTK
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state S_FORCE_AUTH
EAPOL: Supplicant port status: Authorized
EAPOL: SUPP_BE entering state IDLE
Cancelling authentication timeout
State: ASSOCIATED -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to <my MAC address> completed (auth) [id=0 id_str=]
wpa_driver_wext_set_operstate: operstate 0->1 (UP)
netlink: Operstate: linkmode=-1, operstate=6
Cancelling scan request
RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=1 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=1 ifi_flags=0x1043 ([UP][RUNNING])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: 00:00:00:00:00:00
Disassociation notification
Setting scan request: 0 sec 100000 usec
Added BSSID <my MAC address> into blacklist
CTRL-EVENT-DISCONNECTED bssid=<my MAC address> reason=0
State: COMPLETED -> DISCONNECTED
...

As far I understand, the line that says "WEXT: cfg80211-based driver detected" is good; I also see that wpa_supplicant goes from state DISCONNECTED, to SCANNING, then finds my ssid (MyNetwork), goes to ASSOCIATING, then ASSOCIATED and COMPLETED. All this looks good to me.

What is weird is the next lines:

Wireless event: cmd=0x8b15 len=24
Wireless event: new AP: 00:00:00:00:00:00
Disassociation notification
Setting scan request: 0 sec 100000 usec
Added BSSID <my MAC address> into blacklist
CTRL-EVENT-DISCONNECTED bssid=<my MAC address> reason=0
State: COMPLETED -> DISCONNECTED

What is this new AP: 00:00:00:00:00:00 ? Why does wpa_supplicant blacklist my MAC address ? What is going on here ?

Thanks a lot for any help.

Offline

#2 2012-05-30 08:07:37

vpoinot
Member
Registered: 2009-04-09
Posts: 19

Re: Cannot connect via wifi with Broadcom 4313 / brcmsmac

Any idea, hint, clue anyone? I am completely stuck, here...

Offline

#3 2012-05-30 08:19:38

micoka7
Member
Registered: 2012-02-09
Posts: 28

Re: Cannot connect via wifi with Broadcom 4313 / brcmsmac

Scroll down and you will see that you can use the broadcom-wl driver. I have the same card and the broadcom-wl worked for me.

Offline

Board footer

Powered by FluxBB