Broadcom BCM4312 working 1 tries out of 10

I have installed b43 with the install script and I can see all wireless networks fine, but NetworkManager just keeps asking me for the WPA passphrase, despite it being correct. I tried disabling WPA on the router, but then the connection hangs at “Configuring interface” instad. I also tried with ifup, but I’m not sure I configured everything correctly.

I don’t get any smarter from the NetworkManager logs, maybe someone else can decipher them?

tail -50 when connection doesn’t work:

Apr 18 17:00:11 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Apr 18 17:00:11 jan NetworkManager[1291]: <info> Config: set interface ap_scan to 1
Apr 18 17:00:11 jan NetworkManager[1291]: <info> (wlan0): supplicant connection state:  disconnected -> scanning
Apr 18 17:00:37 jan NetworkManager[1291]: <warn> Activation (wlan0/wireless): association took too long.
Apr 18 17:00:37 jan NetworkManager[1291]: <info> (wlan0): device state change: 5 -> 6 (reason 0)
Apr 18 17:00:37 jan NetworkManager[1291]: <warn> Activation (wlan0/wireless): asking for new secrets
Apr 18 17:00:37 jan NetworkManager[1291]: <info> (wlan0): supplicant connection state:  scanning -> disconnected
Apr 18 17:00:41 jan NetworkManager[1291]: <warn> Failed to update connection secrets: 1 802-1x
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Apr 18 17:00:41 jan NetworkManager[1291]: <info> (wlan0): device state change: 6 -> 4 (reason 0)
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Apr 18 17:00:41 jan NetworkManager[1291]: <info> (wlan0): device state change: 4 -> 5 (reason 0)
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Activation (wlan0/wireless): connection 'vemod' has security, and secrets exist.  No new secrets needed.
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Config: added 'ssid' value 'vemod'
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Config: added 'scan_ssid' value '1'
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Config: added 'psk' value '<omitted>'
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Apr 18 17:00:41 jan NetworkManager[1291]: <info> Config: set interface ap_scan to 1
Apr 18 17:00:41 jan NetworkManager[1291]: <info> (wlan0): supplicant connection state:  disconnected -> scanning
Apr 18 17:01:07 jan NetworkManager[1291]: <warn> Activation (wlan0/wireless): association took too long.
Apr 18 17:01:07 jan NetworkManager[1291]: <info> (wlan0): device state change: 5 -> 6 (reason 0)
Apr 18 17:01:07 jan NetworkManager[1291]: <warn> Activation (wlan0/wireless): asking for new secrets
Apr 18 17:01:07 jan NetworkManager[1291]: <info> (wlan0): supplicant connection state:  scanning -> disconnected
Apr 18 17:01:12 jan NetworkManager[1291]: <warn> Failed to update connection secrets: 1 802-1x
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Apr 18 17:01:12 jan NetworkManager[1291]: <info> (wlan0): device state change: 6 -> 4 (reason 0)
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Apr 18 17:01:12 jan NetworkManager[1291]: <info> (wlan0): device state change: 4 -> 5 (reason 0)
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Activation (wlan0/wireless): connection 'vemod' has security, and secrets exist.  No new secrets needed.
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Config: added 'ssid' value 'vemod'
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Config: added 'scan_ssid' value '1'
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Config: added 'psk' value '<omitted>'
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Apr 18 17:01:12 jan NetworkManager[1291]: <info> Config: set interface ap_scan to 1
Apr 18 17:01:12 jan NetworkManager[1291]: <info> (wlan0): supplicant connection state:  disconnected -> scanning
Apr 18 17:01:38 jan NetworkManager[1291]: <warn> Activation (wlan0/wireless): association took too long.
Apr 18 17:01:38 jan NetworkManager[1291]: <info> (wlan0): device state change: 5 -> 9 (reason 7)
Apr 18 17:01:38 jan NetworkManager[1291]: <warn> Activation (wlan0) failed for access point (vemod)
Apr 18 17:01:38 jan NetworkManager[1291]: <info> Marking connection 'vemod' invalid.
Apr 18 17:01:38 jan NetworkManager[1291]: <warn> Activation (wlan0) failed.
Apr 18 17:01:38 jan NetworkManager[1291]: <info> (wlan0): device state change: 9 -> 3 (reason 0)
Apr 18 17:01:38 jan NetworkManager[1291]: <info> (wlan0): deactivating device (reason: 0).

and after a successful connection:



