[openwrt/openwrt] mac80211: fix ATH_REG_DYNAMIC_USER_REG_HINTS

LEDE Commits lede-commits at lists.infradead.org
Sun May 23 06:24:02 PDT 2021


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/b054009854d3aa5bdba24334673cd56a4a6f9a5a

commit b054009854d3aa5bdba24334673cd56a4a6f9a5a
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Sun May 16 18:06:58 2021 +0200

    mac80211: fix ATH_REG_DYNAMIC_USER_REG_HINTS
    
    ATH_REG_DYNAMIC_USER_REG_HINTS is currently not being set as mac80211
    tries to set it as m which is not possible as its boolean only.
    
    Since its used alongside user regulatory, move it to USER_REGD.
    
    This is required for ath11k to accept regulatory changes, otherwise
    it wont accept any changes and will simply force US.
    
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/kernel/mac80211/ath.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/kernel/mac80211/ath.mk b/package/kernel/mac80211/ath.mk
index 24abb910ff..ba03ae11a6 100644
--- a/package/kernel/mac80211/ath.mk
+++ b/package/kernel/mac80211/ath.mk
@@ -34,7 +34,7 @@ ifdef CONFIG_PACKAGE_MAC80211_TRACING
 	WIL6210_TRACING
 endif
 
-config-$(call config_package,ath) += ATH_CARDS ATH_COMMON ATH_REG_DYNAMIC_USER_REG_HINTS
+config-$(call config_package,ath) += ATH_CARDS ATH_COMMON
 config-$(CONFIG_PACKAGE_ATH_DEBUG) += ATH_DEBUG ATH10K_DEBUG ATH9K_STATION_STATISTICS
 config-$(CONFIG_PACKAGE_ATH_DFS) += ATH9K_DFS_CERTIFIED ATH10K_DFS_CERTIFIED
 config-$(CONFIG_PACKAGE_ATH_SPECTRAL) += ATH9K_COMMON_SPECTRAL ATH10K_SPECTRAL
@@ -45,7 +45,7 @@ config-$(call config_package,owl-loader) += ATH9K_PCI_NO_EEPROM
 config-$(CONFIG_TARGET_ath79) += ATH9K_AHB
 config-$(CONFIG_TARGET_ipq40xx) += ATH10K_AHB
 config-$(CONFIG_PCI) += ATH9K_PCI
-config-$(CONFIG_ATH_USER_REGD) += ATH_USER_REGD
+config-$(CONFIG_ATH_USER_REGD) += ATH_USER_REGD ATH_REG_DYNAMIC_USER_REG_HINTS
 config-$(CONFIG_ATH9K_HWRNG) += ATH9K_HWRNG
 config-$(CONFIG_ATH9K_SUPPORT_PCOEM) += ATH9K_PCOEM
 config-$(CONFIG_ATH9K_TX99) += ATH9K_TX99



More information about the lede-commits mailing list