From: nbd 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.ozo.com/?p=openwrt-10.03%2F.git;a=commitdiff_plain;h=f50d46ab20931062981bd7a4179b17bcdab7d8be;hp=f8e79eeb301473db88e19b2adf6e6c6934ed1e2a parse the a/g mode setting in /etc/config/wireless when setting up hostapd (instead of hardcoding it to g) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12673 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 49b30cfd5..7a67cec94 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 <