madwifi init: set the channel after bringing up the interface (sometimes it needs...
[openwrt/staging/wigyori.git] / 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")"