PNO: Store PNO settings before startHwPnoScan().
PNO settings are stored only when startHwPnoScan() call succeeds.
In cases where call to startHwPnoScan() fails (ex: driver returns
EBUSY), reportPnoScanFailure() is invoked which notifies the registered
listeners only if PNO settings are present.
This CL is to store PNO settings before calling startHwPnoScan() API.
Thus, caller is notified on failure.
Also, clearing pno scan failure count from stopConnectivityScan()
API results in PNO scan getting scheduled indefinitely as long as
PNO start fails. This CL moves clearing of pno scan failure count
to stop().
Bug: 156713311
Test: atest com.android.server.wifi
Change-Id: I6e9cac1b1597cad54b45498d8e19469a4a2b3f5e
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
3 files changed