2014-06-11 23:05:22

by Aaro Koskinen

[permalink] [raw]
Subject: Linux 3.15: WLAN regression on WRL54GL/B43?

Hi,

While testing the final 3.15, I noticed that "iwlist wlan0 scanning"
cannot find anything on my WRT54GL router anymore:

# iwlist wlan0 scanning
wlan0 No scan results

I bisected this to:

3afc2167f60a327a2c1e1e2600ef209a3c2b75b7 is the first bad commit
commit 3afc2167f60a327a2c1e1e2600ef209a3c2b75b7
Author: Emmanuel Grumbach <[email protected]>
Date: Tue Mar 4 16:50:13 2014 +0200

cfg80211/mac80211: ignore signal if the frame was heard on wrong channel

Test case: I simply test it after the boot as follows:

modprobe b43
ifconfig wlan0 up
iwlist wlan0 scanning

Any ideas?

A.


2014-06-12 06:21:56

by Rafał Miłecki

[permalink] [raw]
Subject: Re: Linux 3.15: WLAN regression on WRL54GL/B43?

On 12 June 2014 07:44, Rafał Miłecki <[email protected]> wrote:
> On 12 June 2014 01:05, Aaro Koskinen <[email protected]> wrote:
>> While testing the final 3.15, I noticed that "iwlist wlan0 scanning"
>> cannot find anything on my WRT54GL router anymore:
>
> I believe it's BCM5352E SoC wth G-PHY rev 7 and radio 0x2050 rev 2. Is
> that correct? Provide us a boot log.

I've reproduced this on my G-PHY rev 8. This is a bug caused by the:
status.freq = chanid + 2400;

It results in the:
[ 1500.651877] Got chanid:3 set freq:2403
[ 1500.719688] Got chanid:4 set freq:2404
[ 1500.788645] Got chanid:5 set freq:2405
[ 1500.857630] Got chanid:6 set freq:2406
[ 1500.936061] Got chanid:7 set freq:2407
[ 1500.973772] Got chanid:8 set freq:2408
[ 1501.084351] Got chanid:9 set freq:2409

I'll submit a fix.

--
Rafał

2014-06-12 05:44:43

by Rafał Miłecki

[permalink] [raw]
Subject: Re: Linux 3.15: WLAN regression on WRL54GL/B43?

On 12 June 2014 01:05, Aaro Koskinen <[email protected]> wrote:
> While testing the final 3.15, I noticed that "iwlist wlan0 scanning"
> cannot find anything on my WRT54GL router anymore:

I believe it's BCM5352E SoC wth G-PHY rev 7 and radio 0x2050 rev 2. Is
that correct? Provide us a boot log.

2014-06-12 08:24:18

by Aaro Koskinen

[permalink] [raw]
Subject: Re: Linux 3.15: WLAN regression on WRL54GL/B43?

Hi,

On Thu, Jun 12, 2014 at 07:44:42AM +0200, Rafał Miłecki wrote:
> On 12 June 2014 01:05, Aaro Koskinen <[email protected]> wrote:
> > While testing the final 3.15, I noticed that "iwlist wlan0 scanning"
> > cannot find anything on my WRT54GL router anymore:
>
> I believe it's BCM5352E SoC wth G-PHY rev 7 and radio 0x2050 rev 2. Is
> that correct? Provide us a boot log.

Yes, it's:

[ 9.460000] b43-phy0: Broadcom 5352 WLAN found (core revision 9)
[ 9.520000] b43-phy0: Found PHY: Analog 2, Type 2 (G), Revision 7

I confirm your patch fixes the issue, thanks.

A.

2014-06-11 23:34:17

by James Cameron

[permalink] [raw]
Subject: Re: Linux 3.15: WLAN regression on WRL54GL/B43?

Check that the driver reports the channel the probe was heard on?

Another driver hit this and was fixed:

at76c50x: fix scan does not work with latest mac80211

--
James Cameron
http://quozl.linux.org.au/

2014-06-11 23:53:44

by Larry Finger

[permalink] [raw]
Subject: Re: Linux 3.15: WLAN regression on WRL54GL/B43?

On 06/11/2014 06:34 PM, James Cameron wrote:
> Check that the driver reports the channel the probe was heard on?
>
> Another driver hit this and was fixed:
>
> at76c50x: fix scan does not work with latest mac80211
>

It would also be helpful to report what device you have as shown by 'lspci -nn'.
This problem does not occur with my BCM4312 with PCI ID 14e4:4315.

Larry