mac80211: broadcast the country IE by default if the country code is configured ...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 26 Apr 2011 19:33:27 +0000 (19:33 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 26 Apr 2011 19:33:27 +0000 (19:33 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26765 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/files/lib/wifi/mac80211.sh

index d395db1..2ca63bb 100644 (file)
@@ -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)
        config_get macfilter "$vif" macfilter
        case "$macfilter" in
                allow)
This page took 0.030884 seconds and 4 git commands to generate.