summaryrefslogtreecommitdiff
path: root/regdom-hack-4.16.5.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2018-05-03 11:05:08 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2018-05-03 11:05:08 -0700
commit795268a0d6a991ba421f8a5f1dbb51e42baacddb (patch)
tree8efe5d3646e74316400b5cfcbdca5a2c1743665c /regdom-hack-4.16.5.patch
parentUpdated to 4.16.5.a | Added ath9k hack (diff)
downloadlinux-libre-hardened-795268a0d6a991ba421f8a5f1dbb51e42baacddb.tar.xz
Updated to 4.16.6.a
Diffstat (limited to 'regdom-hack-4.16.5.patch')
-rw-r--r--regdom-hack-4.16.5.patch63
1 files changed, 0 insertions, 63 deletions
diff --git a/regdom-hack-4.16.5.patch b/regdom-hack-4.16.5.patch
deleted file mode 100644
index 76a8db5..0000000
--- a/regdom-hack-4.16.5.patch
+++ /dev/null
@@ -1,63 +0,0 @@
---- a/drivers/net/wireless/ath/Kconfig
-+++ b/drivers/net/wireless/ath/Kconfig
-@@ -22,6 +22,13 @@
-
- if WLAN_VENDOR_ATH
-
-+config ATH_USER_REGD
-+ bool "Do not enforce EEPROM regulatory restrictions"
-+ ---help---
-+ Say Y, if you want to ignore the EEPROM regulatory restrictions
-+ in order to change the wireless region from userspace.
-+
-+
- config ATH_DEBUG
- bool "Atheros wireless debugging"
- ---help---
---- a/drivers/net/wireless/ath/regd.c
-+++ b/drivers/net/wireless/ath/regd.c
-@@ -345,6 +345,10 @@
- struct ieee80211_channel *ch;
- unsigned int i;
-
-+#ifdef CONFIG_ATH_USER_REGD
-+ return;
-+#endif
-+
- for (band = 0; band < NUM_NL80211_BANDS; band++) {
- if (!wiphy->bands[band])
- continue;
-@@ -378,6 +382,10 @@
- {
- struct ieee80211_supported_band *sband;
-
-+#ifdef CONFIG_ATH_USER_REGD
-+ return;
-+#endif
-+
- sband = wiphy->bands[NL80211_BAND_2GHZ];
- if (!sband)
- return;
-@@ -407,6 +415,10 @@
- struct ieee80211_channel *ch;
- unsigned int i;
-
-+#ifdef CONFIG_ATH_USER_REGD
-+ return;
-+#endif
-+
- if (!wiphy->bands[NL80211_BAND_5GHZ])
- return;
-
-@@ -639,6 +651,11 @@
- const struct ieee80211_regdomain *regd;
-
- wiphy->reg_notifier = reg_notifier;
-+
-+#ifdef CONFIG_ATH_USER_REGD
-+ return 0;
-+#endif
-+
- wiphy->regulatory_flags |= REGULATORY_STRICT_REG |
- REGULATORY_CUSTOM_REG;
-