iwinfo: avoid creating tmp.* ifaces for scanning
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 25 Jul 2014 15:52:17 +0000 (15:52 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 25 Jul 2014 15:52:17 +0000 (15:52 +0000)
commit991a16c4e135f234b9ab37e72808866211f2bf55
treefbab17f225c771071a199704dcb6d72986461142
parent5f98f0f09ce44d2ae6102afa9fbd2e8ae72b26ec
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