OSDN Git Service
Chih-Wei Huang [Thu, 24 Oct 2019 04:00:01 +0000 (12:00 +0800)]
Merge tag 'android-8.1.0_r69' into oreo-x86
Android 8.1.0 Release 69 (
5794017)
Chih-Wei Huang [Mon, 20 May 2019 09:37:31 +0000 (17:37 +0800)]
Merge tag 'android-8.1.0_r64' into oreo-x86
Android 8.1.0 Release 64 (OPM8.190505.001)
android-build-team Robot [Wed, 13 Mar 2019 20:14:50 +0000 (20:14 +0000)]
Merge cherrypicks of [
6714499,
6716593,
6716594,
6716595,
6716596,
6716597,
6716977,
6718226,
6717773,
6716978,
6717663] into oc-m8-release
Change-Id: I3f057e7c6d1c79edb32b783f7bf32e197ecf7ac2
Roshan Pius [Tue, 19 Jun 2018 15:12:29 +0000 (08:12 -0700)]
wificond: Mark scanner impl instance invalid
The call to ScannerImpl.invalidate() does not reset the |valid_| field
currently. This leads to unexpected behavior when any calls are made
on that instance after invoking invalidate().
Bug:
110378816
Bug:
121327323
Test: Repeatedly toggled wifi state and ensured we connected back.
Change-Id: I8da3e1d9284ec9e27f8a0980a669611369810c34
(cherry picked from commit
7b332f6c5f43d455e948fab6b705b9985b061348)
Roshan Pius [Tue, 19 Jun 2018 15:12:29 +0000 (08:12 -0700)]
wificond: Mark scanner impl instance invalid
The call to ScannerImpl.invalidate() does not reset the |valid_| field
currently. This leads to unexpected behavior when any calls are made
on that instance after invoking invalidate().
Bug:
110378816
Bug:
121327323
Test: Repeatedly toggled wifi state and ensured we connected back.
Change-Id: I8da3e1d9284ec9e27f8a0980a669611369810c34
(cherry picked from commit
7b332f6c5f43d455e948fab6b705b9985b061348)
Chih-Wei Huang [Fri, 16 Nov 2018 06:43:09 +0000 (14:43 +0800)]
Ignore getting NL80211_STA_INFO_TX_FAILED failure
Some drivers don't support it. Just ignore the error to get correct
signal strength.
Tested-by: youling257 <youling257@gmail.com>
Chih-Wei Huang [Fri, 25 May 2018 10:10:58 +0000 (18:10 +0800)]
Merge tag 'android-8.1.0_r29' into oreo-x86
Android 8.1.0 Release 29 (OPM4.171019.016.C1)
android-build-team Robot [Wed, 21 Mar 2018 21:25:20 +0000 (21:25 +0000)]
Snap for
4657601 from
9828014fd83005fbc305c535500406612b58f287 to oc-m4-release
Change-Id: Ifbf924ba3a222c8274af66e08b903b27e22f017d
John Stultz [Wed, 23 Aug 2017 04:39:53 +0000 (21:39 -0700)]
wificond.rc: Set CAP_NET_RAW and CAP_NET_ADMIN explicitly rather then implictly via group
Rather then depending on the ANDROID_PARANOID_NETWORKING hack,
which allows processes in group net_raw and net_admin to implicitly be
granted CAP_NET_RAW and CAP_NET_ADMIN, set the capabilities explictly.
This allows wificond to function on mainline based kernels that do
not enable ANDROID_PARANOID_NETWORKING.
Bug:
65022091
Change-Id: Ia44bf3192ab48944e7d423635a06650214d22b27
Signed-off-by: John Stultz <john.stultz@linaro.org>
android-build-team Robot [Wed, 29 Nov 2017 00:34:18 +0000 (00:34 +0000)]
Snap for
4448085 from
c8bca5f75eb28620108278b1cf02c744588e0073 to oc-m3-release
Change-Id: Ibb7e6a5573c535c6521f714a5ccff7c92d78a3b0
android-build-team Robot [Fri, 29 Sep 2017 20:08:15 +0000 (20:08 +0000)]
release-request-
99856c15-b008-4977-9971-
f86523a23c0a-for-git_oc-m2-release-
4367109 snap-temp-L18300000107415568
Change-Id: I5a624275a2e244dc30fc7a905db4db2849f09593
android-build-team Robot [Wed, 27 Sep 2017 07:30:21 +0000 (07:30 +0000)]
release-request-
a41f1f54-b764-45d4-b9ce-
16ae3001be88-for-git_oc-mr1-release-
4362737 snap-temp-L87100000106492125
Change-Id: Ife8f73400d383dace2b5c78ee72d48d97618cf6d
TreeHugger Robot [Tue, 26 Sep 2017 13:07:20 +0000 (13:07 +0000)]
Merge "Use AP bssid for GetPacketCounters()" into oc-mr1-dev
Ningyuan Wang [Wed, 20 Sep 2017 21:34:02 +0000 (14:34 -0700)]
Use AP bssid for GetPacketCounters()
we should use AP bssid instead of local interface mac address
for NL80211_CMD_GET_STATION. Local interface mac address only
works for some devices.
Bug:
66218880
Test: compile, unit tests
Test: run the following CTS test:
cts-tradefed run cts -m CtsNetTestCases -t
android.net.wifi.cts.WifiManagerTest#testWifiWatchdog
Change-Id: I8852ab5085d186ee3f1e5b81abbf4c1d2500b9fa
android-build-team Robot [Thu, 21 Sep 2017 21:58:19 +0000 (21:58 +0000)]
release-request-
a84b3435-75fa-41e8-bd3c-
ca0f4cbd5cc5-for-git_oc-m2-release-
4352002 snap-temp-L88700000105039240
Change-Id: Ib1d1fb963350b308551671954791fdfa17985669
android-build-team Robot [Thu, 21 Sep 2017 07:30:41 +0000 (07:30 +0000)]
release-request-
bbc747ae-190b-4d38-8704-
432aa6396c16-for-git_oc-mr1-release-
4351869 snap-temp-L93800000104806132
Change-Id: I85218ee31cd1807a11089918db89b07b01d71c58
Ningyuan Wang [Thu, 24 Aug 2017 23:03:33 +0000 (16:03 -0700)]
Cherry-pick: Fail RSSI polling if wifi is not associated
Bug:
65025500
Test: compile, unit tests
Merged-In: Id4fe741d4a66329302cea0961d1bc17a35aa9382
Change-Id: Id4fe741d4a66329302cea0961d1bc17a35aa9382
android-build-team Robot [Thu, 14 Sep 2017 07:29:14 +0000 (07:29 +0000)]
release-request-
f0fc1aa1-730c-4deb-b1ff-
e8ebeeccc4b5-for-git_oc-mr1-release-
4335659 snap-temp-L85900000102427279
Change-Id: Iff793faf0499a95b429b5015a62004013ff81524
Sohani Rao [Wed, 13 Sep 2017 22:32:14 +0000 (22:32 +0000)]
Merge "Wificond: Remove mannual memory management in OffloadScanManager" into oc-mr1-dev
android-build-team Robot [Sun, 3 Sep 2017 07:35:16 +0000 (07:35 +0000)]
release-request-
957cd691-fb71-4770-8ff7-
a3b9602655a5-for-git_oc-mr1-release-
4314464 snap-temp-L54400000099147910
Change-Id: I3af64f27adbce5b669336227cd5abab8e9f85093
Mehdi Alizadeh [Fri, 11 Aug 2017 01:32:26 +0000 (18:32 -0700)]
Count failures on fallback to netlink for pno metrics
Call OnPnoScanFailed callback if failed to fallback to netlink pno
Bug:
32842314
Test: runtests.sh
Change-Id: I6aab3c7d95ee0cfd7adc4f5519fcd80caab60759
Sohani Rao [Mon, 21 Aug 2017 23:56:46 +0000 (16:56 -0700)]
Wificond: Remove mannual memory management in OffloadScanManager
Bug:
64853991
Test: Unit tests and on-device testing for finding APs in Offloaded PNO
scans
Change-Id: I88fcbaed00627a7d282b6214f93419a761764da6
Sohani Rao [Tue, 22 Aug 2017 20:45:43 +0000 (13:45 -0700)]
Wificond: Provide a way to enable Offload scans
Enable use of adb shell setprop <property_string> <value> command
to enable using offload HAL for disconnected mode PNO scans.
Bug:
64944391
Test: Unit test and on device to test to ensure the command works
Change-Id: I911a15177f98be6040d161093bf4c97089973b9c
android-build-team Robot [Wed, 23 Aug 2017 07:30:03 +0000 (07:30 +0000)]
release-request-
cff6d9b6-a564-4d17-99cb-
c2d0bb282758-for-git_oc-mr1-release-
4293817 snap-temp-L12800000095933585
Change-Id: I068a13c7906f0939a51531dc609d8d0d1af914ae
TreeHugger Robot [Tue, 22 Aug 2017 22:44:22 +0000 (22:44 +0000)]
Merge "Remove RTT related code from wificond" into oc-mr1-dev
android-build-team Robot [Sun, 20 Aug 2017 07:37:24 +0000 (07:37 +0000)]
release-request-
369362fc-cc6c-4cb1-95c0-
90b5ac7c52cb-for-git_oc-mr1-release-
4288633 snap-temp-L81700000095141745
Change-Id: I47fe6c670ba980e202746246b8f8cf3a3ccb1209
Ningyuan Wang [Thu, 17 Aug 2017 22:09:00 +0000 (15:09 -0700)]
Remove RTT related code from wificond
Bug:
64809697
Test: compile, unit tests
Change-Id: I4457dee48b7af6e4d2d709b636e4ddecbd8d68cd
android-build-team Robot [Wed, 16 Aug 2017 07:26:10 +0000 (07:26 +0000)]
release-request-
a0f7506a-1cd6-4a03-927b-
8d29e0c545e6-for-git_oc-mr1-release-
4277764 snap-temp-L23600000093606242
Change-Id: I06dea035d6ab37f55f6a68f5bda7a21919aac91a
android-build-team Robot [Tue, 15 Aug 2017 07:33:15 +0000 (07:33 +0000)]
release-request-
e73a0a41-91c3-4249-808e-
8d196d54a344-for-git_oc-mr1-release-
4273744 snap-temp-L04700000093069831
Change-Id: I2fac0d36a571879f35fd669079fbc471439c5413
Sohani Rao [Thu, 10 Aug 2017 19:10:12 +0000 (12:10 -0700)]
Conditional compile flags not allowed in BoardConfig
The assumption that the Boardconfig.mk will export a flag that will
determine support for a feature is incorrect. Remove using of this
assumed flag from wificond.
Bug:
32842314
Test: Unit tests, On device test
Change-Id: I3aa33318a5e220a30f9950a7bb9488058f1421b9
Sohani Rao [Fri, 28 Jul 2017 21:09:47 +0000 (14:09 -0700)]
Wificond ScannerImpl Unit testing Offload HAL
Wificond ScannerImpl interfaces with Offload HAL to invoke APIs to
perform disconnected mode PNO scans. This CL tests behavior of
ScannerImpl.
Bug:
32842314
Test: Unit test and VTS
Change-Id: I070d17c98ce90a9aeded80eac7135d02e36f0231
Sohani Rao [Thu, 27 Jul 2017 17:52:29 +0000 (10:52 -0700)]
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
Sohani Rao [Wed, 26 Jul 2017 01:09:57 +0000 (18:09 -0700)]
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
Sohani Rao [Wed, 12 Jul 2017 01:06:17 +0000 (18:06 -0700)]
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
Sohani Rao [Wed, 12 Jul 2017 01:02:24 +0000 (18:02 -0700)]
Wificond: Make Offload HAL service nonblocking
Offload HAL getService() is a blocking call which can cause a deadlock.
Replace it with non blocking call tryGetService() which returns null if
the service is not running instead of waiting on the service to start.
This implies that the client needs to be able to get a reference to the
service at a later time. The design choice is to use tryGetService() API
to get the handle when a disconnected mode PNO scan is requested if this
was not available before.
Bug:
62807929
Test: Unit test, sanity test
Change-Id: I344fd93c4afe2381c356e626e83311af49a5ad49
Sohani Rao [Wed, 12 Jul 2017 00:59:54 +0000 (17:59 -0700)]
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
Sohani Rao [Wed, 12 Jul 2017 00:57:57 +0000 (17:57 -0700)]
Wificond: AIDL APIs for Offload HAL API metrics
Add new APIs to IPnoScanEvent AIDL itnerface that can be used to report
Offload HAL events for purposes of Offload HAL scan metric collection
by framework
Bug:
32842314
Test: Unit tests, on-device test for connecting to a network found by
Offload HAL during PNO scans
Change-Id: Iae97389a35a728e3c0fc67f4f2c9937a8fa4acee
Sohani Rao [Wed, 12 Jul 2017 00:52:42 +0000 (17:52 -0700)]
Wificond: Converting Offload scan results update
When converting scan results from Offload HAL to NativeScanResult
format, fix updating the BSSID field.
Bug:
63148974
Test: Unit test, sanity test - bring up the phone and connect with
access points, test disconnected mode PNO scans with Offload HAL as the
interface of choice
Change-Id: I60ae8b4e6422727c2cab2d2fca4c5a0730558035
android-build-team Robot [Wed, 2 Aug 2017 07:27:30 +0000 (07:27 +0000)]
release-request-
ceffd4a6-d719-491c-b078-
6ce33cda5fb8-for-git_oc-mr1-release-
4237114 snap-temp-L83200000088245566
Change-Id: Iacac8751bf04aaee5e0d72b4a3284abb5a651e87
Ningyuan Wang [Wed, 2 Aug 2017 03:59:09 +0000 (03:59 +0000)]
Support scan plan attribute for scheduled scan
am:
dfbe7e4e12
Change-Id: Ie95cfb7746db96a64dab898a55edccabb34d75cc
Ningyuan Wang [Wed, 2 Aug 2017 03:59:07 +0000 (03:59 +0000)]
Retrieve scan plan capabilities from kernel
am:
514a184b8e
Change-Id: I542e1a15d38bbb34449d7d5c98b75fb04580ddee
Ningyuan Wang [Wed, 19 Jul 2017 17:58:36 +0000 (10:58 -0700)]
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
Ningyuan Wang [Thu, 20 Jul 2017 20:43:02 +0000 (13:43 -0700)]
Retrieve scan plan capabilities from kernel
Bug:
63837760
Test: compile, unit test
Test: manually inserting logs to test it retrieves the correct
values.
Change-Id: I750bd287b4f1cb8df44b8d1367c69f7963a3d8dc
android-build-team Robot [Thu, 20 Jul 2017 07:30:44 +0000 (07:30 +0000)]
release-request-
d8901a87-7dd0-4cc8-a44e-
d04982e429da-for-git_oc-mr1-release-
4198291 snap-temp-L50900000084068812
Change-Id: I8a3c1f4dbfe72717ec02f0ea8458eb762df2952e
Ningyuan Wang [Wed, 19 Jul 2017 22:30:37 +0000 (15:30 -0700)]
Do not crash on netlink manager start error
For some device(emulator) kernel netlink interface is not configured.
NetlinkManager.Start() will fail and crash wificond.
Wificond is included in base.mk so it is not feasible to remove
it from emulator image.
This patch changes the error level from FATAL to ERROR to avoid
crashing.
Bug:
63837784
Test: compile, manual test wificond works
Change-Id: I0cf3f6a1ea73e455f8362870e4c96c76b59dd41c
android-build-team Robot [Tue, 18 Jul 2017 07:33:59 +0000 (07:33 +0000)]
release-request-
e04bb055-13fc-41a1-8a9f-
7fb10894ec3d-for-git_oc-mr1-release-
4189380 snap-temp-L90600000083186678
Change-Id: I9e521f7c13c5ed7750308397650e19cb58e0950f
Ningyuan Wang [Tue, 18 Jul 2017 00:44:22 +0000 (00:44 +0000)]
Merge "Use new netlink attribute for scan result timestamp" into oc-dr1-dev am:
30f40a8855
am:
ce5cdd8492
Change-Id: Ifdea96308eed891801a42d6c282c7ac40e04aa61
Ningyuan Wang [Tue, 18 Jul 2017 00:41:52 +0000 (00:41 +0000)]
Merge "Use new netlink attribute for scan result timestamp" into oc-dr1-dev
am:
30f40a8855
Change-Id: I595fa798b0602ed7365476d358dcfdfdff0d4993
Ningyuan Wang [Tue, 18 Jul 2017 00:36:26 +0000 (00:36 +0000)]
Merge "Use new netlink attribute for scan result timestamp" into oc-dr1-dev
android-build-team Robot [Sun, 16 Jul 2017 07:37:11 +0000 (07:37 +0000)]
release-request-
05263112-375a-4b1f-a657-
a14bb2a5c5a3-for-git_oc-mr1-release-
4185249 snap-temp-L63000000082739046
Change-Id: I586e6d1e84d64c56e3ff5f7baf84d51d73fb9f16
Ningyuan Wang [Fri, 14 Jul 2017 22:34:53 +0000 (22:34 +0000)]
ScannerImpl: Add unit tests for scheduled scans am:
7a3d8ddff0
am:
62d5572e2f
Change-Id: I5e0710f98bce725c3101d763478893f94a902246
Ningyuan Wang [Fri, 14 Jul 2017 22:34:51 +0000 (22:34 +0000)]
More unit tests for ScannerImpl am:
c658fa0ae1
am:
c13c2e23c9
Change-Id: I7754fa9a5030894355ded96e1c8fc14306e759c2
Ningyuan Wang [Fri, 14 Jul 2017 22:30:51 +0000 (22:30 +0000)]
ScannerImpl: Add unit tests for scheduled scans
am:
7a3d8ddff0
Change-Id: I05a37a1fe3b942f9a70c4d95354a7ee10a3e5fb9
Ningyuan Wang [Fri, 14 Jul 2017 22:30:50 +0000 (22:30 +0000)]
More unit tests for ScannerImpl
am:
c658fa0ae1
Change-Id: I445180bbfe03a5328e021c5261107b4611453150
Ningyuan Wang [Fri, 9 Jun 2017 16:41:21 +0000 (09:41 -0700)]
Use new netlink attribute for scan result timestamp
Bug:
37758502
Test: compile, manual test
Test: integration test
Test: manually test that on new and old devices, there should
be only a small portion of scan results filtered out.
Change-Id: I2cbcb6f4c5b58b6a56a746de97afe491a9e338ac
Ningyuan Wang [Tue, 11 Jul 2017 17:33:01 +0000 (10:33 -0700)]
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
Ningyuan Wang [Tue, 11 Jul 2017 01:27:36 +0000 (18:27 -0700)]
More unit tests for ScannerImpl
This adds unit tests for abortScan() and getScanResults().
Bug:
33452931
Test: compile, unit tests
Change-Id: I9920022c02ac18bdd0b1cd045682c63763361065
android-build-team Robot [Tue, 11 Jul 2017 07:26:34 +0000 (07:26 +0000)]
release-request-
5ee66a34-3e58-4de0-ba73-
1f49074ee497-for-git_oc-mr1-release-
4169335 snap-temp-L20600000081126177
Change-Id: I970aeaed65f18fc5311cbbff4a0325eaf8f25b86
Sohani Rao [Tue, 11 Jul 2017 00:16:15 +0000 (00:16 +0000)]
Merge "WifiCond: Setup polling on HW binder FD" into oc-dr1-dev am:
b7a65e9a63
am:
8151c5232c
Change-Id: I5797739fb6c0f0b3b01b1592e1fc5a9a5ad4d062
Sohani Rao [Tue, 11 Jul 2017 00:13:45 +0000 (00:13 +0000)]
Merge "WifiCond: Setup polling on HW binder FD" into oc-dr1-dev
am:
b7a65e9a63
Change-Id: Idb9e7c9308b262c0ffccd56aef6baa3e4a87799a
TreeHugger Robot [Tue, 11 Jul 2017 00:08:06 +0000 (00:08 +0000)]
Merge "WifiCond: Setup polling on HW binder FD" into oc-dr1-dev
android-build-team Robot [Sun, 2 Jul 2017 07:32:43 +0000 (07:32 +0000)]
release-request-
d9dc98f7-19b2-484c-b4d1-
f35dc43e9c05-for-git_oc-mr1-release-
4152006 snap-temp-L91700000079405440
Change-Id: I31e5790ede6e7d8dc9a92ca18d9f704253b49c87
Ningyuan Wang [Thu, 29 Jun 2017 17:31:43 +0000 (17:31 +0000)]
Create unittest for ScannerImpl am:
3c023a0e38
am:
7f5e3669fe
Change-Id: I22496dbb846798b2a8a7690bd421c144d387af8d
Ningyuan Wang [Thu, 29 Jun 2017 17:27:41 +0000 (17:27 +0000)]
Create unittest for ScannerImpl
am:
3c023a0e38
Change-Id: Ic38f5a5ac88d7b176a63f23a1f7351ee3a204307
Sohani Rao [Wed, 21 Jun 2017 02:49:54 +0000 (19:49 -0700)]
WifiCond: Setup polling on HW binder FD
To keep wificond running in single threaded mode, set it up to poll on
file descriptor of HW Binder that will receive Offload HAL callback
events
Bug:
62807929
Test: Unit tests, sanity tests, ensure Wificond has only one thread
Change-Id: Id1e977d1a62fecd9b9432d7726aee2cb5f168574
android-build-team Robot [Tue, 27 Jun 2017 07:29:25 +0000 (07:29 +0000)]
release-request-
6db00e04-e62d-4e43-807a-
a9cc1185dcbb-for-git_oc-mr1-release-
4136929 snap-temp-L91700000077883673
Change-Id: Ic766ac3c45530254eeffec92269572fa32844e5d
Ningyuan Wang [Tue, 27 Jun 2017 00:28:46 +0000 (00:28 +0000)]
Restart wificond on ENODEV scan failure am:
793978cb7f
am:
3715880b1d
Change-Id: I3168afd2d930f52cd603a46a199a327bbda958e9
Ningyuan Wang [Thu, 22 Jun 2017 22:21:15 +0000 (15:21 -0700)]
Create unittest for ScannerImpl
This creates the unit test suite for class ScannerImpl and
add a few test cases for single scan.
Bug:
33452931
Test: compile, unit tests
Change-Id: Ib0584068aa886769b50860309224e670f3415fc8
Ningyuan Wang [Mon, 26 Jun 2017 22:14:03 +0000 (22:14 +0000)]
Restart wificond on ENODEV scan failure
am:
793978cb7f
Change-Id: Iec003a60e0c3abf0ad3fd7909a1cc74d14555cec
android-build-team Robot [Sun, 25 Jun 2017 07:42:44 +0000 (07:42 +0000)]
release-request-
7bfcab52-d1c0-4256-9d6b-
5b5092bc78ca-for-git_oc-mr1-release-
4133428 snap-temp-L95800000077479875
Change-Id: Ica00a413fa48609320a3ecd8ef0ab47029b1055a
Ningyuan Wang [Thu, 15 Jun 2017 18:25:47 +0000 (11:25 -0700)]
Restart wificond on ENODEV scan failure
ENODEV scan failure implies that driver entered a bad state.
In order to recover wificond, we should treat it as an fatal
error. The crashing of wificond will trigger the restarting
of framework, bringing everything back to work.
Bug:
36894921
Test: compile, unit tests
Test: manual test:
Use "iw wlan0 del" to remove kernel interface.
Observe that wificond restarts and wifi continues to work.
Change-Id: I89f4403bcb570d7f413fa4cc9ca50378de428d3d
Sohani Rao [Thu, 22 Jun 2017 17:47:23 +0000 (17:47 +0000)]
Merge changes from topic '7_CLS_topic' into oc-dr1-dev am:
b8ad0fd508
am:
cabe9d5cc5
Change-Id: I9424612fea0526024e0a8a28812cc66cc334a421
Sohani Rao [Thu, 22 Jun 2017 17:47:22 +0000 (17:47 +0000)]
Wificond: Offload HAL APIs return status am:
e10ec9e1f1
am:
04559d12e9
Change-Id: I966018daa0bc6803dc63c6e7ee746921931c4c77
Sohani Rao [Thu, 22 Jun 2017 17:43:29 +0000 (17:43 +0000)]
Merge changes from topic '7_CLS_topic' into oc-dr1-dev
am:
b8ad0fd508
Change-Id: I861f95ceea5affe5d55bfe0b28fcfc349155b37d
Sohani Rao [Thu, 22 Jun 2017 17:43:27 +0000 (17:43 +0000)]
Wificond: Offload HAL APIs return status
am:
e10ec9e1f1
Change-Id: I7221e41b93d2ad1e1521d868694474e4b5fe70b7
TreeHugger Robot [Thu, 22 Jun 2017 17:40:01 +0000 (17:40 +0000)]
Merge changes from topic '7_CLS_topic' into oc-dr1-dev
* changes:
Offload HAL Wificond Client: Handle binder death
Wificond: Offload HAL APIs return status
android-build-team Robot [Wed, 21 Jun 2017 07:32:18 +0000 (07:32 +0000)]
release-request-
d1418208-3b0b-4ef9-a2f0-
a8f8ac6c24e8-for-git_oc-mr1-release-
4120176 snap-temp-L55000000076156472
Change-Id: I2fa90a0ce92d88e766fc5775a0174118fe100a91
Ningyuan Wang [Tue, 20 Jun 2017 23:37:39 +0000 (23:37 +0000)]
Merge "Revert "Use new netlink attribute for scan result timestamp" am:
ecb6bb205f am:
f4a2b51c0e" into oc-dr1-dev-plus-aosp
am:
0636688388
Change-Id: I769405ce2cfb8b35c5b049dac92e054a4b6bb453
Ningyuan Wang [Tue, 20 Jun 2017 23:37:29 +0000 (23:37 +0000)]
Revert "Use new netlink attribute for scan result timestamp" am:
ecb6bb205f am:
5bb4bd8518
am:
16c35d2940
Change-Id: I131885d262e52e0e75b60652d7601cbc2e881147
Android Build Merger (Role) [Tue, 20 Jun 2017 23:20:27 +0000 (23:20 +0000)]
Merge "Revert "Use new netlink attribute for scan result timestamp" am:
ecb6bb205f am:
f4a2b51c0e" into oc-dr1-dev-plus-aosp
Ningyuan Wang [Tue, 20 Jun 2017 23:20:13 +0000 (23:20 +0000)]
Revert "Use new netlink attribute for scan result timestamp" am:
ecb6bb205f
am:
f4a2b51c0e
Change-Id: Iec20d99a06c30ff0d5660c110114de2b1171b403
Ningyuan Wang [Tue, 20 Jun 2017 23:20:12 +0000 (23:20 +0000)]
Revert "Use new netlink attribute for scan result timestamp" am:
ecb6bb205f
am:
5bb4bd8518
Change-Id: Ib6762dacd462964516b648a191360a7e81ddcd86
Ningyuan Wang [Tue, 20 Jun 2017 23:15:41 +0000 (23:15 +0000)]
Revert "Use new netlink attribute for scan result timestamp"
am:
ecb6bb205f
Change-Id: Id0ad9f2c0c2ab434e921893b8d2b383b389170eb
Ningyuan Wang [Tue, 20 Jun 2017 23:15:41 +0000 (23:15 +0000)]
Revert "Use new netlink attribute for scan result timestamp"
am:
ecb6bb205f
Change-Id: I1915833acd8ed41b2f21e43a954338b593f5da02
Ningyuan Wang [Tue, 20 Jun 2017 18:43:43 +0000 (18:43 +0000)]
Revert "Use new netlink attribute for scan result timestamp"
This reverts commit
74db77ecd5314fa28ac2b78ccc3ca18788eeef60.
Bug:
62818212
Bug:
37758502
Change-Id: Icd93d4caffab92a5bf79c8d6aa8fe4dceca3ec06
android-build-team Robot [Sun, 18 Jun 2017 07:35:06 +0000 (07:35 +0000)]
release-request-
c9e3b153-009d-4386-b83e-
337752602795-for-git_oc-mr1-release-
4111654 snap-temp-L22900000075285650
Change-Id: I69f25d4490e9325d8d2169aae6fa320571025fe2
Ningyuan Wang [Fri, 16 Jun 2017 21:16:33 +0000 (21:16 +0000)]
Use new netlink attribute for scan result timestamp am:
74db77ecd5 am:
11b94d5983
am:
dd3262305c
Change-Id: I91848562b85ac3e6fc571df5485fde64480c1b41
Ningyuan Wang [Fri, 16 Jun 2017 21:16:22 +0000 (21:16 +0000)]
Use new netlink attribute for scan result timestamp am:
74db77ecd5 am:
de349be439
am:
8d40c19351
Change-Id: I311cb94740ed4b295333d95eb6a6a065b15dbdc7
Ningyuan Wang [Fri, 16 Jun 2017 21:04:45 +0000 (21:04 +0000)]
Use new netlink attribute for scan result timestamp am:
74db77ecd5
am:
11b94d5983
Change-Id: I126fe893ff999fb5acfd3c4ca8be86e2ce57ffc8
Ningyuan Wang [Fri, 16 Jun 2017 21:03:51 +0000 (21:03 +0000)]
Use new netlink attribute for scan result timestamp am:
74db77ecd5
am:
de349be439
Change-Id: I04a2307e43c75ffa66797c19da3b60dd79e4c66a
Ningyuan Wang [Fri, 16 Jun 2017 20:57:51 +0000 (20:57 +0000)]
Use new netlink attribute for scan result timestamp
am:
74db77ecd5
Change-Id: Ie2264901d0389448f891152d7044c041ab5b4b93
Ningyuan Wang [Fri, 16 Jun 2017 20:57:50 +0000 (20:57 +0000)]
Use new netlink attribute for scan result timestamp
am:
74db77ecd5
Change-Id: Ifb6ae8a81c40b940194f7608a2edb67de42a61da
Ningyuan Wang [Fri, 9 Jun 2017 16:41:21 +0000 (09:41 -0700)]
Use new netlink attribute for scan result timestamp
This CL prioritize the new netlink attribute
NL80211_BSS_LAST_SEEN_BOOTTIME to the old NL80211_BSS_TSF
because if driver supports the new attribute, the new
attribute will carry more accurate data. If not, we still
can fall back to NL80211_BSS_TSF.
Bug:
37758502
Test: compile, unit tests, integration test
Test: manual tests:
1. Test devices which have new kernel/driver supporting this attribute.
Test that most APs still consistantly show up in scan result.
1. Test devices which don't support this attribute. Insert logs to test
that wificond can fall back to the old attributes.
Change-Id: I14226b77e8bf50f4e035679fff3313affb800e86
Sohani Rao [Wed, 7 Jun 2017 21:09:21 +0000 (14:09 -0700)]
Offload HAL Wificond Client: Handle binder death
Binder death handling for Offload HAL and corresponding unit tests
Bug:
32842314
Test: Unit tests
Change-Id: I7eb52689070046ae8d2db15fd2dda80d3d398022
Sohani Rao [Fri, 12 May 2017 00:33:12 +0000 (17:33 -0700)]
Wificond: Offload HAL APIs return status
Handle changes to the Offload HAL HIDL interface where the APIs now
return status of synchronous operations.
Bug:
32842314
Test: Unit Tests
Change-Id: If5cde06c3ad398774f33430ededda8f541540a31
android-build-team Robot [Sun, 4 Jun 2017 07:35:29 +0000 (07:35 +0000)]
release-request-
703268f3-975f-4a98-83d7-
cbf58019eda0-for-git_oc-mr1-release-
4067152 snap-temp-L75700000070444922
Change-Id: I72cbbd723c5ac108f9c7ac0ac7042eeec6f49a27
Chih-Hung Hsieh [Sat, 3 Jun 2017 01:26:12 +0000 (01:26 +0000)]
Add OWNERS in system/connectivity/wificond am:
483bd8dcfd am:
1e593176ba am:
0ddca176d2
am:
9ac2756540
Change-Id: I11b77728134e65991d1768d6e98e213df2ce296f
Chih-Hung Hsieh [Sat, 3 Jun 2017 01:22:23 +0000 (01:22 +0000)]
Add OWNERS in system/connectivity/wificond am:
483bd8dcfd am:
1e593176ba
am:
0ddca176d2
Change-Id: I6337d77073e86923731b33ffed1a4eb38bbed7be
Chih-Hung Hsieh [Sat, 3 Jun 2017 01:18:52 +0000 (01:18 +0000)]
Add OWNERS in system/connectivity/wificond am:
483bd8dcfd
am:
1e593176ba
Change-Id: Ie0c2e1fce2187b0ca92dae53537efcc913638aad
Chih-Hung Hsieh [Sat, 3 Jun 2017 01:15:23 +0000 (01:15 +0000)]
Add OWNERS in system/connectivity/wificond
am:
483bd8dcfd
Change-Id: Id788cdfa3d08a0f2ca7cf2aaa79ea5f9cb98c062