FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 04-30-2011, 05:04 AM
Ben Hutchings
 
Default Bug#622842: brcm80211 not setting correct country code?

Wenceslao González-Viñas wrote:
[...]
> [ 330.205983] brcm80211: module is from the staging directory, the quality is unknown, you have been warned.
> [ 330.212186] brcm80211 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
> [ 330.212195] brcm80211 0000:03:00.0: setting latency timer to 64
> [ 330.268237] Found chip type AI (0x13814313)
> [ 330.271328] Changing max_res_mask to 0xffff
> [ 330.271330] Changing min_res_mask to 0x200d
> [ 330.277446] Applying 4313 WARs
> [ 330.278330] wlc_bmac_attach:: deviceid 0x4727 nbands 1 board 0x51a macaddr: 88:25:2c:4e:9e:34
> [ 330.283578] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
> [ 330.285363] wl_set_hint: Sending country code US to MAC80211
> [ 330.285371] wl0: Broadcom BCM43xx 802.11 MAC80211 Driver (1.82.8.0) (Compiled at 04:19:31 on Apr 7 2011)
> [ 330.365121] ADDRCONF(NETDEV_UP): wlan0: link is not ready
> ----------------------
>
> By the way, before I used 'modprobe cfg80211 ieee80211_regdom=EU' .
> Perhaps the problem comes from that and line (dmesg) 330.285363 ? I
> need channel 13 ...
[...]

I asked where the device was purchased:

> In Spain (PC - City company). It is a Dell Inspiron M101z (service tag
> CHL0SM1) . BTW, in Windows 7, it worked perfectly. But I removed it
> installing Debian Wheezy.
[...]

I looked at the driver source code and there is certainly an attempt to
use a country code from NVRAM. But maybe it hasn't actually been read
from NVRAM at the point this is done. 'US' seems to be the default if
the country code is blank.

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
 
Old 04-30-2011, 08:14 AM
"Arend van Spriel"
 
Default Bug#622842: brcm80211 not setting correct country code?

On 04/30/2011 07:04 AM, Ben Hutchings wrote:


I looked at the driver source code and there is certainly an attempt to
use a country code from NVRAM. But maybe it hasn't actually been read
from NVRAM at the point this is done. 'US' seems to be the default if
the country code is blank.

Ben.


Please refer to the information on wireless.kernel.org:
http://wireless.kernel.org/en/users/Drivers/brcm80211#Regulatory_Implementation

You could investigate whether the NVRAM/SROM country code is indeed
blank or really configured with 'US'. For the driver itself channel 13
can be used as long as your access point is transmitting beacons,
because it is regarded as a passive channel.


Reading the logs listed in bug #622842 I would suggest running the
following command after loading the brcm80211 driver:

$ iw set reg EU

You should see following in the log:
Apr 30 10:05:22 myhost kernel: [ 3967.072332] cfg80211: Calling CRDA for
country: EU


Gr. AvS




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4DBBC4DA.8000101@broadcom.com">http://lists.debian.org/4DBBC4DA.8000101@broadcom.com
 
Old 04-30-2011, 08:38 AM
Wenceslao González-Viñas
 
Default Bug#622842: brcm80211 not setting correct country code?

After
iw reg set EU
I do not get any answer in dmesg log.

and if I do (after) : iw reg get , I get:

country 98:
(2402 - 2472 @ 40), (N/A, 20)
(5170 - 5250 @ 40), (N/A, 17)
(5250 - 5330 @ 40), (N/A, 20), DFS
(5490 - 5600 @ 40), (N/A, 20), DFS
(5650 - 5710 @ 40), (N/A, 20), DFS

So, something is not working properly.

Thanks and best regards,

Wenceslao


Arend van Spriel <arend@broadcom.com> ha escrito:


On 04/30/2011 07:04 AM, Ben Hutchings wrote:


I looked at the driver source code and there is certainly an attempt to
use a country code from NVRAM. But maybe it hasn't actually been read
from NVRAM at the point this is done. 'US' seems to be the default if
the country code is blank.

Ben.


Please refer to the information on wireless.kernel.org:
http://wireless.kernel.org/en/users/Drivers/brcm80211#Regulatory_Implementation

You could investigate whether the NVRAM/SROM country code is indeed
blank or really configured with 'US'. For the driver itself channel
13 can be used as long as your access point is transmitting beacons,
because it is regarded as a passive channel.


Reading the logs listed in bug #622842 I would suggest running the
following command after loading the brcm80211 driver:

$ iw set reg EU

You should see following in the log:
Apr 30 10:05:22 myhost kernel: [ 3967.072332] cfg80211: Calling CRDA
for country: EU


Gr. AvS






