iwinfo: avoid creating tmp.* ifaces for scanning
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 25 Jul 2014 15:52:17 +0000 (15:52 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 25 Jul 2014 15:52:17 +0000 (15:52 +0000)
commitbabd1e2b82ecc206571590830b127caa1fae3987
treefbab17f225c771071a199704dcb6d72986461142
parent520854d0e92bc90ef7b38b104c725a2b610c0e65
iwinfo: avoid creating tmp.* ifaces for scanning

If the iface to scan on already is in ad-hoc, station or monitor mode
then do not spawn a temporary iface.

Also preventively disable IPv6 on temporary ifaces before bringing them
up to avoid potential security issues.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41830 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/network/utils/iwinfo/src/iwinfo_nl80211.c