]> git.ipfire.org Git - thirdparty/hostap.git/commit
Skip normal scan when PNO is already in progress
authorRaja Mani <rmani@qti.qualcomm.com>
Sat, 18 Jan 2014 14:46:24 +0000 (20:16 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 21 Jan 2014 14:19:49 +0000 (16:19 +0200)
commitdd271857a5b501cd88143efe8ca0f0dce4519a91
tree3b7c3fcc7c1616a7d12779e8d3b74e23950f812b
parenta2d63657603b8f0714274f34bea45cb5d0c0a7b9
Skip normal scan when PNO is already in progress

Scan request failures are observed in wpa_supplicant debug log when
Android framework starts PNO scan in driver via ctrl interface command
'set pno 1' and wpa_supplicant also tries to issue a scan request after
PNO has started in the driver.

Some drivers may reject a normal scan request when PNO is already in
progress. wpa_supplicant should consider PNO status before issuing start
scan request to the driver. Otherwise, wpa_supplicant will get failures
from driver for the scan request and it will end up rescheduling scan
request in periodic interval and get a start scan request failure for
each attempt.

In order to avoid unnecessary scan attempt when PNO scan is already
running, PNO status is checked before issuing scan request to driver.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/events.c
wpa_supplicant/scan.c