----------------------------------------------------------------
Este mensaje ha sido enviado desde https://webmail.unav.es




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110430103817.14736hcizu57ujrw@webmail.unav.es">h ttp://lists.debian.org/20110430103817.14736hcizu57ujrw@webmail.unav.es
 
Old 04-30-2011, 11:30 AM
"Arend van Spriel"
 
Default Bug#622842: brcm80211 not setting correct country code?

On 04/30/2011 10:38 AM, Wenceslao González-Viñas wrote:

After
iw reg set EU
I do not get any answer in dmesg log.


I assume you did this as root or used sudo. You may have to check
whether you have the proper udev rules in place. See
http://wireless.kernel.org/en/developers/Regulatory/CRDA#Letting_the_kernel_call_CRDA



and if I do (after) : iw reg get , I get:

country 98:
(2402 - 2472 @ 40), (N/A, 20)
(5170 - 5250 @ 40), (N/A, 17)
(5250 - 5330 @ 40), (N/A, 20), DFS
(5490 - 5600 @ 40), (N/A, 20), DFS
(5650 - 5710 @ 40), (N/A, 20), DFS

So, something is not working properly.


I get country US (after iw reg set EU). I tried 'iw reg set ES' after
that and another message showed up in the log:

[ 1613.052044] cfg80211: Calling CRDA for country: EU
[ 1845.365115] cfg80211: Pending regulatory request, waiting for it to
be processed...


It seems cfg80211 expects CRDA to respond to the country setting for EU.
I am not familiar what modules are involved in this usage scenario.


Gr. AvS




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4DBBF2CF.8050608@broadcom.com">http://lists.debian.org/4DBBF2CF.8050608@broadcom.com
 
Old 04-30-2011, 01:39 PM
Ben Hutchings
 
Default Bug#622842: brcm80211 not setting correct country code?

On Sat, 2011-04-30 at 13:30 +0200, Arend van Spriel wrote:
> On 04/30/2011 10:38 AM, Wenceslao González-Viñas wrote:
> > After
> > iw reg set EU
> > I do not get any answer in dmesg log.
>
> I assume you did this as root or used sudo. You may have to check
> whether you have the proper udev rules in place. See
> http://wireless.kernel.org/en/developers/Regulatory/CRDA#Letting_the_kernel_call_CRDA

They are.

> > and if I do (after) : iw reg get , I get:
> >
> > country 98:
> > (2402 - 2472 @ 40), (N/A, 20)
> > (5170 - 5250 @ 40), (N/A, 17)
> > (5250 - 5330 @ 40), (N/A, 20), DFS
> > (5490 - 5600 @ 40), (N/A, 20), DFS
> > (5650 - 5710 @ 40), (N/A, 20), DFS
> >
> > So, something is not working properly.
>
> I get country US (after iw reg set EU). I tried 'iw reg set ES' after
> that and another message showed up in the log:
> [ 1613.052044] cfg80211: Calling CRDA for country: EU
> [ 1845.365115] cfg80211: Pending regulatory request, waiting for it to
> be processed...
>
> It seems cfg80211 expects CRDA to respond to the country setting for EU.
> I am not familiar what modules are involved in this usage scenario.

I added 'EU' to wireless-regdb in Debian for backward-compatibility.

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
 
Old 04-30-2011, 01:44 PM
Wenceslao González-Viñas
 
Default Bug#622842: brcm80211 not setting correct country code?

I do not understand.

I did of course as root. The rule in udev was not defined, though. I
defined it , I restarted it , but no change. It does not matter if I
use EU, ES or whatever. ??????


Anyway, I think that is not iw / udev or similar problem as if I put a
ralink stick, it works perfectly with regulatory domains and so.


I think is a problem with driver ... (as hardware worked in MSW7)

Best and thanks again,


Wenceslao

Arend van Spriel <arend@broadcom.com> ha escrito:


On 04/30/2011 10:38 AM, Wenceslao González-Viñas wrote:

After
iw reg set EU
I do not get any answer in dmesg log.


I assume you did this as root or used sudo. You may have to check
whether you have the proper udev rules in place. See
http://wireless.kernel.org/en/developers/Regulatory/CRDA#Letting_the_kernel_call_CRDA



and if I do (after) : iw reg get , I get:

country 98:
(2402 - 2472 @ 40), (N/A, 20)
(5170 - 5250 @ 40), (N/A, 17)
(5250 - 5330 @ 40), (N/A, 20), DFS
(5490 - 5600 @ 40), (N/A, 20), DFS
(5650 - 5710 @ 40), (N/A, 20), DFS

So, something is not working properly.


I get country US (after iw reg set EU). I tried 'iw reg set ES'
after that and another message showed up in the log:

