X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=iwinfo_nl80211.c;h=ecd2d6ac834a1b1808dca32fa7d3e6ac78023aec;hb=2a82f87ac94432b35ae81e7404beb4314be9d235;hp=de5d2b4baabb3772d2a0ea70915a33ec667dabb1;hpb=77c32f0eb637524f7f300d8cf24d455ccec5c2bb;p=project%2Fiwinfo.git diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index de5d2b4..ecd2d6a 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -2223,6 +2223,12 @@ static int nl80211_get_scanlist_wpactl(const char *ifname, char *buf, int *len) /* is another unrelated event, retry */ tries--; } + + /* got a failure reply */ + else if (!strcmp(reply, "FAIL-BUSY\n")) + { + break; + } } /* receive and parse scan results if the wait above didn't time out */