aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/403-world_regd_fixup.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-03-22 20:24:32 +0100
committerJo-Philipp Wich <jo@mein.io>2017-05-02 23:17:22 +0200
commita9728799bc41e68de4d50995bb4ad689784ef55e (patch)
treec4362040e55fcf97bf35448ff402b8b98729fc81 /package/kernel/mac80211/patches/403-world_regd_fixup.patch
parent503e496366b74e8f9ff2bf6044938589d9bcf464 (diff)
downloadupstream-a9728799bc41e68de4d50995bb4ad689784ef55e.tar.gz
upstream-a9728799bc41e68de4d50995bb4ad689784ef55e.tar.bz2
upstream-a9728799bc41e68de4d50995bb4ad689784ef55e.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.patch4
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