]> git.baikalelectronics.ru Git - kernel.git/commit
ath: use CTL region from cfg80211 if unset in EEPROM
authorFelix Fietkau <nbd@openwrt.org>
Wed, 22 Oct 2014 13:27:53 +0000 (15:27 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 23 Oct 2014 18:02:06 +0000 (14:02 -0400)
commitdbaff1d4a84cb00ad2b4d3202895d462e34b4fad
tree8ac0aa8649dfabc32cd38fa90e23c38df5d97169
parent762b3998e4ec2009457d80e8ab41fce5242cff38
ath: use CTL region from cfg80211 if unset in EEPROM

Many AP devices do not have the proper regulatory domain programmed in
EEPROM. Instead they expect the software to set the appropriate region.
For these devices, the country code defaults to US, and the driver uses
the US CTL tables as well.
On devices bought in Europe this can lead to tx power being set too high
on the band edges, even if the cfg80211 regdomain is set correctly.
Fix this issue by taking into account the DFS region, but only when the
EEPROM regdomain is set to default.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath.h
drivers/net/wireless/ath/regd.c