summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-26 19:33:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-04-26 19:33:27 +0000
commitbe3deb5b146a127ce6151e8fcb5b9420b2b9143d (patch)
treebc3cf5eccc4d90dfd3a747ec2b69a75aa0179cfa /package
parent2b5517934d1285d3e20d07e3a32ab7da0d9f8571 (diff)
downloadmtk-20170518-be3deb5b146a127ce6151e8fcb5b9420b2b9143d.zip
mtk-20170518-be3deb5b146a127ce6151e8fcb5b9420b2b9143d.tar.gz
mtk-20170518-be3deb5b146a127ce6151e8fcb5b9420b2b9143d.tar.bz2
mac80211: broadcast the country IE by default if the country code is configured (#9308)
SVN-Revision: 26765
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index d395db1..2ca63bb 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -36,6 +36,11 @@ mac80211_hostapd_setup_base() {
}
}
+ local country_ie=0
+ [ -n "$country" ] && country_ie=1
+ config_get_bool country_ie "$device" country_ie "$country_ie"
+ [ "$country_ie" -gt 0 ] && append base_cfg "ieee80211d=1" "$N"
+
config_get macfilter "$vif" macfilter
case "$macfilter" in
allow)