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
This commit is contained in:
nbd 2014-08-06 17:07:35 +00:00
parent 4968efa5e4
commit bcf0163e03
1 changed files with 1 additions and 0 deletions

View 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))