3 # This script takes care of bringing down wlan-ng devices.
6 WLANCTL=/sbin/wlanctl-ng
8 if [ ! -x $WLANCTL ] ; then
14 # Reset device to make sure it is not trying to generate
16 result=`$WLANCTL $IFACE lnxreq_ifstate ifstate=disable`
18 # Remove modules. Of course, for all I know they are still in use
19 # by another interface, in which case these rmmods will fail. Also,
20 # depending on how modutils is set up, different prism2 modules
23 rmmod prism2_pci || rmmod prism2_cs || rmmod prism2_usb || \
24 rmmod prism2_plx || true
28 # Remove lock file, just in case.
29 rm -f /var/lock/wlan-$IFACE.lock