OSDN Git Service

Wificond: Address bugs in handling Offload scans
authorSohani Rao <sohanirao@google.com>
Thu, 27 Jul 2017 17:52:29 +0000 (10:52 -0700)
committerSohani Rao <sohanirao@google.com>
Sat, 12 Aug 2017 00:39:55 +0000 (17:39 -0700)
commit8043a56883bfb32333b4f007ff52bb880a75cd70
tree997750d6278d88e460819624a4917370c465e35c
parent69f61f7fd15d44dd32a107d850f05f0eb933ab2c
Wificond: Address bugs in handling Offload scans

This CL addresses the following issues in handling of Offload HAL scan
results from the Offload HAL service
- Make cached scan results member variable a pointer so that the memory
for the vector can be allocated on the heap
- When an Async Error occurs in the Offload HAL service, switch to
performing PNO scans over netlink instead of letting it decide again.
- OffloadScanUtils convertToNativeScanResults() now needs to take in a
pointer to the vector that will store the scan results for retrieval.
- Populate tsf field fo the scanResult so that it doesn't get filtered
out by the framework
- Add logging to scan stats

Bug: 63148974
Test: Unit tests, on-device testing for ensuring we connect to an
available access point from screen off disconnected mode.
Change-Id: Ida507d857faa8ea6dbee362cf0116f8ca858963f
scanning/offload/offload_scan_manager.cpp
scanning/offload/offload_scan_manager.h
scanning/offload/offload_scan_utils.cpp
scanning/offload/offload_scan_utils.h
scanning/offload/scan_stats.cpp
scanning/offload/scan_stats.h
scanning/scanner_impl.cpp
tests/offload_scan_utils_test.cpp