summaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/lib/wifi
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-04-12 17:34:21 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-04-12 17:34:21 +0000
commit80f367f6f1397da8b04bb488a9fc4ed91ddef208 (patch)
tree5b2ec7c52239d63e599b2e7bb999e99c738ed9b2 /package/madwifi/files/lib/wifi
parent7b4b80fe26ff3f79543e5ad491667351d7f244f3 (diff)
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/madwifi/files/lib/wifi')
-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 89ab83d8f..1dce76715 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")"