History log of /system/connectivity/wificond/scanning/scanner_impl.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
69f61f7fd15d44dd32a107d850f05f0eb933ab2c 26-Jul-2017 Sohani Rao <sohanirao@google.com> Wificond: Create mocks of Offload Scan objects

Create objects for Offload HAL to enable testing of Scanner Impl

Test: Unit tests
Bug: 32842314
Change-Id: Iea881dbbef0f6dc53b87f8ea24acd3c3e347f902
/system/connectivity/wificond/scanning/scanner_impl.h
64187ec9e8b48b4de5565e8ae1dbf2f2f3e859bd 12-Jul-2017 Sohani Rao <sohanirao@google.com> Wifficond: Implement API to get PNO scan results

Implement getPnoScanResults() API to return scan results from the
interface that completed the scheduled PNO scans in disconnected mode
most recently.

Bug: 63148974
Test: Unit tests, sanity test and on-device tests
Change-Id: Ife9f890faa7cdbc34da83708f59eae7398e76109
/system/connectivity/wificond/scanning/scanner_impl.h
e15c0edc98c9e6e906b9c53d1691a6bcfae5c61d 12-Jul-2017 Sohani Rao <sohanirao@google.com> Wificond: Async Errors from Offload HAL service

Asynchronous errors from the Offload HAL service must be forwarded to
Wificond scanner implementation which can then switch over to the other
interfaces for completing disconnected PNO scans. This requires
specification of an interface from Offload HAL client to Wificond's
scanner implementation. Unit tetsts are updated accordingly.

Bug: 32842314
Test: Unit test and VTS
Change-Id: Ie56a52caf161c851d1945584a2bf93734008598a
/system/connectivity/wificond/scanning/scanner_impl.h
dfbe7e4e12824527fac840391f31d2b4a4578e3e 19-Jul-2017 Ningyuan Wang <nywang@google.com> 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
/system/connectivity/wificond/scanning/scanner_impl.h
7a3d8ddff0ea3bca99fb3e554651e1541a93121e 11-Jul-2017 Ningyuan Wang <nywang@google.com> ScannerImpl: Add unit tests for scheduled scans

This patch adds unit tests for scheduled scans.
In order to do that, this also moves the isOffloadScanSupprted()
out of OffloadScanManager to OffloadServiceUtils. By injecting
MockOffloadServiceUtils to ScannerImpl, we can test either offload
supported or not supported cases.

Bug: 33452931
Test: compile, unit tests
Test: manual test that offload scan is not enabled by mistake.
This is done by checking manually inserted logs.

Change-Id: I6c78df78605321013676e5f4578026f21d953e3b
/system/connectivity/wificond/scanning/scanner_impl.h
736c4780768c2229d37dc2ad05a32e900f092e94 24-May-2017 Ningyuan Wang <nywang@google.com> Merge "Change abortScan() binder API to void" into oc-dev am: 7124c9f3f0
am: d96924d24c

Change-Id: I1fc5276a6e3a6907f8492785981cd3e333a92135
971bf3180671aa08ab0f0bda0a5cb32a9bdc7c1c 20-Apr-2017 Sohani Rao <sohanirao@google.com> WifiCond: Invoke OffloadScanManager APIs for PNO scans

Offload Scan Manager APIs will be used if available. If scans over
Offload fail, scans will be performed over netlink as a fallback.

Bug: 32842314
Test: Unit tests
Change-Id: If48eb0bd1de38c29a2b3a7d461673b1e3502baa5
/system/connectivity/wificond/scanning/scanner_impl.h
d08fcc7ee2f71489ddda4b8fbc7f06f8979271a2 05-May-2017 Ningyuan Wang <nywang@google.com> Change abortScan() binder API to void

Framework don't reley and can't rely on the success/failure
of abortScan(). In order to avoid confusion, this API should
be void instead returning bool.

Bug: 37743832
Test: compile, unit tests, manual test, integration test
Change-Id: I32075984b5e5f5be4822e9669076004a2f4a73c2
/system/connectivity/wificond/scanning/scanner_impl.h
ccc3aa2a3ccc0d39e2f504228272eca30d5d159c 02-May-2017 Daisuke Niwa <daisuke.x.niwa@sonymobile.com> Merge "Support abortScan" into oc-dev am: b1e5477375
am: 55784b05aa

Change-Id: I58af82cbd5dfe556c72e6347862fd942333d50e5
33bbb8147436c2abf8f3e7b535b13b6c63bd3c64 06-Apr-2017 Daisuke Niwa <daisuke.x.niwa@sonymobile.com> Support abortScan

Support to abortScan instead of "ABORT_SCAN" command of
wpa_supplicant.
When STA scan triggered by wificond is ongoing, abortScan sends
NL80211_CMD_ABORT_SCAN to kernel to stop it.

Bug: 37227357
BUg: 37743832
Test: Manual test
Change-Id: I542088e7711bd7e32a22685397af8e7f3a8ccdf7
/system/connectivity/wificond/scanning/scanner_impl.h
0aeec45a101e4eaa534980fe380f24789b5ee1a6 26-Apr-2017 Ningyuan Wang <nywang@google.com> Revert "Support abortScan" am: e2cfd0257c am: 395d92eb80 am: 28f2c2c565
am: dfd0c5eda7

