atheros wireless- how to turn it off
Posted: Fri Oct 14, 2005 7:28 am
Hi,
I have a t43p with a atheros wireless andI am trying to find a safe way to turn off the wireless card. I have found this script that puts 3 to the power state and turn it off (I think..):
#!/bin/bash
# Find and enable/disable wireless devices
for DEVICE in /sys/class/net/*; do
if [ -d $DEVICE/wireless ]; then
# $DEVICE is a wireless device. Check if it's powered on:
if [ `cat $DEVICE/device/power/state` = 0 ]; then
# It's powered on. Switch it off.
ifdown ath0
echo -n 3 > $DEVICE/device/power/state;
else
# It's powered off. Switch it on.
echo -n 0 > $DEVICE/device/power/state;
fi
fi
done
Or another alternative is to remove ath modules. But I don't know if I remove them (ath_pci, ath_rate_onoe and wlan) the card is turned off.
Do anyone uses atheros wireless and how you turn it off??
Thanks....
I have a t43p with a atheros wireless andI am trying to find a safe way to turn off the wireless card. I have found this script that puts 3 to the power state and turn it off (I think..):
#!/bin/bash
# Find and enable/disable wireless devices
for DEVICE in /sys/class/net/*; do
if [ -d $DEVICE/wireless ]; then
# $DEVICE is a wireless device. Check if it's powered on:
if [ `cat $DEVICE/device/power/state` = 0 ]; then
# It's powered on. Switch it off.
ifdown ath0
echo -n 3 > $DEVICE/device/power/state;
else
# It's powered off. Switch it on.
echo -n 0 > $DEVICE/device/power/state;
fi
fi
done
Or another alternative is to remove ath modules. But I don't know if I remove them (ath_pci, ath_rate_onoe and wlan) the card is turned off.
Do anyone uses atheros wireless and how you turn it off??
Thanks....