Fix agmode selection (#2438)
[openwrt/svn-archive/openwrt.git] / package / madwifi / files / lib / wifi / madwifi.sh
index 04d8e0639f02e96ab9f68356bc78b65a0661418c..92cc9db4eb6e0b72310d2e6ca9f2ecd5a481462b 100755 (executable)
@@ -93,7 +93,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;;