Change-Id: I9a9da2c629b26908d4a08de0199e13ba910f6e09
e2cfd0257ca330bea72b56387dc7197363be7b32 25-Apr-2017 Ningyuan Wang <nywang@google.com> Revert "Support abortScan"

This reverts commit 77732670f190b8bebb496478c34f157b546bdbed.

Change-Id: I4f6304740fd6c4248ac7f56655bbc15ccf0a9dcb
/system/connectivity/wificond/scanning/scanner_impl.h
6cfb9ad53ab12efb2ff87e7f67c974a60ac7636d 21-Apr-2017 Daisuke Niwa <daisuke.x.niwa@sonymobile.com> Support abortScan am: 77732670f1 am: 36889eb2d7 am: 646644f254
am: e32024f6f9

Change-Id: I834720124d1cd167eda0ecc0023c37c435c4ffb0
77732670f190b8bebb496478c34f157b546bdbed 06-Apr-2017 Daisuke Niwa <daisuke.x.niwa@sonymobile.com> Support abortScan

Support to abortScan instead of "ABORT_SCAN" command of
wpa_supplicant.
When STA scan triggered by wificond is ongoing, abortScan sends
NL80211_CMD_ABORT_SCAN to kernel to stop it.

Bug: 37227357
Test: Manual test

Change-Id: Ifc4b81de8ec1d75467edf497abfe348c4ce1b283
/system/connectivity/wificond/scanning/scanner_impl.h
3b558d191c4237e137429ffeeaf686e34e5da98b 22-Dec-2016 Sohani Rao <sohanirao@google.com> Wificond: Client for Offload HAL HIDL service

This CL creates the client side implementation for Offload HAL and
exports it's API's to wificond. It also creates the interface object
for callback from the Offload HAL.
Cherry pick from 1f05294be907f55add2533e83fca1cea440a6d6c
Bug: 32842314
Test: Unit tests and Mannual tests of verifying Wifi can be turned on
connected and ensure we are getting a handle on Offload HAL service
Change-Id: Ie63b31742a6b53d60c4c2a3560829fc69a2a5f3d
/system/connectivity/wificond/scanning/scanner_impl.h
ce6c6a2b321eff6083a4045ad8c64013ba8bfe2e 14-Mar-2017 Ningyuan Wang <nywang@google.com> Improve wificond logging while abridging network list

Bug: 36227711
Test: compile, unit tests, manual test

Change-Id: I74e7d063c7251450a2c09d0e0be70d96f7590bfd
/system/connectivity/wificond/scanning/scanner_impl.h
5711892b76b3ba2dea53aec0769ca36cb04b3cec 27-Feb-2017 Ningyuan Wang <nywang@google.com> Do not request MAC address randomization when associated

This CL includes the following changes:
1. Enables netlink manager to monitor NL80211_CMD_DISCONNECT and
NL80211_CMD_DISASSOCIATE events
2. Makes ClientInterfaceImpl listen to these additional MLME events.
3. Makes clientInterfaceImpl keep tracking of the association state.
4. Exposes the association state to ScannerImpl, and makes ScannerImpl
only request MAC address randomization when interface is not associated.

Bug: 35803146
Test: compile, unit tests, manual test

Change-Id: I7a5eeaf6329e1142a0012f27e0f72e6514ba7f94
/system/connectivity/wificond/scanning/scanner_impl.h
0513378db6f1f8f2c84387c3a8bea5449cf03190 23-Feb-2017 Ningyuan Wang <nywang@google.com> Get up-to-date channel info from kernel

Bug: 35707768
Test: compile, unit tests, integration test

Change-Id: Ifb0beb9321d632ec76df3d368c10e4531743e4c3
/system/connectivity/wificond/scanning/scanner_impl.h
8759e74833052a3ee8abf47308cac0bdf81d2e3d 23-Feb-2017 Ningyuan Wang <nywang@google.com> Do not rely on the destructor of shared object ScannerImpl

We should control the life time of these shared object instead
of relying on java garbage collection.
This will ensure the correct order to avoid race conditions.

Bug: 35664767
Change-Id: I415da1e70c93ceeb79b78c4ce9e833e86313c505
Test: compile, unit tests, manual tests
/system/connectivity/wificond/scanning/scanner_impl.h
4adb05f87e2672d5af4825a7a74436b5a58540b8 25-Jan-2017 Ningyuan Wang <nywang@google.com> Enforce wificond scanner capability checks

Wiphy reports its capabilities for handling scan requests.
This enables wificond scanner to trim incoming scan request
if request exceeds the wiphy capabilities.
E.g. Framework requests more scanning ssids than the
number wiphy can handle.

This also fixes a few code formatting issues.

Bug: 34685914
Test: compile, unit tests, manual tests

