diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-07-25 14:11:50 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-07-25 14:11:50 +0000 |
commit | 833820dc8bd380d4bb6812c663cae58c7a24aecd (patch) | |
tree | e3cc26adfc4a941f3ecda62afaef347a741213dd /package/network/utils/iwinfo/src/iwinfo_nl80211.c | |
parent | ae50480d774e5ee5e229639904955b1677126621 (diff) | |
download | upstream-833820dc8bd380d4bb6812c663cae58c7a24aecd.tar.gz upstream-833820dc8bd380d4bb6812c663cae58c7a24aecd.tar.bz2 upstream-833820dc8bd380d4bb6812c663cae58c7a24aecd.zip |
iwinfo: continue scanning even if temporary mac cannot be changed
So far iwinfo aborted a wifi scan attempt if the mac of the spawned
interface could not be changed. Change the code to try anyway - this
should fix wifi scanning on RaLink devices.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 41826
Diffstat (limited to 'package/network/utils/iwinfo/src/iwinfo_nl80211.c')
-rw-r--r-- | package/network/utils/iwinfo/src/iwinfo_nl80211.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/package/network/utils/iwinfo/src/iwinfo_nl80211.c b/package/network/utils/iwinfo/src/iwinfo_nl80211.c index 4a52d5ca8d..c8b167b32a 100644 --- a/package/network/utils/iwinfo/src/iwinfo_nl80211.c +++ b/package/network/utils/iwinfo/src/iwinfo_nl80211.c @@ -2003,8 +2003,7 @@ static int nl80211_get_scanlist(const char *ifname, char *buf, int *len) if (!(res = nl80211_ifadd(ifname))) goto out; - if (!iwinfo_ifmac(res)) - goto out; + iwinfo_ifmac(res); /* if we can take the new interface up, the driver supports an * additional interface and there's no need to tear down the ap */ |