From: Felix Fietkau Date: Tue, 23 Sep 2008 18:18:21 +0000 (+0000) Subject: parse the a/g mode setting in /etc/config/wireless when setting up hostapd (instead... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=69692e019a06c29b9146b2658420c8f50f863519;p=openwrt%2Fstaging%2Fthess.git parse the a/g mode setting in /etc/config/wireless when setting up hostapd (instead of hardcoding it to g) SVN-Revision: 12673 --- diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 49b30cfd57..7a67cec949 100644 --- a/package/hostapd/files/hostapd.sh +++ b/package/hostapd/files/hostapd.sh @@ -74,10 +74,17 @@ hostapd_setup_vif() { config_get ssid "$vif" ssid config_get device "$vif" device config_get channel "$device" channel + config_get agmode "$device" agmode + case "$agmode" in + 11a) agmode=a;; + 11b) agmode=b;; + 11g) agmode=g;; + *) agmode=;; + esac cat > /var/run/hostapd-$ifname.conf <