From b13426e21b729e62de0f9c7cd8dd0e0c0bc900d6 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 22 Jul 2007 18:32:47 +0000 Subject: keep track of the wifi interface state in /var/state/wireless SVN-Revision: 8108 --- package/madwifi/files/lib/wifi/madwifi.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'package/madwifi') diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 222e2a9..07a6cd7 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 -- cgit v1.1