Author: nbd
Date: 2016-01-03 21:56:57 +0100 (Sun, 03 Jan 2016)
New Revision: 48099

Modified:
   trunk/package/network/services/hostapd/files/netifd.sh
Log:
wpa_supplicant: set regulatory domain the same way as hostapd

In sta-only configuration, wpa_supplicant needs correct regulatory
domain because otherwise it may skip channel of its AP during scan.

Another alternative is to fix "iw reg set" in mac80211 netifd script.
Currently it fails if some phy has private regulatory domain which
matches configured one.

Signed-off-by: Dmitry Ivanov <[email protected]>

Modified: trunk/package/network/services/hostapd/files/netifd.sh
===================================================================
--- trunk/package/network/services/hostapd/files/netifd.sh      2016-01-03 
20:56:45 UTC (rev 48098)
+++ trunk/package/network/services/hostapd/files/netifd.sh      2016-01-03 
20:56:57 UTC (rev 48099)
@@ -536,9 +536,15 @@
                _w_modestr="mode=1"
        }
 
+       local country_str=
+       [ -n "$country" ] && {
+               country_str="country=$country"
+       }
+
        wpa_supplicant_teardown_interface "$ifname"
        cat > "$_config" <<EOF
 $ap_scan
+$country_str
 EOF
        return 0
 }
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to