aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files/lib
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-07-22 18:32:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-07-22 18:32:47 +0000
commitb13426e21b729e62de0f9c7cd8dd0e0c0bc900d6 (patch)
tree987b1cfbfebc72de4b9cc6d21ba65156cbe673ba /package/madwifi/files/lib
parentf2a32fff7d2089082e11f0e8ebfaef6159994338 (diff)
downloadupstream-b13426e21b729e62de0f9c7cd8dd0e0c0bc900d6.tar.gz
upstream-b13426e21b729e62de0f9c7cd8dd0e0c0bc900d6.tar.bz2
upstream-b13426e21b729e62de0f9c7cd8dd0e0c0bc900d6.zip
keep track of the wifi interface state in /var/state/wireless
SVN-Revision: 8108
Diffstat (limited to 'package/madwifi/files/lib')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 222e2a9ddd..07a6cd78bf 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -50,6 +50,7 @@ scan_atheros() {
disable_atheros() (
local device="$1"
+ set_wifi_down "$device"
# kill all running hostapd and wpa_supplicant processes that
# are running on atheros vifs
for pid in `pidof hostapd wpa_supplicant`; do
@@ -204,6 +205,7 @@ enable_atheros() {
start_net "$ifname" "$net_cfg"
}
iwconfig "$ifname" essid "$ssid"
+ set_wifi_up "$vif" "$ifname"
case "$mode" in
ap)
config_get_bool isolate "$vif" isolate 0