Change-Id: I96d76df13f287f8bf873d9f7818e75604cab3149
/system/connectivity/wificond/scanning/scanner_impl.h
6befb90430e70742c90aaf02940b22ed3e564d71 25-Jan-2017 Ningyuan Wang <nywang@google.com> Maintain scanning status correctly for wificond scanner

This enable wificond scanner to track one-shot scan and pno
scan status by maintaning |scan_started| and |pno_scan_started|.

This also allows wificond scanner to subscribe scan events from
kernel all the time even if there is no external subscriber.
This ensures wificond scanner keeps tracks of all scan events so
|scan_started| and |pno_scan_started| can be set correctly.

Bug: 33398008
Test: compile, unit tests, manual tests
Change-Id: Id58a77a975e1199f25e14d6f81a39018513aefeb
/system/connectivity/wificond/scanning/scanner_impl.h
59ab0a4ec0c5f3124bb63a683a1c46dba21faf3f 24-Jan-2017 Ningyuan Wang <nywang@google.com> Plumb through scheduled scan failures

Bug: 34611323
Test: compile, unit tests, manual tests

Change-Id: Ib3cc3ae24043c72528f19d27853196c5605b4292
/system/connectivity/wificond/scanning/scanner_impl.h
cac79589ac90296583fd9f352a8411d4607b2216 20-Jan-2017 Ningyuan Wang <nywang@google.com> Plumb through scheduled scan results

Bug: 33398008
Test: compile, unit tests, manual test

Change-Id: I1e9eb84294cf99cda377c5c17edda97baa465895
/system/connectivity/wificond/scanning/scanner_impl.h
6fb69037162826904ea9f0cc00fb9a0cfaf15e6f 10-Dec-2016 Ningyuan Wang <nywang@google.com> Support PNO scan for wificond scanner

This also fixes the aidl file naming.
Functions should start with lower case alphabet.

Bug: 33398008
Test: compile

Change-Id: Icb401d398c819ce1f54fb32da116e21fb835ec2b
/system/connectivity/wificond/scanning/scanner_impl.h
48fa2dc030a9c648403ec2761f24fc6907741518 09-Dec-2016 Ningyuan Wang <nywang@google.com> Add scan result notification interfaces to wificond scanner

Bug: 33398008
Test: compile

Change-Id: I10eb85b67be4b5b1829c006f92e0cc4d37a9be7d
/system/connectivity/wificond/scanning/scanner_impl.h
a0687c403abfb1605c7afbe100e30f3d884587ca 09-Dec-2016 Ningyuan Wang <nywang@google.com> Add scan() to wificond scanner

Bug: 33398008
Change-Id: Ib2009547ccc8fc368bd92e88a216b61cefe9a8ad
Test: compile
/system/connectivity/wificond/scanning/scanner_impl.h
069d339f16a6ba2cbfbaa9f1eb1921c8e50e16d1 09-Dec-2016 Ningyuan Wang <nywang@google.com> Add getScanResults() to wificond scanner

Bug: 33398008
Change-Id: I40c456f9b2c4ff4ba971cb09f2b5e3904519a250
Test: compile, manual tests
/system/connectivity/wificond/scanning/scanner_impl.h
87a24f50bf8565f456763780650ee4c0f5318065 05-Dec-2016 Ningyuan Wang <nywang@google.com> Add interfaces for getting available channels to WifiScannerImpl

This adds the following three aidl interfaces to wificond ScannerImpl:

int[] getAvailable2gChannels();
int[] getAvailable5gNonDFSChannels();
int[] getAvailableDFSChannels();

This also adds the corresponding integration tests.

Bug: 33297764
Test: compile, unit tests, integration tests

Change-Id: Idb14740769aa2ab368f311ae099b53005382a007
/system/connectivity/wificond/scanning/scanner_impl.h
2c74cae9b5e0f0e72250fd5f82928768496a5f37 30-Nov-2016 Ningyuan Wang <nywang@google.com> Expose wiphy capabilities to ScannerImpl

This adds a struct WiphyFeatures to save wiphy feature flags
from netlink wiphy message. Currently we only add fields for
randomized mac address support.

This also allows ClientInterfaceImpl to expose channel info, scan
capabilities and wiphy features to ScannerImpl object.

Bug: 33216906
Test: compile, unit tests, manual test

Change-Id: Iac9355e45a3cf2011120fc6a91ccfb2dee434951
/system/connectivity/wificond/scanning/scanner_impl.h
c2b0dce5c32b4e6baf5d923b604529ea0ed97c5f 18-Nov-2016 Ningyuan Wang <nywang@google.com> Add WifiScannerImpl object stub implementation

This includes:
1. Add getWifiScannerImpl() to IClientInterface. This call will
return an IWifiScannerImpl object.

2. Remove scanning result listening functionalities out of the
ClientInterface class. These functionalities will be added back
to ScannerImpl class later.

Bug: 31115360
Test: compile, unit tests, integration tests

Change-Id: Ie4ffcbe0d63b2db61e66093df2dda26493e2cd77
/system/connectivity/wificond/scanning/scanner_impl.h