aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi
diff options
context:
space:
mode:
authorAndy Boyett <agb@openwrt.org>2008-12-31 19:09:26 +0000
committerAndy Boyett <agb@openwrt.org>2008-12-31 19:09:26 +0000
commit5b30934a6fbbcdf3d1d22afeb521c95328cf4193 (patch)
treef1fe6bb19c288839deb67ba682febeab240304e0 /package/madwifi
parent1907e1587aed3911a61a85a1440faf2430b8254e (diff)
downloadmaster-187ad058-5b30934a6fbbcdf3d1d22afeb521c95328cf4193.tar.gz
master-187ad058-5b30934a6fbbcdf3d1d22afeb521c95328cf4193.tar.bz2
master-187ad058-5b30934a6fbbcdf3d1d22afeb521c95328cf4193.zip
[package] hostapd,madwifi: rename agmode option to hwmode. 11a and 11g aren't the only allowed values
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13790 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 638640a962..db7f057940 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -95,22 +95,22 @@ enable_atheros() {
config_set "$vif" ifname "$ifname"
# only need to change freq band and channel on the first vif
- config_get agmode "$device" agmode
- [ -z "$agmode" ] && config_get agmode "$device" mode
+ config_get hwmode "$device" hwmode
+ [ -z "$hwmode" ] && config_get hwmode "$device" mode
pureg=0
- case "$agmode" in
- *b) agmode=11b;;
- *bg) agmode=11g;;
- *g) agmode=11g; pureg=1;;
- *gdt) agmode=11gdt;;
- *a) agmode=11a;;
- *adt) agmode=11adt;;
- *ast) agmode=11ast;;
- *fh) agmode=fh;;
- *) agmode=auto;;
+ case "$hwmode" in
+ *b) hwmode=11b;;
+ *bg) hwmode=11g;;
+ *g) hwmode=11g; pureg=1;;
+ *gdt) hwmode=11gdt;;
+ *a) hwmode=11a;;
+ *adt) hwmode=11adt;;
+ *ast) hwmode=11ast;;
+ *fh) hwmode=fh;;
+ *) hwmode=auto;;
esac
- iwpriv "$ifname" mode "$agmode"
+ iwpriv "$ifname" mode "$hwmode"
iwpriv "$ifname" pureg "$pureg"
[ "$first" = 1 ] && {