[ 1613.052044] cfg80211: Calling CRDA for country: EU
[ 1845.365115] cfg80211: Pending regulatory request, waiting for it
to be processed...


It seems cfg80211 expects CRDA to respond to the country setting for
EU. I am not familiar what modules are involved in this usage
scenario.


Gr. AvS




----------------------------------------------------------------
Este mensaje ha sido enviado desde https://webmail.unav.es



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110430154415.97676501ev5zejok@webmail.unav.es">h ttp://lists.debian.org/20110430154415.97676501ev5zejok@webmail.unav.es
 
Old 04-30-2011, 01:48 PM
Wenceslao González-Viñas
 
Default Bug#622842: brcm80211 not setting correct country code?

Dear Ben,

If you want, I could try with this modified of wireless-regdb ... Just
tell me how to obtain it .


Best and thanks again,

Wenceslao


Ben Hutchings <ben@decadent.org.uk> ha escrito:


On Sat, 2011-04-30 at 13:30 +0200, Arend van Spriel wrote:

On 04/30/2011 10:38 AM, Wenceslao González-Viñas wrote:
> After
> iw reg set EU
> I do not get any answer in dmesg log.

I assume you did this as root or used sudo. You may have to check
whether you have the proper udev rules in place. See
http://wireless.kernel.org/en/developers/Regulatory/CRDA#Letting_the_kernel_call_CRDA


They are.


> and if I do (after) : iw reg get , I get:
>
> country 98:
> (2402 - 2472 @ 40), (N/A, 20)
> (5170 - 5250 @ 40), (N/A, 17)
> (5250 - 5330 @ 40), (N/A, 20), DFS
> (5490 - 5600 @ 40), (N/A, 20), DFS
> (5650 - 5710 @ 40), (N/A, 20), DFS
>
> So, something is not working properly.

I get country US (after iw reg set EU). I tried 'iw reg set ES' after
that and another message showed up in the log:
[ 1613.052044] cfg80211: Calling CRDA for country: EU
[ 1845.365115] cfg80211: Pending regulatory request, waiting for it to
be processed...

It seems cfg80211 expects CRDA to respond to the country setting for EU.
I am not familiar what modules are involved in this usage scenario.


I added 'EU' to wireless-regdb in Debian for backward-compatibility.

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.






----------------------------------------------------------------
Este mensaje ha sido enviado desde https://webmail.unav.es



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110430154823.19371xuwpgd2ewqs@webmail.unav.es">h ttp://lists.debian.org/20110430154823.19371xuwpgd2ewqs@webmail.unav.es
 
Old 04-30-2011, 01:55 PM
Ben Hutchings
 
Default Bug#622842: brcm80211 not setting correct country code?

On Sat, 2011-04-30 at 15:48 +0200, Wenceslao González-Viñas wrote:
> Dear Ben,
>
> If you want, I could try with this modified of wireless-regdb ... Just
> tell me how to obtain it .
[...]

I did that before uploading the first version, so you already have it.

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
 
Old 04-30-2011, 02:12 PM
Wenceslao González-Viñas
 
Default Bug#622842: brcm80211 not setting correct country code?

So, then this means that the problem is still there ...

... What else could I try?

Wenceslao


Ben Hutchings <ben@decadent.org.uk> ha escrito:


On Sat, 2011-04-30 at 15:48 +0200, Wenceslao González-Viñas wrote:

Dear Ben,

If you want, I could try with this modified of wireless-regdb ... Just
tell me how to obtain it .

[...]

I did that before uploading the first version, so you already have it.

Ben.

--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.






----------------------------------------------------------------
Este mensaje ha sido enviado desde https://webmail.unav.es



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110430161214.1080453b8p5c9j28@webmail.unav.es">h ttp://lists.debian.org/20110430161214.1080453b8p5c9j28@webmail.unav.es
 
Old 05-11-2011, 04:55 AM
Wenceslao González-Viñas
 
Default Bug#622842: brcm80211 not setting correct country code?

Dear Ben and all,

From your last post concerning this bug, I did not get what should be
the procedure from now on. Should the bug be reported to another
package ? Or, is there something which is lacking that does not depend
on you or other debian maintainers (eg. firmware or non-free packages)?


I thought that the bug was going to be fixed in next release of kernel
(or crda or another package related to the problem), but the fact is
that the problem is still there. Is it convenient that I give more
information? and in that case, what information ??


Well, thank you for all your help,

Wenceslao



----------------------------------------------------------------
Este mensaje ha sido enviado desde https://webmail.unav.es




--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110511065548.69663y0hjpa2lxic@webmail.unav.es">h ttp://lists.debian.org/20110511065548.69663y0hjpa2lxic@webmail.unav.es
 

Thread Tools




All times are GMT. The time now is 09:26 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org