* Re: BCM4331 deauthenticates every five minutes
2013-06-19 17:58 ` Chris Adams
@ 2013-06-19 19:30 ` Rafał Miłecki
2013-06-19 20:58 ` Arend van Spriel
2013-06-20 0:28 ` Chris Adams
2 siblings, 0 replies; 12+ messages in thread
From: Rafał Miłecki @ 2013-06-19 19:30 UTC (permalink / raw)
To: Rafał Miłecki, Larry Finger, b43-dev, linux-wireless
2013/6/19 Chris Adams <cma@cmadams.net>:
> Once upon a time, Rafał Miłecki <zajec5@gmail.com> said:
>> 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).
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.
--
Rafał
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BCM4331 deauthenticates every five minutes
2013-06-19 17:58 ` Chris Adams
2013-06-19 19:30 ` Rafał Miłecki
@ 2013-06-19 20:58 ` Arend van Spriel
2013-06-19 21:11 ` Chris Adams
2013-06-20 0:28 ` Chris Adams
2 siblings, 1 reply; 12+ messages in thread
From: Arend van Spriel @ 2013-06-19 20:58 UTC (permalink / raw)
To: Chris Adams
Cc: Rafał Miłecki, Larry Finger, b43-dev, linux-wireless
On 06/19/2013 07:58 PM, Chris Adams wrote:
> Once upon a time, Rafał Miłecki <zajec5@gmail.com> said:
>> 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).
>
Can you make a capture using a wireless sniffer (using your thinkpad maybe)?
Gr. AvS
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BCM4331 deauthenticates every five minutes
2013-06-19 20:58 ` Arend van Spriel
@ 2013-06-19 21:11 ` Chris Adams
2013-06-20 8:33 ` Arend van Spriel
0 siblings, 1 reply; 12+ messages in thread
From: Chris Adams @ 2013-06-19 21:11 UTC (permalink / raw)
To: Arend van Spriel
Cc: Rafał Miłecki, Larry Finger, b43-dev, linux-wireless
Once upon a time, Arend van Spriel <arend@broadcom.com> said:
> 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.
--
Chris Adams <cmadams@cmadams.net>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BCM4331 deauthenticates every five minutes
2013-06-19 21:11 ` Chris Adams
@ 2013-06-20 8:33 ` Arend van Spriel
2013-06-20 8:36 ` Arend van Spriel
2013-06-20 15:24 ` Dan Williams
0 siblings, 2 replies; 12+ messages in thread
From: Arend van Spriel @ 2013-06-20 8:33 UTC (permalink / raw)
To: Chris Adams
Cc: Rafał Miłecki, Larry Finger, b43-dev, linux-wireless
On 06/19/2013 11:11 PM, Chris Adams wrote:
> Once upon a time, Arend van Spriel <arend@broadcom.com> said:
>> 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
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BCM4331 deauthenticates every five minutes
2013-06-20 8:33 ` Arend van Spriel
@ 2013-06-20 8:36 ` Arend van Spriel
2013-06-20 15:24 ` Dan Williams
1 sibling, 0 replies; 12+ messages in thread
From: Arend van Spriel @ 2013-06-20 8:36 UTC (permalink / raw)
To: Chris Adams
Cc: Rafał Miłecki, Larry Finger, b43-dev, linux-wireless
On 06/20/2013 10:33 AM, Arend van Spriel wrote:
> On 06/19/2013 11:11 PM, Chris Adams wrote:
>> Once upon a time, Arend van Spriel <arend@broadcom.com> said:
>>> 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].
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
> 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@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BCM4331 deauthenticates every five minutes
2013-06-20 8:33 ` Arend van Spriel
2013-06-20 8:36 ` Arend van Spriel
@ 2013-06-20 15:24 ` Dan Williams
1 sibling, 0 replies; 12+ messages in thread
From: Dan Williams @ 2013-06-20 15:24 UTC (permalink / raw)
To: Arend van Spriel
Cc: Chris Adams, Rafał Miłecki, Larry Finger, b43-dev,
linux-wireless
On Thu, 2013-06-20 at 10:33 +0200, Arend van Spriel wrote:
> On 06/19/2013 11:11 PM, Chris Adams wrote:
> > Once upon a time, Arend van Spriel <arend@broadcom.com> said:
> >> 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.
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
> 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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BCM4331 deauthenticates every five minutes
2013-06-19 17:58 ` Chris Adams
2013-06-19 19:30 ` Rafał Miłecki
2013-06-19 20:58 ` Arend van Spriel
@ 2013-06-20 0:28 ` Chris Adams
2013-06-24 13:22 ` Chris Adams
2 siblings, 1 reply; 12+ messages in thread
From: Chris Adams @ 2013-06-20 0:28 UTC (permalink / raw)
To: Rafał Miłecki, Larry Finger, b43-dev, linux-wireless
Once upon a time, Chris Adams <cma@cmadams.net> said:
> 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.
--
Chris Adams <cma@cmadams.net>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: BCM4331 deauthenticates every five minutes
2013-06-20 0:28 ` Chris Adams
@ 2013-06-24 13:22 ` Chris Adams
0 siblings, 0 replies; 12+ messages in thread
From: Chris Adams @ 2013-06-24 13:22 UTC (permalink / raw)
To: Rafał Miłecki, Larry Finger, b43-dev, linux-wireless
Once upon a time, Chris Adams <cma@cmadams.net> said:
> Once upon a time, Chris Adams <cma@cmadams.net> said:
> > 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.
--
Chris Adams <cma@cmadams.net>
^ permalink raw reply [flat|nested] 12+ messages in thread