summaryrefslogtreecommitdiff
path: root/package/hostapd
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-02-22 02:46:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-02-22 02:46:04 +0000
commitb29544b2c3aa7ee2a1b495b619ca19352dbac1a7 (patch)
tree9f28f76bb423ab1d9a5cf0cec1a9286e2d836f32 /package/hostapd
parentcc8daa275f18842c21097401476f6e1b21e28e8e (diff)
downloadmtk-20170518-b29544b2c3aa7ee2a1b495b619ca19352dbac1a7.zip
mtk-20170518-b29544b2c3aa7ee2a1b495b619ca19352dbac1a7.tar.gz
mtk-20170518-b29544b2c3aa7ee2a1b495b619ca19352dbac1a7.tar.bz2
add country code option for hostapd (patch from #4675)
SVN-Revision: 14608
Diffstat (limited to 'package/hostapd')
-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 a2f2d6f..4c57d11 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