summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/hostapd/files/hostapd.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index a2f2d6fd1d..4c57d11dd7 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -76,6 +76,7 @@ hostapd_setup_vif() {
config_get device "$vif" device
config_get channel "$device" channel
config_get hwmode "$device" hwmode
+ config_get country "$device" country
case "$hwmode" in
11a) hwmode=a;;
11b) hwmode=b;;
@@ -96,6 +97,7 @@ ssid=$ssid
debug=0
wpa=$wpa
${crypto:+wpa_pairwise=$crypto}
+${country:+country_code=$country}
$hostapd_cfg
EOF
hostapd -P /var/run/wifi-$ifname.pid -B /var/run/hostapd-$ifname.conf