Search Linux Wireless

Re: ath9k bug in country domain handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday 17 June 2012 20:16:21 Xose Vazquez Perez wrote:
> Erwin Van de Velde wrote:
> > I have 802.11n cards with an atheros chipset with no default country
> > domain. Upon initialization, crda is set to US domain, after which I try
> > to change it to another domain, the driver only accepts further
> > limitations: i.e. if a channel is allowed in the US but not in Belgium,
> > it is disabled, but the other way round: if a channel is not allowed in
> > the US, but is allowed in Belgium it is not enabled.
> 
> "no default country domain" :-???
> 
> # dmesg | grep ath:
> 
> look for:
> ath: EEPROM regdomain: XXX
> ath: EEPROM indicates we should expect a direct regpair map
> ath: Country alpha2 being used: XX
> ath: Regpair used: XXX
> 
> 
> This is a Atheros *driver* feature.
> Channels are restricted based on the EEPROM value.
> And crda/wireless-regdb only can makes things _worse_.

The output I get is:
[ 8.931463] ath: EEPROM regdomain: 0x0
[ 8.931483] ath: EEPROM indicates default country code should be used
[ 8.931502] ath: doing EEPROM country->regdmn map search
[ 8.931526] ath: country maps to regdmn code: 0x3a
[ 8.931544] ath: Country alpha2 being used: US
[ 8.931561] ath: Regpair used: 0x3a

As I see it, the regdomain is 00 and not US, so why does the ath9k driver 
decide to put me in the US? US should not be the default country code, but 
world reg domain. The preferred solution in my opinion is that the driver 
would require a regdomain to be given if it is not already set by the card. 
Choosing US as a default seems purely random . It would make far more sense to 
have no restricions by default if no regdomain is given and require it as a 
parameter, so everyone can set it correctly to his correct domain. The current 
method not only disallows valid channels to be used, but can also allow for 
legally forbidden channels to be used, which could be even worse.

Regards,
Erwin

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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux