Skip to contentSkip to conversation

BCM4331 deauthenticates every five minutes

DISCUSSION Chris Adams 6 participants 13 messages Jun 19, 2013 – Jun 24, 2013

lore
Share & tools
lore
#0 lore raw

I have a MacBook Pro 8,2 with the BCM4331 wireless chip. I pulled the firmware (666.2, 2011-02-23 01:15:07) using b43-fwcutter, and am running Fedora 18 (tried up to kernel 3.9.6-200.fc18.x86_64 from updates/testing with the same results).

My problem is that it deauthenticates from the AP every 5 minutes (it then immediately reconnects). From what I've read, it looks like this chip is a little "different"; any ideas/suggestions to help get this working better?

Example dmesg chunk:

[  948.115374] wlan0: associated
[ 1249.636655] wlan0: deauthenticated from 00:a0:c8:xx:xx:xx (Reason: 1)
[ 1249.648124] cfg80211: Calling CRDA to update world regulatory domain
[ 1249.663978] cfg80211: World regulatory domain updated:
[ 1249.663981] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 1249.663983] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1249.663985] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1249.663986] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 1249.663987] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1249.663988] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1249.663999] cfg80211: Calling CRDA for country: US
[ 1249.668299] cfg80211: Regulatory domain changed to country: US
[ 1249.668306] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 1249.668312] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[ 1249.668317] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[ 1249.668322] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1249.668326] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1249.668330] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 1249.668334] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[ 1249.668339] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
[ 1250.492760] wlan0: authenticate with 00:a0:c8:xx:xx:xx
[ 1250.501350] wlan0: send auth to 00:a0:c8:xx:xx:xx (try 1/3)
[ 1250.503135] wlan0: authenticated
[ 1250.503462] b43 bcma0:0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[ 1250.503471] b43 bcma0:0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[ 1250.503868] wlan0: associate with 00:a0:c8:xx:xx:xx (try 1/3)
[ 1250.506146] wlan0: RX AssocResp from 00:a0:c8:xx:xx:xx (capab=0x431 status=0 aid=146)
[ 1250.506916] wlan0: associated
Signature · 1 line
Chris Adams <[email protected]>
#1 lore raw
Quoted 10 lines · Chris Adams

I have a MacBook Pro 8,2 with the BCM4331 wireless chip. I pulled the firmware (666.2, 2011-02-23 01:15:07) using b43-fwcutter, and am running Fedora 18 (tried up to kernel 3.9.6-200.fc18.x86_64 from updates/testing with the same results).

My problem is that it deauthenticates from the AP every 5 minutes (it then immediately reconnects). From what I've read, it looks like this chip is a little "different"; any ideas/suggestions to help get this working better?

Quoted 4 lines

Example dmesg chunk:

[  948.115374] wlan0: associated
[ 1249.636655] wlan0: deauthenticated from 00:a0:c8:xx:xx:xx (Reason: 1)

My table shows that a "Reason 1" deauthentication is for "unspecified reasons". Does anyone know why these might occur?

What type of encryption are you using? If it is a re-keying type such as TKIP, what is the interval? You should find that on the setup page of the access point.

BTW, your mailer is set up strangely. I get your address when I do a plain Reply, but a Reply All from Thunderbird only got the b43-dev mailing list. I had to add your address manually.

I also added the linux-wireless ML to the reply as some of my questions are more likely to be answered there.

Larry

#2 lore raw
Quoted 3 lines · Larry Finger

What type of encryption are you using? If it is a re-keying type such as TKIP, what is the interval? You should find that on the setup page of the access point.

I don't have access to the management of this particular AP (work environment), but "iw dev wlan0 scan dump" says CCMP.

Quoted 3 lines

BTW, your mailer is set up strangely. I get your address when I do a plain Reply, but a Reply All from Thunderbird only got the b43-dev mailing list. I had to add your address manually.

