aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-08-06 17:07:35 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-08-06 17:07:35 +0000
commitae669a075f4c0d41f62fc0d73fa37cea9f64ea10 (patch)
tree51df7f074ca274f794810948686e000347ccbc16 /package/network
parent56e3a786b425fc9d604ee4561243e23960ef8fcc (diff)
downloadupstream-ae669a075f4c0d41f62fc0d73fa37cea9f64ea10.tar.gz
upstream-ae669a075f4c0d41f62fc0d73fa37cea9f64ea10.tar.bz2
upstream-ae669a075f4c0d41f62fc0d73fa37cea9f64ea10.zip
iwinfo: allow scans in AP mode on nl80211
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r42014 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42015 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rw-r--r--package/network/utils/iwinfo/src/iwinfo_nl80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/utils/iwinfo/src/iwinfo_nl80211.c b/package/network/utils/iwinfo/src/iwinfo_nl80211.c
index b0dc67a70f..98200bfef7 100644
--- a/package/network/utils/iwinfo/src/iwinfo_nl80211.c
+++ b/package/network/utils/iwinfo/src/iwinfo_nl80211.c
@@ -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))