summaryrefslogtreecommitdiffstats
path: root/package/mac80211/files/lib/wifi
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-04-26 19:33:27 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-04-26 19:33:27 +0000
commitea4e7541cf3781dda53d4d9e0f15411f9e84deb0 (patch)
treea3776c17596cc8c8fa42f9e7354e97d4fdb1e1ae /package/mac80211/files/lib/wifi
parent8d22e2e2411a2de86d6d95dd989d4876029330ab (diff)
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
Diffstat (limited to 'package/mac80211/files/lib/wifi')
-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 d395db11d..2ca63bb5c 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)