Commit graph

1638 commits

Author SHA1 Message Date
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
Ahmed ElArabawy
a1ce7dc8f0 Wifi: Support check on device capability for 6GHZ
This commit implements support of checking whether device supports 6GHz band.
To accomodate the new feature as well as any future features, feature_set type
was changed from int (32 bits) to long (64 bits).

Bug: 139354972
Test: Manual
Change-Id: If002d8efb854d50af314794926fbdfdc4fb08a5e
2019-11-12 19:04:13 -08:00
Tri Vo
bfd549eb9d Merge "block_suspend: test util to block suspend from shell" am: 52e6536018 am: 89e661c090
am: f2a03b6762

Change-Id: I8648b03fdae989e3db9d0d3492ca9551d9bbf4e1
2019-11-12 14:21:52 -08:00
Tri Vo
f2a03b6762 Merge "block_suspend: test util to block suspend from shell" am: 52e6536018
am: 89e661c090

Change-Id: Ia8108fc5ccf32b957438c3fbc14d87a1015d04ea
2019-11-12 14:17:45 -08:00
Tri Vo
89e661c090 Merge "block_suspend: test util to block suspend from shell"
am: 52e6536018

Change-Id: I58fc561e0bfd7db1b6f4765bf28ce9094e218f63
2019-11-12 14:14:12 -08:00
Tri Vo
52e6536018 Merge "block_suspend: test util to block suspend from shell" 2019-11-12 22:01:53 +00:00
Tri Vo
032365882b block_suspend: test util to block suspend from shell
Bug: 143284916
Test: ./block_suspend; dumpsys suspend_control shows that wakelocks are
created as expected
Change-Id: Ifacb4f476632e0c36f7ec4f59164f91e89faf1f1
2019-11-11 12:32:59 -08:00
Ahmed ElArabawy
063fe291bd Wifi: Add 802.11ax support to RTT
This CL makes modidfication to support Wifi 802.11ax to RTT procedures.
This includes adding support for the 11ax preamble

Bug: 139354972
Test: Manual
Change-Id: I2aca64edcb4bc2ee267db4e4011da246c540a4b8
2019-11-03 00:02:11 -07:00
Xin Li
55e178334e [automerger skipped] DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master am: 3868c63c15
am: fc3970790d -s ours
am skip reason: subject contains skip directive

Change-Id: Ib905a364793b97e2a49c632745a5af2392168f99
2019-10-30 15:38:47 -07:00
Xin Li
fc3970790d DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
am: 3868c63c15

Change-Id: I2d0436edc5b1a8fbba1c9841880601bd8e0eb31b
2019-10-30 15:15:02 -07:00
Xin Li
3868c63c15 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: Icd25c16e736e1f5856b7f276b59f20fa99b1af84
2019-10-30 11:49:27 -07:00
Xin Li
bae8ac9760 [automerger skipped] Merge Coral/Flame into AOSP master am: 0ed99eca92 -s ours am: d784d83f2b -s ours am: fc94ff1e86 -s ours
am: 9d1dd12c34 -s ours
am skip reason: change_id Ife2ba92f4c3c2bad08db288db184ba25bf52e4ad with SHA1 1fd1efbd2e is in history

Change-Id: I9b2979bcdbbfbc78d5ac2da34b5014bb311ed566
2019-10-26 22:37:07 -07:00
Xin Li
9d1dd12c34 [automerger skipped] Merge Coral/Flame into AOSP master am: 0ed99eca92 -s ours am: d784d83f2b -s ours
am: fc94ff1e86 -s ours
am skip reason: change_id Ife2ba92f4c3c2bad08db288db184ba25bf52e4ad with SHA1 1fd1efbd2e is in history

Change-Id: I27db65e7d4587d8a9e6497d7c6eb368fa7425b08
2019-10-26 22:31:09 -07:00
Xin Li
fc94ff1e86 [automerger skipped] Merge Coral/Flame into AOSP master am: 0ed99eca92 -s ours
am: d784d83f2b -s ours
am skip reason: change_id Ife2ba92f4c3c2bad08db288db184ba25bf52e4ad with SHA1 1fd1efbd2e is in history

Change-Id: I70de5e1edfa94765755a99529ae32bfc01467215
2019-10-26 22:24:12 -07:00
Xin Li
d784d83f2b [automerger skipped] Merge Coral/Flame into AOSP master
am: 0ed99eca92 -s ours
am skip reason: change_id Ife2ba92f4c3c2bad08db288db184ba25bf52e4ad with SHA1 1fd1efbd2e is in history

Change-Id: I48408dc078cd0c7e0cd2451a9a3739bcbe9db0f2
2019-10-26 22:07:51 -07:00
Xin Li
0ed99eca92 Merge Coral/Flame into AOSP master
Bug: 141248619
Change-Id: I0a7a391d1cdee18630ca014b0664487e4c06280f
Merged-In: Ife2ba92f4c3c2bad08db288db184ba25bf52e4ad
2019-10-25 10:28:01 -07:00
Xin Li
d0fd97a70b Skip QD1A.190821.011 in stage-aosp-master am: 1fd1efbd2e am: 370369fcc8
am: 16e61163b9

Change-Id: Id9b8cfa9b1d937f229a94f9d32e5e575c9e1166c
2019-10-18 13:28:40 -07:00
Xin Li
16e61163b9 Skip QD1A.190821.011 in stage-aosp-master am: 1fd1efbd2e
am: 370369fcc8

Change-Id: I6a9cb021913015d85fe778c03814ee515d1b02e0
2019-10-18 13:08:24 -07:00