Commit graph

1655 commits

Author SHA1 Message Date
Treehugger Robot
3fe3db2c92 Merge "block_suspend: avoid CPU spinloop" am: 9a3f98fe6d am: ca1925f900 am: e780e61a65
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1453335

Change-Id: I8a893e0603b8b8225728057ca3368f8ac70d713d
2020-10-07 22:57:01 +00:00
Treehugger Robot
e780e61a65 Merge "block_suspend: avoid CPU spinloop" am: 9a3f98fe6d am: ca1925f900
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1453335

Change-Id: I587d0fa6338f9a31be1a04f95efc8f583622cf9a
2020-10-07 22:37:40 +00:00
Treehugger Robot
ca1925f900 Merge "block_suspend: avoid CPU spinloop" am: 9a3f98fe6d
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1453335

Change-Id: I64dc4f201be5a5c37ddfa5194c276a3c421003bd
2020-10-07 22:11:31 +00:00
Treehugger Robot
9a3f98fe6d Merge "block_suspend: avoid CPU spinloop" 2020-10-07 21:58:30 +00:00
Steven Moreland
0e63fb5593 block_suspend: avoid CPU spinloop
For verification of blocked suspend or other unit testing, the spinloop
is fine. However, making it sleep so that it is more viable to assist
with power testing or for any other test where avoiding changes to
device performance is important.

Bug: N/A
Test: run, and ps:
root          4179  4168   18720   4724 __se_sys_nanosleep_time32 0 S block_suspend

Change-Id: I81545ae7db1c1fad2cb94d00456d1a6773868111
2020-10-07 18:03:00 +00:00
Xin Li
00a4952e17 [automerger skipped] Merge "Merge Android R" am: cff73710d4 -s ours am: b8799f91f5 -s ours am: fb376639c3 -s ours am: 12db30c415 -s ours am: 4537fb436c -s ours
am skip reason: Change-Id Ia45f259338a1f8255e22c7ba6125e8149eaa9081 with SHA-1 936c77642d is in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1422399

Change-Id: I1a12dfb59139354bd728d3585345f8fa0716cba2
2020-09-11 21:27:15 +00:00
Xin Li
4537fb436c [automerger skipped] Merge "Merge Android R" am: cff73710d4 -s ours am: b8799f91f5 -s ours am: fb376639c3 -s ours am: 12db30c415 -s ours
am skip reason: Change-Id Ia45f259338a1f8255e22c7ba6125e8149eaa9081 with SHA-1 936c77642d is in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1422399

Change-Id: I3494c35ec5ed13116ce250afcfbe99c3a8776a81
2020-09-11 03:58:46 +00:00
Xin Li
12db30c415 [automerger skipped] Merge "Merge Android R" am: cff73710d4 -s ours am: b8799f91f5 -s ours am: fb376639c3 -s ours
am skip reason: Change-Id Ia45f259338a1f8255e22c7ba6125e8149eaa9081 with SHA-1 936c77642d is in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1422399

Change-Id: I0245f892a00f5c51c8d0a0d9bdf2e53de833b6ec
2020-09-11 03:33:15 +00:00
Xin Li
fb376639c3 [automerger skipped] Merge "Merge Android R" am: cff73710d4 -s ours am: b8799f91f5 -s ours
am skip reason: Change-Id Ia45f259338a1f8255e22c7ba6125e8149eaa9081 with SHA-1 936c77642d is in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1422399

Change-Id: I7d8055b131b1a51714aca201f347a5e3f36028eb
2020-09-11 02:02:24 +00:00
Xin Li
b8799f91f5 [automerger skipped] Merge "Merge Android R" am: cff73710d4 -s ours
am skip reason: Change-Id Ia45f259338a1f8255e22c7ba6125e8149eaa9081 with SHA-1 936c77642d is in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1422399

Change-Id: Iee6dab710c007de5b0f841a87004163aa2fc3e28
2020-09-11 00:39:43 +00:00
Xin Li
cff73710d4 Merge "Merge Android R" 2020-09-10 17:22:41 +00:00
Xin Li
5c585b6aed Merge Android R
Bug: 168057903
Merged-In: Ia45f259338a1f8255e22c7ba6125e8149eaa9081
Change-Id: I780a337f81956c8fb9b33b2034e62f89ac3cf3e0
2020-09-08 16:55:30 -07:00
Xin Li
f2a3bdbe11 [automerger skipped] Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) am: 936c77642d -s ours am: aa6ee6a69a -s ours am: ea9f4a294f -s ours am: 8f8ba91d47 -s ours
am skip reason: Change-Id I5081765a1f7067786819df994029cd37a56ec570 with SHA-1 241bea678f is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/12470018