I'm using Mutt, which sets "Mail-Followup-To: <listaddr>" for configured mailing lists. If you were just replying to the b43-dev list, a CC to me isn't really needed (I subscribed before sending; didn't know if non-subscribers were allowed to send messages).

Signature · 1 line
Chris Adams <[email protected]>
#3 lore raw

2013/6/19 Chris Adams <[email protected]>:

Quoted 7 lines
Quoted 3 lines · Larry Finger

What type of encryption are you using? If it is a re-keying type such as TKIP, what is the interval? You should find that on the setup page of the access point.

I don't have access to the management of this particular AP (work environment), but "iw dev wlan0 scan dump" says CCMP.

I think some key interval applies not only to the TKIP, but also other keys. For example GTK (which is part of WPA2 with it's 4-way handshake). GTK is Group Temporal Key, and Broadcom's router have a setting called "GTK rotation interval". I guess PMK/PTK also can have some intervals.

I don't know how/if driver can be responsible for such reconnects. Over all it just TX and RX packets, right? Loosing a signal is something different, that can be related to the driver's bug. But as this happens every 5 minutes... I don't know.

Did you try connecting to this AP with any other card and using similar kernel? I wonder if this can be some supplicant / mac80211 stack issue...

Signature · 1 line
Rafa?
#4 lore raw
Quoted 8 lines · Rafa? Mi?ecki

I don't know how/if driver can be responsible for such reconnects. Over all it just TX and RX packets, right? Loosing a signal is something different, that can be related to the driver's bug. But as this happens every 5 minutes... I don't know.

Did you try connecting to this AP with any other card and using similar kernel? I wonder if this can be some supplicant / mac80211 stack issue...

I just fired up my Thinkpad T510 with an Intel "Centrino Ultimate-N 6300" using iwlwifi, and it stays connected (does not appear to drop any packets). This is also Fedora 18 x86_64 (slightly older kernel, but I've had the problem on the MacBook since I installed it). There are other people in the office with the same MacBook hardware (but running OS X) that don't appear to be having any trouble either.

The AP appears to be an Adtran (don't know the model).

Signature · 1 line
Chris Adams <[email protected]>
#5 lore raw

2013/6/19 Chris Adams <[email protected]>:

Quoted 10 lines
Quoted 8 lines · Rafa? Mi?ecki

I don't know how/if driver can be responsible for such reconnects. Over all it just TX and RX packets, right? Loosing a signal is something different, that can be related to the driver's bug. But as this happens every 5 minutes... I don't know.

Did you try connecting to this AP with any other card and using similar kernel? I wonder if this can be some supplicant / mac80211 stack issue...

Quoted 8 lines

I just fired up my Thinkpad T510 with an Intel "Centrino Ultimate-N 6300" using iwlwifi, and it stays connected (does not appear to drop any packets). This is also Fedora 18 x86_64 (slightly older kernel, but I've had the problem on the MacBook since I installed it). There are other people in the office with the same MacBook hardware (but running OS X) that don't appear to be having any trouble either.

The AP appears to be an Adtran (don't know the model).

Thanks for info/testing. I still wonder how driver's code can cause any disconnections happening exactly every 5 minutes... Any idea anyone?

One bug that was recently discovered and that sits in b43's code is passive scanning. For some reason it seems b43 doesn't do passive scanning, I didn't have time to debug that yet. I wonder if this can affect connection stability anyhow.

Perhaps you could try performing manual scanning every ~minute? It's really just a crazy guess, I don't have any idea why it could help. But it's so trivial you may want to give it a try.

Signature · 1 line
Rafa?
#6 lore raw
In reply to Chris Adams
Quoted 10 lines · Chris Adams
Quoted 8 lines · Rafa? Mi?ecki

I don't know how/if driver can be responsible for such reconnects. Over all it just TX and RX packets, right? Loosing a signal is something different, that can be related to the driver's bug. But as this happens every 5 minutes... I don't know.

Did you try connecting to this AP with any other card and using similar kernel? I wonder if this can be some supplicant / mac80211 stack issue...

Quoted 9 lines

I just fired up my Thinkpad T510 with an Intel "Centrino Ultimate-N 6300" using iwlwifi, and it stays connected (does not appear to drop any packets). This is also Fedora 18 x86_64 (slightly older kernel, but I've had the problem on the MacBook since I installed it). There are other people in the office with the same MacBook hardware (but running OS X) that don't appear to be having any trouble either.

The AP appears to be an Adtran (don't know the model).

Can you make a capture using a wireless sniffer (using your thinkpad maybe)?

Gr. AvS

#7 lore raw
Quoted 1 line · Arend van Spriel

Can you make a capture using a wireless sniffer (using your thinkpad maybe)?

How would I go about doing that? I've done lots of network debugging with tcpdump and such, but not much wireless stuff.

Signature · 1 line
Chris Adams <[email protected]>
#8 lore raw
Quoted 6 lines · Chris Adams
Quoted 1 line · Arend van Spriel

Can you make a capture using a wireless sniffer (using your thinkpad maybe)?

How would I go about doing that? I've done lots of network debugging with tcpdump and such, but not much wireless stuff.

I use wireshark these days. If you install that you can use the steps below and select the wireless interface in wireshark to capture. I use wlan0 as interface name, but it may be different for you.

1. disable network-manager so it won't interfere.
2. bring the interface down

$ sudo ifconfig wlan0 down
3. change interface type to monitor
$ sudo iw dev wlan0 set type monitor
4. bring up the interface
$ sudo ifconfig wlan0 up
5. start wireshark and select wlan0
$ gksudo wireshark

It will complain that running wireshark as root is not secure. If you care about that, you should read [1].

Regards,
Arend

[1]
http://wiki.wireshark.org/Security#Administrator.2Froot_account_not_required.21

#9 lore raw
Quoted 23 lines · Arend van Spriel
Quoted 7 lines · Chris Adams
Quoted 2 lines · Arend van Spriel

Can you make a capture using a wireless sniffer (using your thinkpad maybe)?

How would I go about doing that? I've done lots of network debugging with tcpdump and such, but not much wireless stuff.

I use wireshark these days. If you install that you can use the steps below and select the wireless interface in wireshark to capture. I use wlan0 as interface name, but it may be different for you.

1. disable network-manager so it won't interfere.
2. bring the interface down

$ sudo ifconfig wlan0 down
3. change interface type to monitor
$ sudo iw dev wlan0 set type monitor
4. bring up the interface
$ sudo ifconfig wlan0 up
5. start wireshark and select wlan0
$ gksudo wireshark
Quoted 2 lines

It will complain that running wireshark as root is not secure. If you care about that, you should read [1].

Forgot a step. You need to select a channel. You can do that before starting a capture in wireshark: $ sudo iw dev wlan0 set channel 5

Quoted 13 lines

Regards,
Arend

[1]
http://wiki.wireshark.org/Security#Administrator.2Froot_account_not_required.21

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

#10 lore raw
In reply to Arend van Spriel
Quoted 8 lines · Arend van Spriel
Quoted 6 lines · Chris Adams
Quoted 1 line · Arend van Spriel

Can you make a capture using a wireless sniffer (using your thinkpad maybe)?

How would I go about doing that? I've done lots of network debugging with tcpdump and such, but not much wireless stuff.

Quoted 5 lines

I use wireshark these days. If you install that you can use the steps below and select the wireless interface in wireshark to capture. I use wlan0 as interface name, but it may be different for you.

1. disable network-manager so it won't interfere.

It should be enough run "nmcli nm wifi off" and then un-rfkill the interface, and NM will leave it alone until you turn wifi back on. It will also remove the interface from wpa_supplicant.

Dan

Quoted 22 lines

2. bring the interface down

$ sudo ifconfig wlan0 down
3. change interface type to monitor
$ sudo iw dev wlan0 set type monitor
4. bring up the interface
$ sudo ifconfig wlan0 up
5. start wireshark and select wlan0
$ gksudo wireshark

It will complain that running wireshark as root is not secure. If you care about that, you should read [1].

Regards,
Arend

[1]
http://wiki.wireshark.org/Security#Administrator.2Froot_account_not_required.21

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw
In reply to Chris Adams
Quoted 1 line · Chris Adams

The AP appears to be an Adtran (don't know the model).

The issue appears to be specific to the Adtran AP combined with the b43 device. I have a D-Link DIR-625 at home (running OpenWRT 12.09, using ath9k wireless driver), and the MacBook seems to stay connected to it okay.

Signature · 1 line
Chris Adams <[email protected]>
#12 lore raw
Quoted 7 lines · Chris Adams
Quoted 1 line · Chris Adams

The AP appears to be an Adtran (don't know the model).

The issue appears to be specific to the Adtran AP combined with the b43 device. I have a D-Link DIR-625 at home (running OpenWRT 12.09, using ath9k wireless driver), and the MacBook seems to stay connected to it okay.

I haven't had a chance to do more debugging, but I did find one more bit of possibly-useful information: the "deauthenticating" bit only seems to happen when there is no traffic. I used the wireless in a meeting for a couple of hours, and it didn't deauthenticate once. I got back to my desk, plugged into the wired network, and the wireless started deauthenticating again every five minutes.

Signature · 1 line
Chris Adams <[email protected]>