From: Felix Fietkau Date: Tue, 26 Apr 2011 19:33:27 +0000 (+0000) Subject: mac80211: broadcast the country IE by default if the country code is configured ... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=4f9ad316aa0d34a7906f5f741f360ae9a5825c70 mac80211: broadcast the country IE by default if the country code is configured (#9308) SVN-Revision: 26765 --- 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)