Change-Id: I71fc9b0e529a394dfde3244dac482347bfd1fa15
2020-09-02 01:59:09 +00:00
Xin Li
8f8ba91d47 [automerger skipped] Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) am: 936c77642d -s ours am: aa6ee6a69a -s ours am: ea9f4a294f -s ours
am skip reason: Change-Id I5081765a1f7067786819df994029cd37a56ec570 with SHA-1 241bea678f is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/12470018

Change-Id: Iaadab5c4458d21648f7885078030853357dff132
2020-09-01 22:09:43 +00:00
Xin Li
ea9f4a294f [automerger skipped] Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) am: 936c77642d -s ours am: aa6ee6a69a -s ours
am skip reason: Change-Id I5081765a1f7067786819df994029cd37a56ec570 with SHA-1 241bea678f is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/12470018

Change-Id: I7c30a598562fcdce228fa715621e79a4981718f6
2020-09-01 21:46:28 +00:00
Xin Li
aa6ee6a69a [automerger skipped] Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709) am: 936c77642d -s ours
am skip reason: Change-Id I5081765a1f7067786819df994029cd37a56ec570 with SHA-1 241bea678f is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/12470018

Change-Id: I0ce66766b166fc58d5408d4b7bc44732bd8eb7f0
2020-09-01 20:36:53 +00:00
Xin Li
936c77642d Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I5081765a1f7067786819df994029cd37a56ec570
Change-Id: Ia45f259338a1f8255e22c7ba6125e8149eaa9081
2020-08-27 10:16:42 -07:00
Nate Jiang
9e25034006 [Aware] Add instant mode support
Bug: 160725208
Test: build
Change-Id: Ia123cba1669c71317723831385d9c5b234155563
2020-08-26 14:41:52 -07:00
Jimmy Chen
ba1d91c5fd Wifi: add 60GHz feature bit
Added a new feature code INFRA_60G for chips that operate
on the 60GHz band.

Bug: 146922967
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest

Change-Id: I4248c6d5e086305a7628497675fbd5b2a5b52e1b
2020-08-11 14:18:42 +08:00
Jimmy Chen
28f471d3bf Wifi: enhanced API to support multiple WIFI chips
Enhance the API to support multiple WIFI chips.
Each WIFI chip is represented by a separate and independent
vendor HAL library providing its own function table
(wifi_hal_fn structure).
New functions added to the function table in order to
better support multiple WIFI chips:
1. In the existing hardware/interfaces/wifi implementation,
WIFI chip modes and concurrency combinations are hard-coded.
Since each WIFI chip can have its own concurrency
combinations, it is no longer possible to hard-code the
modes/combinations.
Add new function wifi_get_chip_modes for reporting
chip modes/concurrency combinations. For backward compatibility,
if the vendor HAL does not implement this function,
the previous hard-coded chip modes and concurrency combinations
will be used.
2. In the existing hardware/interfaces/wifi implementation,
when creating a new interface, it will use a fixed name
such as wlan0 or wlan1. This does not extend well to
multiple WIFI chips, as different WIFI chips may want
to use their own interface names, or the suggested interface
name may have been pre-created by another chip.
In order to better support interface creation on multiple
WIFI chips, add a function wifi_get_supported_interface_name
that allows the vendor HAL to specify its own interface
name for upcoming interface creation. If the vendor HAL returns
an interface name, it should be passed to
wifi_virtual_interface_create to create the interface
with the provided name.
3. In the existing hardware/interfaces/wifi implementation,
wifi_initialize is only called when creating the first
interface (typically when enabling WIFI). However some
chips may want to perform early initialization and provide
some functionality while WIFI is still disabled. One example
is reporting chip-global capabilities that may affect
the UI even before WIFI is enabled.
In order to support this, add a new function
wifi_early_initialize which will perform early initialization.
The function should be called as soon as possible after
loading the vendor HAL, and if it returns a failure, the vendor
HAL should not be considered usable and no WIFI chip should
be created based on it.
4. In some cases it is needed to query chip features before
creating any interfaces. For example, for trying to start
a SoftAP on the 60GHz band, it is needed to detect a chip
which supports the 60GHz band, and only if such chip was detected,
then an AP interface can be created on it.
The wifi_get_supported_feature_set function only works on
a created interface so it is not suitable for this scenario.
To support such scenarios, add a new function
wifi_get_chip_feature_set which returns a set of chip-global
features which are independent of any created interface.

Bug: 146922967
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: If0b4934002c5687024c9fc2e65e15c466f94acd2
2020-08-11 14:18:39 +08:00
Ahmed ElArabawy
87805a2f0d Wifi: Add a vendor function to set subsystem restart handler
This commit adds a method to set the handler for wifi subsystem
restart callback.