Apr 18 19:30:16 jan NetworkManager[1289]: <info> (wlan0): device state change: 5 -> 6 (reason 0)
Apr 18 19:30:16 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Apr 18 19:30:17 jan NetworkManager[1289]: <warn> Failed to update connection secrets: 1 802-1x
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Apr 18 19:30:17 jan NetworkManager[1289]: <info> (wlan0): device state change: 6 -> 4 (reason 0)
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Apr 18 19:30:17 jan NetworkManager[1289]: <info> (wlan0): device state change: 4 -> 5 (reason 0)
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Activation (wlan0/wireless): connection 'vemod' has security, and secrets exist.  No new secrets needed.
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Config: added 'ssid' value 'vemod'
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Config: added 'scan_ssid' value '1'
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Config: added 'key_mgmt' value 'WPA-PSK'
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Config: added 'psk' value '<omitted>'
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Apr 18 19:30:17 jan NetworkManager[1289]: <info> Config: set interface ap_scan to 1
Apr 18 19:30:17 jan NetworkManager[1289]: <info> (wlan0): supplicant connection state:  inactive -> scanning
Apr 18 19:30:18 jan NetworkManager[1289]: <info> (wlan0): supplicant connection state:  scanning -> associating
Apr 18 19:30:18 jan NetworkManager[1289]: <info> (wlan0): supplicant connection state:  associating -> associated
Apr 18 19:30:19 jan NetworkManager[1289]: <info> (wlan0): supplicant connection state:  associated -> 4-way handshake
Apr 18 19:30:19 jan NetworkManager[1289]: <info> (wlan0): supplicant connection state:  4-way handshake -> group handshake
Apr 18 19:30:19 jan NetworkManager[1289]: <info> (wlan0): supplicant connection state:  group handshake -> completed
Apr 18 19:30:19 jan NetworkManager[1289]: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'vemod'.
Apr 18 19:30:19 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Apr 18 19:30:19 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Apr 18 19:30:19 jan NetworkManager[1289]: <info> (wlan0): device state change: 5 -> 7 (reason 0)
Apr 18 19:30:19 jan NetworkManager[1289]: <info> Activation (wlan0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Apr 18 19:30:19 jan NetworkManager[1289]: <info> dhclient started with pid 2119
Apr 18 19:30:19 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Apr 18 19:30:19 jan NetworkManager[1289]: <info> (wlan0): DHCPv4 state changed nbi -> preinit
Apr 18 19:30:19 jan NetworkManager[1289]: <info> (wlan0): DHCPv4 state changed preinit -> reboot
Apr 18 19:30:19 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) scheduled...
Apr 18 19:30:19 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) started...
Apr 18 19:30:19 jan NetworkManager[1289]: <info>   address 192.168.9.2
Apr 18 19:30:19 jan NetworkManager[1289]: <info>   prefix 24 (255.255.255.0)
Apr 18 19:30:19 jan NetworkManager[1289]: <info>   gateway 192.168.9.1
Apr 18 19:30:19 jan NetworkManager[1289]: <info>   nameserver '192.168.9.1'
Apr 18 19:30:19 jan NetworkManager[1289]: <info>   nameserver '8.8.8.8'
Apr 18 19:30:19 jan NetworkManager[1289]: <info>   domain name 'vemod'
Apr 18 19:30:19 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) scheduled...
Apr 18 19:30:19 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) complete.
Apr 18 19:30:19 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) started...
Apr 18 19:30:20 jan NetworkManager[1289]: <info> Clearing nscd hosts cache.
Apr 18 19:30:20 jan NetworkManager[1289]: <info> (wlan0): device state change: 7 -> 8 (reason 0)
Apr 18 19:30:20 jan NetworkManager[1289]: <info> Policy set 'vemod' (wlan0) as default for IPv4 routing and DNS.
Apr 18 19:30:20 jan NetworkManager[1289]: <info> Activation (wlan0) successful, device activated.
Apr 18 19:30:20 jan NetworkManager[1289]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.
Apr 18 19:30:20 jan nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/autofs' exited with error status 1.
Apr 18 19:30:24 jan nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/nfs' exited with error status 2.

I previously used Ubuntu with the netbook with no wifi problems, and another laptop running openSUSE can use the wifi fine.

I tried installing the broadcom-wl packages, btw, and then wifi wasn’t available at all.

I got my BCM4312 LP-PHY (in a Dell laptop) working by enabling pio and
disabling qos (see b43 webpage for this hint).

create a file “/etc/modprobe.d/50-b43.conf” with contents

Code:

options b43 pio=1 qos=0


obviously make sure you’ve uninstalled broadcom-wl properly if you’re
wanting to switch back to b43. and make sure you’ve run b43-fwcutter
with a net connection to download the firmware.