Fix agmode selection (#2438)
authorFlorian Fainelli <florian@openwrt.org>
Sat, 29 Sep 2007 19:14:42 +0000 (19:14 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 29 Sep 2007 19:14:42 +0000 (19:14 +0000)
SVN-Revision: 9075

package/madwifi/files/lib/wifi/madwifi.sh

index 91986155381553f2869ef72be4f3fc0d19f03c2c..356088060665fbab6007079c8ea146c34922c3b2 100755 (executable)
@@ -94,7 +94,7 @@ enable_atheros() {
 
                [ "$first" = 1 ] && {
                        # only need to change freq band and channel on the first vif
-                       config_get agmode "$device" mode
+                       config_get agmode "$device" agmode
                        pureg=0
                        case "$agmode" in
                                *b) agmode=11b;;