Browse Source

madwifi init: set the channel after bringing up the interface (sometimes it needs the channel before bringing up the interface, sometimes after, no idea what's going on)

SVN-Revision: 6939
Felix Fietkau 18 years ago
parent
commit
c38691f291
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/madwifi/files/lib/wifi/madwifi.sh

+ 1 - 0
package/madwifi/files/lib/wifi/madwifi.sh

@@ -181,6 +181,7 @@ enable_atheros() {
 		fi
 
 		ifconfig "$ifname" up
+		iwconfig "$ifname" channel "$channel"
 
 		local net_cfg bridge
 		net_cfg="$(find_net_config "$vif")"