OSDN Git Service

Support scan plan attribute for scheduled scan
authorNingyuan Wang <nywang@google.com>
Wed, 19 Jul 2017 17:58:36 +0000 (10:58 -0700)
committerNingyuan Wang <nywang@google.com>
Wed, 2 Aug 2017 00:55:19 +0000 (17:55 -0700)
commitdfbe7e4e12824527fac840391f31d2b4a4578e3e
treeb62a5c015c05198c9fbb0f7cdfdd6a4e9525cce5
parent514a184b8ee7df61e656d76e9f2dd822524e887a
Support scan plan attribute for scheduled scan

This adds the support of the scan plan attribute.
With kernel updates, driver can no longer diffrentiate interval
attribute from single scan plan attribute, so driver's pno scan
back off logic cannot be triggered in that case.
To solve the PNO back-off problem, this CL allows wificond to explicitly
specify scan plans (if the driver supports it). With explicit scan
plans, the driver will have the information it needs to back-off PNO
scans.

Bug: 63837760
Test: compile, unit tests
Test: Manually test that pno scan works on multiple devices
Test: Integration sanity test

Change-Id: Ic7e38caa482a2d72f45bf3c8177fa656e534db08
scanning/pno_settings.cpp
scanning/pno_settings.h
scanning/scan_utils.cpp
scanning/scan_utils.h
scanning/scanner_impl.cpp
scanning/scanner_impl.h
tests/mock_scan_utils.h
tests/scan_utils_unittest.cpp
tests/scanner_unittest.cpp