madwifi init: set the channel after bringing up the interface (sometimes it needs...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 12 Apr 2007 17:34:21 +0000 (17:34 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 12 Apr 2007 17:34:21 +0000 (17:34 +0000)
SVN-Revision: 6939

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")"