nl80211: back out early when receiving FAIL-BUSY reply
The wpa_supplicant control socket might reply with "FAIL-BUSY" when attempting to start a scan while another scanning process is already running, back out early in this case. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
77c32f0eb6
commit
2a82f87ac9
1 changed files with 6 additions and 0 deletions
|
@ -2223,6 +2223,12 @@ static int nl80211_get_scanlist_wpactl(const char *ifname, char *buf, int *len)
|
||||||
/* is another unrelated event, retry */
|
/* is another unrelated event, retry */
|
||||||
tries--;
|
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 */
|
/* receive and parse scan results if the wait above didn't time out */
|
||||||
|
|
Loading…
Add table
Reference in a new issue