madwifi init: set the channel after bringing up the interface (sometimes it needs...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 12 Apr 2007 17:34:21 +0000 (17:34 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 12 Apr 2007 17:34:21 +0000 (17:34 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6939 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 89ab83d8fd115c2ea0d8513fef2ed0bd2c8d824b..1dce76715bc02c718a3fe0b83b2f01a29e5fd279 100755 (executable)
@@ -181,6 +181,7 @@ enable_atheros() {
                fi
 
                ifconfig "$ifname" up
+               iwconfig "$ifname" channel "$channel"
 
                local net_cfg bridge
                net_cfg="$(find_net_config "$vif")"