aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files
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
commit2fd3ce45f4da285abee61b20cdd3ffac1f118a5c (patch)
treef2c5cc4479ef61dd96cf9ba238ab5e1df63cdcee /package/madwifi/files
parentf6aff55a07c7a6fb6c6bf38089c2865123015dec (diff)
downloadmaster-187ad058-2fd3ce45f4da285abee61b20cdd3ffac1f118a5c.tar.gz
master-187ad058-2fd3ce45f4da285abee61b20cdd3ffac1f118a5c.tar.bz2
master-187ad058-2fd3ce45f4da285abee61b20cdd3ffac1f118a5c.zip
keep track of the wifi interface state in /var/state/wireless
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8108 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/files')
-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