Bug: 159367026
Test: force a firmware restart and make sure Wifi is recovered.
Change-Id: Id125b85a697a0cdd5cf2677abb0006c85053fd43
2020-07-02 17:36:02 +00:00
Glenn Kasten
95c70fb8fc Merge "Include what you use: <cutils/bitops.h> for popcount" am: a44935a15e am: f1c3aef751 am: 241bea678f am: 1021e13396 am: 997cf74b26
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1353827

Change-Id: I77cf1faa6a2b56909d43bfbf342c9917556939b1
2020-07-02 00:06:26 +00:00
Glenn Kasten
997cf74b26 Merge "Include what you use: <cutils/bitops.h> for popcount" am: a44935a15e am: f1c3aef751 am: 241bea678f am: 1021e13396
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1353827

Change-Id: I311140709697779fe38376257f9ecc9ffc5d2bdd
2020-07-01 23:49:52 +00:00
Glenn Kasten
1021e13396 Merge "Include what you use: <cutils/bitops.h> for popcount" am: a44935a15e am: f1c3aef751 am: 241bea678f
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1353827

Change-Id: Ie1c3b77e7aa7b41121aa855e294459e8fc32c58f
2020-07-01 23:35:22 +00:00
Glenn Kasten
241bea678f Merge "Include what you use: <cutils/bitops.h> for popcount" am: a44935a15e am: f1c3aef751
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1353827

Change-Id: I5081765a1f7067786819df994029cd37a56ec570
2020-07-01 23:11:01 +00:00
Glenn Kasten
f1c3aef751 Merge "Include what you use: <cutils/bitops.h> for popcount" am: a44935a15e
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1353827

Change-Id: Ibbe1d358bf78ecd8900e9a38dacd0d60b25a6fbc
2020-07-01 22:56:38 +00:00
Glenn Kasten
a44935a15e Merge "Include what you use: <cutils/bitops.h> for popcount" 2020-07-01 22:40:40 +00:00
Glenn Kasten
75957b03d2 Include what you use: <cutils/bitops.h> for popcount
Test: builds OK
Change-Id: Ia469ef1b53b96e14a348405f269009c93394661e
2020-07-01 12:18:21 -07:00
Treehugger Robot
90a13d2bb0 Merge "Add METADATA to libhardware_legacy: Apache2=NOTICE" am: 8d345978f3 am: 16d0ab9898 am: 23e327fdfd am: 091508d4a9 am: 36d3a725e5
Change-Id: I1910bcd6fffc3a0bec9f30db2c92695c99b0a198
2020-05-04 21:01:05 +00:00
Treehugger Robot
f4fd153565 Merge "Remove MODULE_LICENSE_APACHE2 from libhardware_legacy" am: dd5a89e9fd am: 0cee190367 am: 4d91ff3f1f am: 6aa4d874cd am: 439a7ff027
Change-Id: I237d1c2472f44f7fc0ae1c9660bcf8d2fbde4d7c
2020-05-04 21:00:30 +00:00
Treehugger Robot
36d3a725e5 Merge "Add METADATA to libhardware_legacy: Apache2=NOTICE" am: 8d345978f3 am: 16d0ab9898 am: 23e327fdfd am: 091508d4a9
Change-Id: I201e57b099c6ba87f7bb246abf3f64455d5f75e3
2020-05-04 20:44:27 +00:00
Treehugger Robot
439a7ff027 Merge "Remove MODULE_LICENSE_APACHE2 from libhardware_legacy" am: dd5a89e9fd am: 0cee190367 am: 4d91ff3f1f am: 6aa4d874cd
Change-Id: I2204a0a9e6bee7fdf95a96f4787578a37b41cdac
2020-05-04 20:43:58 +00:00
Treehugger Robot
091508d4a9 Merge "Add METADATA to libhardware_legacy: Apache2=NOTICE" am: 8d345978f3 am: 16d0ab9898 am: 23e327fdfd
Change-Id: Iae310a0b593cc4d394f6e33ee595b03c8b6f8850
2020-05-04 20:23:42 +00:00
Treehugger Robot
6aa4d874cd Merge "Remove MODULE_LICENSE_APACHE2 from libhardware_legacy" am: dd5a89e9fd am: 0cee190367 am: 4d91ff3f1f
Change-Id: I8520c946a8bcb199b2fa0ee17d8eb09b231373bf
2020-05-04 20:23:14 +00:00
Treehugger Robot
23e327fdfd Merge "Add METADATA to libhardware_legacy: Apache2=NOTICE" am: 8d345978f3 am: 16d0ab9898
Change-Id: I2510dd9ff0f35134c4d2dbdaf4f44d97eac172cd
2020-05-04 20:01:25 +00:00
Treehugger Robot
4d91ff3f1f Merge "Remove MODULE_LICENSE_APACHE2 from libhardware_legacy" am: dd5a89e9fd am: 0cee190367
Change-Id: I9b9ad4fe73f3b34760823f8b83d3106ed3d9799c
2020-05-04 20:01:19 +00:00
Treehugger Robot
16d0ab9898 Merge "Add METADATA to libhardware_legacy: Apache2=NOTICE" am: 8d345978f3
Change-Id: I7548b932b18f284cd7853f6822019eea157b98f3
2020-05-04 19:45:40 +00:00
Treehugger Robot
0cee190367 Merge "Remove MODULE_LICENSE_APACHE2 from libhardware_legacy" am: dd5a89e9fd
Change-Id: I7e5168450c852c8dcf6f8bf2a33266e29118ca8e
2020-05-04 19:45:31 +00:00
Treehugger Robot
8d345978f3 Merge "Add METADATA to libhardware_legacy: Apache2=NOTICE" 2020-05-04 19:37:36 +00:00
Treehugger Robot
dd5a89e9fd Merge "Remove MODULE_LICENSE_APACHE2 from libhardware_legacy" 2020-05-04 19:37:31 +00:00
Bob Badour
2fcc38e175 Add METADATA to libhardware_legacy: Apache2=NOTICE
Bug: 68860345
Bug: 69058154
Bug: 151953481

