fix madwifi channel setting (#2073)
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 7 Sep 2007 20:42:59 +0000 (20:42 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 7 Sep 2007 20:42:59 +0000 (20:42 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8681 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 2a86e91..9198615 100755 (executable)
@@ -103,7 +103,7 @@ enable_atheros() {
                                *a) agmode=11a;;
                                *) agmode=auto;;
                        esac
                                *a) agmode=11a;;
                                *) agmode=auto;;
                        esac
-                       iwconfig "$ifname" channel 0 >/dev/null 2>/dev/null 
+                       iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null 
                        ifconfig "$ifname" up
                        sleep 1
                        iwpriv "$ifname" mode "$agmode"
                        ifconfig "$ifname" up
                        sleep 1
                        iwpriv "$ifname" mode "$agmode"
This page took 0.022939 seconds and 4 git commands to generate.