diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-09-14 23:48:13 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-09-14 23:48:13 +0200 |
commit | f5638170e1137e28ee138e4b66ce5d310e2a21f4 (patch) | |
tree | 329789bf1377a61ad22e125458ef31a08bcbe5fe /package/kernel/mac80211/patches/403-ath_regd_optional.patch | |
parent | 6d7429bf56cc52161ce1932cc13d0594265b4abf (diff) | |
download | mtk-20170518-f5638170e1137e28ee138e4b66ce5d310e2a21f4.zip mtk-20170518-f5638170e1137e28ee138e4b66ce5d310e2a21f4.tar.gz mtk-20170518-f5638170e1137e28ee138e4b66ce5d310e2a21f4.tar.bz2 |
target/linux/mac80211: add Felix Fietkau 2014-09 pending work
Diffstat (limited to 'package/kernel/mac80211/patches/403-ath_regd_optional.patch')
-rw-r--r-- | package/kernel/mac80211/patches/403-ath_regd_optional.patch | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package/kernel/mac80211/patches/403-ath_regd_optional.patch b/package/kernel/mac80211/patches/403-ath_regd_optional.patch index 808e729..3af2e52 100644 --- a/package/kernel/mac80211/patches/403-ath_regd_optional.patch +++ b/package/kernel/mac80211/patches/403-ath_regd_optional.patch @@ -33,17 +33,18 @@ if (!wiphy->bands[IEEE80211_BAND_5GHZ]) return; -@@ -631,6 +643,10 @@ ath_regd_init_wiphy(struct ath_regulator - { +@@ -632,6 +644,11 @@ ath_regd_init_wiphy(struct ath_regulator const struct ieee80211_regdomain *regd; + wiphy->reg_notifier = reg_notifier; ++ +#ifdef CPTCFG_ATH_USER_REGD + return 0; +#endif + - wiphy->reg_notifier = reg_notifier; wiphy->regulatory_flags |= REGULATORY_STRICT_REG | REGULATORY_CUSTOM_REG; + --- a/drivers/net/wireless/ath/Kconfig +++ b/drivers/net/wireless/ath/Kconfig @@ -21,6 +21,9 @@ menuconfig ATH_CARDS |