summaryrefslogtreecommitdiff
path: root/package/network
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-08-06 17:07:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-08-06 17:07:18 +0000
commitb465cf412fe567fa5df6a907455f6f7164cc1462 (patch)
treec7bb8579b3eb47018747bdbcb048570a0bec6ded /package/network
parent960b7643c9a65124b13a478c49a8a89848391edb (diff)
downloadmtk-20170518-b465cf412fe567fa5df6a907455f6f7164cc1462.zip
mtk-20170518-b465cf412fe567fa5df6a907455f6f7164cc1462.tar.gz
mtk-20170518-b465cf412fe567fa5df6a907455f6f7164cc1462.tar.bz2
iwinfo: allow scans in AP mode on nl80211
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42014
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 b0dc67a..98200bf 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))