From: acinonyx Date: Wed, 6 Apr 2011 20:50:14 +0000 (+0000) Subject: [packages] madwifi: typo(s) in /lib/wifi/madwifi.sh X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/f440a949fb433c3b093740a5ca8e58d0d3fae593 [packages] madwifi: typo(s) in /lib/wifi/madwifi.sh Hi minrate and maxrate are acually not boolean, so, for example "config minrate 11000" in /etc/config/wireless has no effect. Signed-off by: Jan Hetges git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26504 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 1f22b70af..bd93d4736 100755 --- a/package/madwifi/files/lib/wifi/madwifi.sh +++ b/package/madwifi/files/lib/wifi/madwifi.sh @@ -303,10 +303,10 @@ enable_atheros() { config_get_bool comp "$vif" compression 0 iwpriv "$ifname" compression "$comp" >/dev/null 2>&1 - config_get_bool minrate "$vif" minrate + config_get minrate "$vif" minrate [ -n "$minrate" ] && iwpriv "$ifname" minrate "$minrate" - config_get_bool maxrate "$vif" maxrate + config_get maxrate "$vif" maxrate [ -n "$maxrate" ] && iwpriv "$ifname" maxrate "$maxrate" config_get_bool burst "$vif" bursting