diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-02-22 02:46:04 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-02-22 02:46:04 +0000 |
commit | fec8c083e7f8434070ba272b645954fd74a12ce9 (patch) | |
tree | 2c2da3fa5b3af21d5c7a46cb1385993da9ac3ab2 /package | |
parent | 52a95ed5371cead169b14a194ba2766fccb320c0 (diff) | |
download | master-187ad058-fec8c083e7f8434070ba272b645954fd74a12ce9.tar.gz master-187ad058-fec8c083e7f8434070ba272b645954fd74a12ce9.tar.bz2 master-187ad058-fec8c083e7f8434070ba272b645954fd74a12ce9.zip |
add country code option for hostapd (patch from #4675)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14608 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/hostapd/files/hostapd.sh | 2 |
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 |