aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-04-12 17:34:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-04-12 17:34:21 +0000
commit7fbae2f84f0d2ba6e58ebc3b30a36d4a15326bc3 (patch)
tree5b2ec7c52239d63e599b2e7bb999e99c738ed9b2 /package
parentb5a2c2c241f6ac898bd731bf8a4714d57af21deb (diff)
downloadupstream-7fbae2f84f0d2ba6e58ebc3b30a36d4a15326bc3.tar.gz
upstream-7fbae2f84f0d2ba6e58ebc3b30a36d4a15326bc3.tar.bz2
upstream-7fbae2f84f0d2ba6e58ebc3b30a36d4a15326bc3.zip
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)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6939 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 89ab83d8fd..1dce76715b 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/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")"