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