aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-10-02 22:02:37 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-10-02 22:02:37 +0000
commit8d9946530ec6b8d1c571a15473ab4a27cff4e6f4 (patch)
treea65c9c85783bc89d6c0370e235373c69c10cdf22 /package/mac80211/Makefile
parent7bd8115c7e653e6b6ed40f87bdcf67056803480a (diff)
downloadupstream-8d9946530ec6b8d1c571a15473ab4a27cff4e6f4.tar.gz
upstream-8d9946530ec6b8d1c571a15473ab4a27cff4e6f4.tar.bz2
upstream-8d9946530ec6b8d1c571a15473ab4a27cff4e6f4.zip
ath: add a compile time option that gives the user full control over regulatory settings (disabled by default for now)
SVN-Revision: 17828
Diffstat (limited to 'package/mac80211/Makefile')
-rw-r--r--package/mac80211/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/mac80211/Makefile b/package/mac80211/Makefile
index 1ca2314d64..fe7c191e27 100644
--- a/package/mac80211/Makefile
+++ b/package/mac80211/Makefile
@@ -270,6 +270,19 @@ define KernelPackage/zd1211rw
AUTOLOAD:=$(call AutoLoad,60,zd1211rw)
endef
+define KernelPackage/ath/config
+
+config ATH_USER_REGD
+ bool "Force Atheros drivers to respect the user's regdomain settings"
+ depends on PACKAGE_kmod-ath
+ help
+ Atheros' idea of regulatory handling is that the EEPROM of the card defines
+ the regulatory limits and the user is only allowed to restrict the settings
+ even further, even if the country allows frequencies or power levels that
+ are forbidden by the EEPROM settings.
+ Select this option if you want the driver to respect the user's decision about
+ regulatory settings.
+endef
define KernelPackage/ath
$(call KernelPackage/mac80211/Default)
@@ -455,6 +468,7 @@ BUILDFLAGS:= \
$(if $(CONFIG_PACKAGE_MAC80211_DEBUGFS),-DCONFIG_MAC80211_DEBUGFS) \
$(if $(CONFIG_PACKAGE_ATH9K_DEBUG),-DCONFIG_ATH9K_DEBUG) \
-D__CONFIG_MAC80211_RC_DEFAULT=minstrel \
+ $(if $(CONFIG_ATH_USER_REGD),-DATH_USER_REGD=1)
MAKE_OPTS:= \
CROSS_COMPILE="$(KERNEL_CROSS)" \