diff options
author | Felix Fietkau <nbd@nbd.name> | 2017-03-22 20:24:32 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-03-22 20:49:28 +0100 |
commit | 79a768a90fa94c0a38c9def1992cc974c091e286 (patch) | |
tree | 90cf790b755cd53f9091cac21867a6ac6e572679 /package/kernel/mac80211/patches/403-world_regd_fixup.patch | |
parent | 89118da865a34ed9537a088196d81ca9e37cb983 (diff) | |
download | upstream-79a768a90fa94c0a38c9def1992cc974c091e286.tar.gz upstream-79a768a90fa94c0a38c9def1992cc974c091e286.tar.bz2 upstream-79a768a90fa94c0a38c9def1992cc974c091e286.zip |
ath: do not apply broken power limits with ATH_USER_REGD
If a device uses the default EEPROM code, typically only the main CTLs
are valid, and they do not apply properly when switching to a different
regulatory domain. If the regdomain deviates from the EEPROM one, force
the world roaming regdomain to ensure that power limits are sane
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/kernel/mac80211/patches/403-world_regd_fixup.patch')
-rw-r--r-- | package/kernel/mac80211/patches/403-world_regd_fixup.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/kernel/mac80211/patches/403-world_regd_fixup.patch b/package/kernel/mac80211/patches/403-world_regd_fixup.patch index 2b04309ce5..2043083158 100644 --- a/package/kernel/mac80211/patches/403-world_regd_fixup.patch +++ b/package/kernel/mac80211/patches/403-world_regd_fixup.patch @@ -1,6 +1,6 @@ --- a/drivers/net/wireless/ath/regd.c +++ b/drivers/net/wireless/ath/regd.c -@@ -43,7 +43,8 @@ static int __ath_regd_init(struct ath_re +@@ -44,7 +44,8 @@ static struct reg_dmn_pair_mapping *ath_ NL80211_RRF_NO_OFDM) /* We allow IBSS on these on a case by case basis by regulatory domain */ @@ -10,7 +10,7 @@ NL80211_RRF_NO_IR) #define ATH9K_5GHZ_5470_5850 REG_RULE(5470-10, 5850+10, 80, 0, 30,\ NL80211_RRF_NO_IR) -@@ -61,57 +62,56 @@ static int __ath_regd_init(struct ath_re +@@ -62,57 +63,56 @@ static struct reg_dmn_pair_mapping *ath_ #define ATH9K_5GHZ_NO_MIDBAND ATH9K_5GHZ_5150_5350, \ ATH9K_5GHZ_5725_5850 |