wpa_supplicant: Handle EVENT_SCAN_RESULTS when an interface is disabled
authorIlan Peer <ilan.peer@intel.com>
Mon, 29 Feb 2016 12:30:01 +0000 (14:30 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 3 Mar 2016 15:10:26 +0000 (17:10 +0200)
commit1446afc86579a3340fde2e6c827f804037183e82
tree01cd53d5c5f7b00c5cfb4c8be9587e3bfeabdd4f
parentd14e63a2aaa0ad3275053ffed7cdbd469a937358
wpa_supplicant: Handle EVENT_SCAN_RESULTS when an interface is disabled

An interface can be disabled while it has an ongoing scan request.
In such a case, when the scan results notification is received,
it was being ignored (as the interface is already disabled) so the
scan state was not cleared. This can cause undetermined behavior
for the next scan request.

To handle this, clear the scan state when EVENT_SCAN_RESULTS is
received and the interface is disabled.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/events.c