Search Linux Wireless

Re: [ipw3945-devel] Monitor mode on boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 16, 2008 at 6:26 PM, Martin Dubuc <martind1111@xxxxxxxxx> wrote:
> My application uses some of the Wi-Fi interfaces strictly for survey
> purposes and in these cases, there is no need to connect to any access point
> on the same wmasterX. To maximize resource usage, I would like to avoid to
> have managed interface created for these interfaces.
>
> Martin

This script should do it:
#!/bin/sh
for b in $(find /sys/class/net/*/* -name phy80211 | grep -v wmaster |
sed -e 's/\/phy80211//' | sed -e 's/\/sys\/class\/net\///'); do
iw dev $b interface del
done
for a in $(iwconfig 2>&1 | grep wmaster | sed -e 's/wmaster//' | cut -b 1); do
iw dev wmaster$a interface add mon$a type monitor
ifconfig mon$a up
done

-- 
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux