]> git.ipfire.org Git - thirdparty/hostap.git/commit
Handle legacy scan interruption of sched_scan/PNO
authorJithu Jance <jithu@broadcom.com>
Thu, 17 Oct 2013 06:26:02 +0000 (11:56 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 18 Nov 2013 12:35:48 +0000 (14:35 +0200)
commitf86d282f4326fac4a945094bd8f06c9ee1f3087e
treeb7def5a58c2ab4149efe055f404fd454bf8fd3ba
parentc41e1d7cace6c84c767c4540eb807dea7f6da9ad
Handle legacy scan interruption of sched_scan/PNO

While starting from PNO start context, the scheduled scan was not
setting the flag wpa_s->scanning. This was resulting in the subsequent
SCAN command to proceed further and send command to nl80211/cfg80211.
The expected behavior of cancelling sched_scan was not happening here.

While sched_scan is in progress and a legacy scan comes on the
cli/socket, the sched_scan is cancelled and normal scan is allowed to
continue. However, sometimes sched_scan cancelled event comes a bit
delayed and we will send out the scan command before the wpa_s->scanning
is cleared. Instead, reschedule the incoming scan req if the
wpa_s->scanning shows that it is still in progress.

Signed-hostap: Jithu Jance <jithu@broadcom.com>
wpa_supplicant/ctrl_iface.c
wpa_supplicant/scan.c
wpa_supplicant/scan.h