Test: no code changes
Change-Id: Ic411df7dc27fb93c757ff989c1e056efecb8ee1b
2020-05-01 10:03:37 -07:00
Bob Badour
49a2e9d5a8 Remove MODULE_LICENSE_APACHE2 from libhardware_legacy
Repositories containing third-party code need a METADATA and a
license_type. Repositories containing only first-party code no longer
need a MODULE_LICENSE_* file.

Bug: 68860345
Bug: 69058154
Bug: 151953481

Test: no code changes
Change-Id: I95a3e4f05aab09276311fcc6cc4363eebc4f77f8
2020-04-27 20:45:45 -07:00
Ahmed ElArabawy
22f7050574 Wifi: Add support for mapping DSCP to Wifi AC
This commit adds the needed enum and methods to handle the mapping
of DSCP into wifi access categories.

Bug: 141500691
Bug: 141550272
Test: Manual
Change-Id: If532a6dc34f4a2c61fc4601cb1b83d2fec053ea5
2020-02-19 16:52:07 -08:00
Purushottam Kushwaha
d619c41ebd wifi-hal: Add support for interface create/delete.
This adds new API to create/delete additional interface through
wifi vendor hal.

Bug: 146539882
Bug: 121156971
Test: Basic wifi sanity test.
Signed-off-by: Vinay Gannevaram <quic_vganneva@quicinc.com>
Change-Id: I8d2e4c51a1feedba65c88435cd10f2a8f6541e1b
2020-02-03 22:49:10 -08:00
Kumar Anand
536d0779dc wifi: thermal hal api
global handle instead of interface handle as thermal
mitigation is not interface specific.

Bug: 112471991
Test: atest FrameworksWifiTests
Change-Id: I40b8d85156b7a4561a4ef6db9e4655824c10b5ba
2020-01-23 22:26:06 +00:00
Kumar Anand
c97ac315eb Merge "Wifi: Vendor Hal Thermal Mitigation API" 2020-01-07 22:12:23 +00:00
Kumar Anand
3f3fa98701 Wifi: Vendor Hal Thermal Mitigation API
Bug: 140311866
Test: Manual
Change-Id: I0f546c51fc306540514590f6cd0da1217b893ff9
2020-01-02 14:19:41 -08:00
Ahmed ElArabawy
05ac8776ea Wifi: Remove capability for 6GHz
It was decided to base device capability for support of 6GHz band
on overlay configs rather than HAL capability bitmask.
Hence, this commit removes the 6GHz feature flag.

Bug: 145936758
Bug: 139354972
Test: Manual
Change-Id: I0c72161a31452bd0fab226f9f92f0aa859d3f5e4
2019-12-11 09:08:16 -08:00
Ahmed ElArabawy
45b0a7322a Wifi: Add WLAN_MAC_6_0_BAND to the list of bands
This commit adds to the wlan_mac_band enum, the value for 6 GHz.

Bug: 139354972
Test: Manual
Change-Id: I7679223fd491110a77c1507d2c14fe9c83e62005
2019-12-04 17:58:18 -08:00
Ahmed ElArabawy
1bc3c577ac Use uint64 instead of long for better portability
This commit forces the features and feature_set to be 64 bit
for better portability.

Bug: 144576287
Test: Builds passes successfully
Change-Id: I93c74d9f1802520c9bd0aa7f8f15cec4e30ce2ba
2019-11-15 12:44:45 -08:00