aboutsummaryrefslogtreecommitdiffstats
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
commit14ed7417a1878cbb866ae423631c924a57d652d7 (patch)
treea3776c17596cc8c8fa42f9e7354e97d4fdb1e1ae
parentc9f66260cbcc9f06c49e8d6b4f3b1df4b32c3597 (diff)
downloadupstream-14ed7417a1878cbb866ae423631c924a57d652d7.tar.gz
upstream-14ed7417a1878cbb866ae423631c924a57d652d7.tar.bz2
upstream-14ed7417a1878cbb866ae423631c924a57d652d7.zip
mac80211: broadcast the country IE by default if the country code is configured (#9308)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26765 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 d395db11df..2ca63bb5cf 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)