iwinfo: allow scans in AP mode on nl80211
authorFelix Fietkau <nbd@openwrt.org>
Wed, 6 Aug 2014 17:07:18 +0000 (17:07 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 6 Aug 2014 17:07:18 +0000 (17:07 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42014

package/network/utils/iwinfo/src/iwinfo_nl80211.c

index b0dc67a70f6b5e4343e7821b06fd7170fde2f493..98200bfef7d1ae4e53d1973dfead744bb2594e35 100644 (file)
@@ -1997,6 +1997,7 @@ static int nl80211_get_scanlist(const char *ifname, char *buf, int *len)
        /* station / ad-hoc / monitor scan */
        else if (!nl80211_get_mode(ifname, &mode) &&
                 (mode == IWINFO_OPMODE_ADHOC ||
+                 mode == IWINFO_OPMODE_MASTER ||
                  mode == IWINFO_OPMODE_CLIENT ||
                  mode == IWINFO_OPMODE_MONITOR) &&
                 iwinfo_ifup(ifname))