From 35078a6a52a6308422c8c745b2ef148380ef3471 Mon Sep 17 00:00:00 2001 From: Andy Boyett Date: Wed, 31 Dec 2008 19:09:26 +0000 Subject: hostapd,madwifi: rename agmode option to hwmode. 11a and 11g aren't the only allowed values SVN-Revision: 13790 --- package/hostapd/files/hostapd.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'package/hostapd/files') diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index a6f5dba..1c2fa35 100644 --- a/package/hostapd/files/hostapd.sh +++ b/package/hostapd/files/hostapd.sh @@ -74,20 +74,20 @@ 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;; + config_get hwmode "$device" hwmode + case "$hwmode" in + 11a) hwmode=a;; + 11b) hwmode=b;; + 11g) hwmode=g;; *) - agmode= - [ "$channel" -gt 14 ] && agmode=a + hwmode= + [ "$channel" -gt 14 ] && hwmode=a ;; esac cat > /var/run/hostapd-$ifname.conf <