Commit graph

1603 commits

Author SHA1 Message Date
Nate Jiang
6e13599d95 Wifi: Add HAL API and implementation for instant mode filter
Bug: 203220137
Test: pass vts test
Change-Id: I7f4d9d4390ad69bcfdb2419c2e172c4df2d6863b
2022-01-25 14:41:15 -08:00
Nate Jiang
50c001dd21 Wifi: Add support for Wifi Aware 3.1
Bug: 203220137
Test: pass vts test
Change-Id: I576e03b7cb94466c094a7e4ca1714dddd81ddd5f
2022-01-25 14:40:53 -08:00
Sunil Ravi
5955985741 Wifi: API to set the indoor state of device
If set, it indicates that the device is operating
in an indoor environment. When driver receives this
indication, it can safely enable WFD GO operation
on indoor channels.

Bug: 207671411
Test: Manual basic wifi tests

Change-Id: I4cc4c22444f0796c280220534d43c4ae8cae0899
2022-01-25 11:41:55 -08:00
Chris Ye
02c7bb3df9 Get bridged AP interface name from Wifi HAL.
In bridged AP VTS test, need to get the interface name from bridged AP
from Wifi HAL.
As Wifi HAL is still in HIDL interface, need to use HIDL API to obtain
the bridged AP interface name.

Test: atest VtsHalHostapdTargetTest
Bug: 211073349
Change-Id: Ib594877899ff0fe3ef0a7f01fdb169204dff6a74
2022-01-25 19:15:15 +00:00
TreeHugger Robot
a6edb0b76c Merge "wifi: add API for setting roaming consortium selection" 2022-01-25 00:58:24 +00:00
Ahmed ElArabawy
05571e4718 Wifi: Add implementation for vendor HAL for 11be support
This commit adds the implementation for the HAL API changes
to enable 11be support.

Bug: 198746544
Test: Build Succeeds
Test: VTS test
Change-Id: I2d1f296856698951c2c0111200e7c7bf661da132
2022-01-21 14:08:14 -08:00
Ahmed ElArabawy
d73b64ccc5 Wifi: Update wifi vendor hal API with changes for 11be support
This commit adds the required changes for the support of
802.11be (WiFi-7) support to the wifi vendor hal API.

Bug: 198746544
Test: Build Succeeds
Test: VTS test
Change-Id: I1f631aaa247ce4240dd398230b57c7edae55c141
2022-01-21 14:07:02 -08:00
Ahmed ElArabawy
484046eaa8 Merge "WiFi: Basic support for 11be to Supplicant HAL" 2022-01-19 20:08:08 +00:00
Ahmed ElArabawy
9a066e4efe Merge "WiFi: Basic support for 11be to Hostapd HAL" 2022-01-19 20:07:31 +00:00
Ahmed ElArabawy
0cf627aed2 Wifi: Add vendor hal 1.6 to rc and make files
This CL adds ver 1.6 in Android.bp and rc file. Those were missed
when the HAL version was uprev'd to 1.6

Bug: 214108561
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest \
            VtsHalWifiV1_5TargetTest VtsHalWifiNanV1_5TargetTest VtsHalWifiApV1_5TargetTest
Change-Id: I5ce531b92af12b54b4a25548e6fef1198fb23716
2022-01-19 16:38:05 +00:00
Jimmy Chen
a2b862a527 wifi: add API for setting roaming consortium selection
Bug: 210879633
Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: I3eb89065ae7348d34ac09627af16d2d9460c9173
2022-01-19 09:56:30 +08:00
Ahmed ElArabawy
115180e95a WiFi: Basic support for 11be to Supplicant HAL
In this commit, basic support for 11be is added to Supplicant HAL.
That includes adding EHT to list of WifiTechnologies

Bug: 198746544
Test: Build successful
Change-Id: Ied553e502ab2dba9efbcaac80691a6d54195e942
2022-01-18 17:46:49 -08:00
Ahmed ElArabawy
c552b141e3 WiFi: Basic support for 11be to Hostapd HAL
In this commit, basic support for 11be is added to HostApd HAL.
That includes:
1. Adding 320MHz bandwidth channels
2. Adding 11be to list of standards
3. Add a flag to enable/disable 11be for SoftAp

Bug: 198746544
Test: Pass VTS tests, and presubmit tests
Change-Id: I14e1bd8ab00692e743a3a49096fbd66aca806730
2022-01-18 17:29:03 -08:00
Ahmed ElArabawy
640c82d41c Merge "Wifi: Uprev wifi HAL to 1.6" 2022-01-15 18:52:02 +00:00
Gabriel Biren
ece8845ba0 Merge "Update supplicant bitmap comments to clarify that defs.h is a useful reference, but not the main definition for the bitmap values in the interface." am: 7b55e1a302 am: 113255aa5c am: aaed9ba96d am: a691ff43cf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1947191

Change-Id: I1316971ff47df7b647b0b67cb258c4d2b334460c
2022-01-13 23:30:01 +00:00
Gabriel Biren
a691ff43cf Merge "Update supplicant bitmap comments to clarify that defs.h is a useful reference, but not the main definition for the bitmap values in the interface." am: 7b55e1a302 am: 113255aa5c am: aaed9ba96d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1947191

Change-Id: I88bcdc46cfa03ecaa7e3ac3e57617a599ed27bc7
2022-01-13 23:18:14 +00:00
Gabriel Biren
aaed9ba96d Merge "Update supplicant bitmap comments to clarify that defs.h is a useful reference, but not the main definition for the bitmap values in the interface." am: 7b55e1a302 am: 113255aa5c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1947191

Change-Id: Ib9cdf4c0d0d321fdd4dcd58caab1d7f4b19f4d84
2022-01-13 23:01:23 +00:00
Gabriel Biren
7b55e1a302 Merge "Update supplicant bitmap comments to clarify that defs.h is a useful reference, but not the main definition for the bitmap values in the interface." 2022-01-13 22:35:33 +00:00
Gabriel Biren
0d1d1a7d58 Merge "Allow VTS tests to pass on devices without Hostapd AIDL." am: f97801a1c5 am: 81271949c0 am: 72c29327b7 am: a0cfeae37a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1947696

Change-Id: Ic3a17a86f4b0eb1f4aa64676b51b4845f059c65c
2022-01-13 17:34:27 +00:00
Gabriel Biren
a0cfeae37a Merge "Allow VTS tests to pass on devices without Hostapd AIDL." am: f97801a1c5 am: 81271949c0 am: 72c29327b7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1947696

Change-Id: I7631e109f26835d41180ec881782dae3aba1d0bf
2022-01-13 17:20:29 +00:00
Gabriel Biren
72c29327b7 Merge "Allow VTS tests to pass on devices without Hostapd AIDL." am: f97801a1c5 am: 81271949c0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1947696

Change-Id: I45d4dbe9e28bbbaa21e15dda5067968e8089be21
2022-01-13 17:09:32 +00:00
Gabriel Biren
f97801a1c5 Merge "Allow VTS tests to pass on devices without Hostapd AIDL." 2022-01-13 16:34:32 +00:00
Jimmy Chen
2d0a5dc669 Merge "wifi: add certificate HAL callback for Trust On First Use support" 2022-01-13 15:42:45 +00:00
Sunil Ravi
b0a51841f7 Merge "Inform p2p framework about the channel change event" 2022-01-13 01:23:19 +00:00
Gabriel Biren
55c59e2a2d Merge "Allow VTS tests to pass on devices without Supplicant AIDL." am: ac91c7c9dd am: 57aaae7ad5 am: fc12c9d39e am: 64203384b1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1945692

Change-Id: I5272834ecb124da1a3cfeb5a1ca7f79da78fc655
2022-01-12 23:27:55 +00:00
Gabriel Biren
962d5dfa99 Allow VTS tests to pass on devices without Hostapd AIDL.
Bug: 214298597
Test: Run VTS tests on an AOSP build (since AOSP
       is still using the HIDL interface).
Change-Id: I4bd005b5c96570694477a4b45fa5cc790c45be8f
2022-01-12 23:15:17 +00:00
Gabriel Biren
64203384b1 Merge "Allow VTS tests to pass on devices without Supplicant AIDL." am: ac91c7c9dd am: 57aaae7ad5 am: fc12c9d39e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1945692

Change-Id: Ie53860d68503835213260539fe587a184c64f348
2022-01-12 23:14:43 +00:00
Ahmed ElArabawy
687ce13059 Wifi: Uprev wifi HAL to 1.6
This commit uprevs the Wifi vendor HAL to 1.6

Bug: 214108561
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest \
            VtsHalWifiV1_5TargetTest VtsHalWifiNanV1_5TargetTest VtsHalWifiApV1_5TargetTest
Change-Id: I059a5de346e353f7fba1e008ecd9fb4611e66880
2022-01-12 15:10:45 -08:00
Gabriel Biren
fc12c9d39e Merge "Allow VTS tests to pass on devices without Supplicant AIDL." am: ac91c7c9dd am: 57aaae7ad5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1945692

Change-Id: I246a670fa0cfb7a0d0cd26ea390291b1815e75c5
2022-01-12 23:08:29 +00:00
Gabriel Biren
ac91c7c9dd Merge "Allow VTS tests to pass on devices without Supplicant AIDL." 2022-01-12 22:52:18 +00:00
Gabriel Biren
5214086d25 Update supplicant bitmap comments to clarify that
defs.h is a useful reference, but not the main
definition for the bitmap values in the interface.

Bug: 210904141
Test: N/A since only comments were updated
Change-Id: Ib721d6ea0182db50f05ddab10096583481f85413
2022-01-12 22:02:55 +00:00
Gabriel Biren
cc7409e8f9 Allow VTS tests to pass on devices without Supplicant AIDL.
Bug: 212653303
Bug: 212652735
Bug: 212652340
Test: Run VTS tests on an AOSP build (since AOSP
       is still using the HIDL interface).
Change-Id: I442efb35c4c68a1337cacc952c3fdb338ef2615d
2022-01-12 00:46:38 +00:00
Sunil Ravi
189cf702db Inform p2p framework about the channel change event
Added a callback function to indicate that the p2p
operating frequency has been changed.

Bug: 202758240
Test: vts test
Test: Manually triggered channel switch through hostapd command
    and verified the new frequency in logs.
Change-Id: I5814a108c77478cf96bc88f2d8fd8193bd8168be
2022-01-11 12:24:56 -08:00
Serik Beketayev
4d37f69678 [IHostapd] Support vendor-specific AP config elem
Bug: 139204496
Test: mma -j
Change-Id: I7caa7d3b27bca7898d8857bfb841b5466643644e
2022-01-11 10:55:47 -08:00
Treehugger Robot
ebaa020bc2 Merge "Prepares android.hardware.wifi@1.0-service" am: 1303d913f3 am: 5cd48bab29 am: b9f3b6228e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1908491

Change-Id: I80753e5975880530b3999bb03c5b262c095e36e2
2022-01-11 03:08:57 +00:00
Treehugger Robot
b9f3b6228e Merge "Prepares android.hardware.wifi@1.0-service" am: 1303d913f3 am: 5cd48bab29
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1908491

Change-Id: I58b559364e9bd28efcd1bb473350bda45a9ea8c0
2022-01-11 02:24:56 +00:00
Jimmy Chen
faeb133031 wifi: add certificate HAL callback for Trust On First Use support
This API is used to pass the certificate returned from the server to
the framework.

Bug: 196180536
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
            VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: I462008e8b2a0f18824b2886613f300213544c785
2022-01-11 09:57:16 +08:00
Treehugger Robot
1303d913f3 Merge "Prepares android.hardware.wifi@1.0-service" 2022-01-11 01:35:49 +00:00
Treehugger Robot
cdf14d4f4f Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: 782706bd09 am: c63160ed14 am: 2954763f9c am: 3a20cc3f55
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1937409

Change-Id: I887289ee8e9c04e6afc2141c11c9aa08b625ce4b
2022-01-07 02:44:23 +00:00
Treehugger Robot
3a20cc3f55 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: 782706bd09 am: c63160ed14 am: 2954763f9c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1937409

Change-Id: I08bb6e43effb42e79c598a69b71c3a2c4dba183c
2022-01-07 02:24:31 +00:00
Treehugger Robot
2954763f9c Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: 782706bd09 am: c63160ed14
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1937409

Change-Id: I8b285f728ea147127dc8a9764f41f7159076cb2c
2022-01-07 02:00:39 +00:00
TreeHugger Robot
fff8d0e2d9 Merge "Prepares android.hardware.wifi@1.0-service" 2022-01-07 00:01:58 +00:00
Bob Badour
6acef468cc [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  ir/aidl/Android.bp
  ir/aidl/default/Android.bp
  wifi/supplicant/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I6796bb068122811520f911c0376b7f6caecf471c
2022-01-05 11:14:10 -08:00
Sundong Ahn
c5ec034276 Prepares android.hardware.wifi@1.0-service
Prepares android.hardware.wifi@1.0-service for use by a wifi HAL vendor APEX.
- Creates a cc_defaults with soong config vars for @1.0-service and
  @1.0-service lib that customized implementations can override.

Bug: 205065320
Test: m -j with mac80211_hwsim vendor APEX on Cuttlefish
Test: Connect to wifi
Change-Id: I5827ed1ceb9be8278a54fd828249bf8e549fb950
Merged-In: I5827ed1ceb9be8278a54fd828249bf8e549fb950
2022-01-05 05:07:37 +00:00
Etan Cohen
fcf0785d74 Add dummy interface combination for debugging
Add another dummy interface combination to be used for debugging:
  STA+(STA||P2P||NAN||AP)

Bug: 211919010
Test: adb shell setprop persist.vendor.debug.wifi.hal.preset_interface_combination_idx 5
Change-Id: I0499da1d0920ce03fe142f5b0936c6efe0dcf21a
2021-12-30 20:57:51 +00:00
Les Lee
6645e9ea71 wifi: Extend onFailure callback for dual AP case
There are two AP instances when bridged AP is running.
Extend onFailure callback to support if there is a problem one of the instances,
The framework can handle the failure separately. (i.e. No need to
shutdown whole Soft Ap)

Bug: 188921389
Test: Test with test code, the callback works normally.
Change-Id: I0aba5f3c5bf21badd3cf925908c853e9285fa6aa
2021-12-17 15:04:51 +08:00
Gabriel Biren
5f5568d4fc Merge "Add Wifi HAL supplicant AIDL interface definitions." am: a798cf2c63 am: dc3be74728 am: 7b93d69e16 am: edfe1d1472
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1916957

Change-Id: I6ee09e3a6fc7d1c737c6589f49f4b1c7bd29db7f
2021-12-16 21:01:14 +00:00
Gabriel Biren
edfe1d1472 Merge "Add Wifi HAL supplicant AIDL interface definitions." am: a798cf2c63 am: dc3be74728 am: 7b93d69e16
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1916957

Change-Id: I62c90daf1822e00cc3b7a96f50eec09ec81559fd
2021-12-16 18:48:14 +00:00
Gabriel Biren
7b93d69e16 Merge "Add Wifi HAL supplicant AIDL interface definitions." am: a798cf2c63 am: dc3be74728
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1916957

Change-Id: Ida9607319241549e774f41f493c02022870a606a
2021-12-15 22:33:15 +00:00
Gabriel Biren
a798cf2c63 Merge "Add Wifi HAL supplicant AIDL interface definitions." 2021-12-15 21:13:41 +00:00
Gabriel Biren
28a4812752 Add Wifi HAL supplicant AIDL interface definitions.
Converted from android.hardware.wifi.supplicant@1.4 HIDL interface.

Bug: 196235436
Test: m android.hardware.wifi.supplicant-update-api
BYPASS_INCLUSIVE_LANGUAGE_REASON=HE refers to High Efficiency

Change-Id: I9872f297450457c347fb5fe8cf4005b01d3ab1f6
2021-12-14 23:45:07 +00:00
Bob Badour
dc205e077e [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  bluetooth/audio/aidl/Android.bp
  wifi/netlinkinterceptor/aidl/default/Android.bp
  wifi/netlinkinterceptor/libnlinterceptor/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I4c18be830a5c0928d1a58f1e8e52067a2d6db66d
2021-12-09 18:54:17 -08:00
Sundong Ahn
80af4e4465 Prepares android.hardware.wifi@1.0-service
Prepares android.hardware.wifi@1.0-service for use by a wifi HAL vendor APEX.
- Creates a cc_defaults with soong config vars for @1.0-service and
  @1.0-service lib that customized implementations can override.

Bug: 205065320
Test: m -j with mac80211_hwsim vendor APEX on Cuttlefish
Test: Connect to wifi
Change-Id: I5827ed1ceb9be8278a54fd828249bf8e549fb950
2021-12-10 00:19:08 +00:00
Chris Weir
8c42fdd095 Merge changes from topic "iinterceptor"
* changes:
  Add VTS for Netlink Interceptor
  Add default implementation for Nlinterceptor
  Move interceptor AIDL definition
2021-12-09 23:30:19 +00:00
Chris Weir
4669bd35a9 Add VTS for Netlink Interceptor
VTS tests for Netlink Interceptor

BYPASS_INCLUSIVE_LANGUAGE_REASON="dummy" is what Linux uses to refer to
interfaces that are not real or functional. I did not pick this name.

Bug: 201467304
Test: atest VtsHalNetlinkInterceptorV1_0Test

Change-Id: Idb5ad759c9226ddf9e6182213cced750efdbd293
2021-12-02 11:02:21 -08:00
Chris Weir
7b1428f3f3 Add default implementation for Nlinterceptor
Add default Netlink Interceptor implementation

Bug: 201467304
Test: atest VtsHalNetlinkInterceptorV1_0Test

Change-Id: I7c765f9528a3d5be85bf5554e22eae51c1607548
2021-12-02 11:02:12 -08:00
Tomasz Wasilczyk
5f9639673b Match Wi-Fi HAL native code style with rest of HALs.
Bug: 201467304
Test: N/A
Change-Id: Iba03628fa19598c9f4c7f2bf1156ebe69a46c270
2021-12-01 10:11:14 -08:00
Chris Weir
0f4c3218ad Move interceptor AIDL definition
Move Netlink Interceptor AIDL definition to
hardware/interfaces/wifi

Bug: 201467304
Test: atest VtsHalNetlinkInterceptorV1_0Test

Change-Id: Ia6b1d29b2f2cb45f91ab985ed64c44fdc6d54602
2021-11-30 16:47:34 -08:00
Treehugger Robot
3596bc95ea Merge "Wifi: P2P VTS tests fail with no P2P support" am: a4a390c0d9 am: f44059b065 am: 22d7ba9f28
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1892882

Change-Id: If1736fe5f7f44b2ab3ed36bd696f66f7cbb09c44
2021-11-18 22:29:15 +00:00
Treehugger Robot
22d7ba9f28 Merge "Wifi: P2P VTS tests fail with no P2P support" am: a4a390c0d9 am: f44059b065
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1892882

Change-Id: I656eec9ad70552d2805d616964fe2e81597b2daf
2021-11-18 22:05:22 +00:00
Blair Prescott
b676061cd5 Wifi: P2P VTS tests fail with no P2P support
Skip P2P tests if P2P is not supported.

Bug: 200064365
Test: run vts -m VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I6ba23bb27f24700980cab28d1ff806e5efc65ec9
2021-11-18 14:02:19 -08:00
Treehugger Robot
f44059b065 Merge "Wifi: P2P VTS tests fail with no P2P support" am: a4a390c0d9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1892882

Change-Id: Iba6f9e413f5f49cf0bc09ec70339e982dc669ed2
2021-11-18 21:58:54 +00:00
Blair Prescott
7156c06525 Wifi: P2P VTS tests fail with no P2P support
Skip P2P tests if P2P is not supported.

Bug: 200064365
Test: run vts -m VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I6ba23bb27f24700980cab28d1ff806e5efc65ec9
2021-11-15 13:49:21 -08:00
Xin Li
8f6d361f15 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I96a417467346a57b13c2efae12a183d78506afc3
Change-Id: I570a3b599281f519af7a440562c83f8484684fd5
2021-11-10 08:05:55 +00:00
Gabriel Biren
af89a6ac72 Merge "Switch hostapd VTS tests to NDK backend." am: e3f88a32db am: 4c9bacbd20 am: f88f0464fb am: 3795cbf883 am: ab78434023
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1880508

Change-Id: I176080727844713b82efd3c179869510574d610e
2021-11-09 17:23:07 +00:00
Gabriel Biren
ab78434023 Merge "Switch hostapd VTS tests to NDK backend." am: e3f88a32db am: 4c9bacbd20 am: f88f0464fb am: 3795cbf883
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1880508

Change-Id: I2622b9f777971cad3f5440b0274a179bad2c0570
2021-11-09 17:06:32 +00:00
Gabriel Biren
3795cbf883 Merge "Switch hostapd VTS tests to NDK backend." am: e3f88a32db am: 4c9bacbd20 am: f88f0464fb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1880508

Change-Id: I76eac287d9a3144c639edff4bc6d47b0c12726f2
2021-11-09 16:38:28 +00:00
Gabriel Biren
f88f0464fb Merge "Switch hostapd VTS tests to NDK backend." am: e3f88a32db am: 4c9bacbd20
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1880508

Change-Id: Idf7e47cf496d040776433bbb586058a332dd5717
2021-11-09 16:19:36 +00:00
Gabriel Biren
b3eb504848 Switch hostapd VTS tests to NDK backend.
Bug: 204889679
Test: Make and run VtsHalHostapdTargetTest
      m vts -j
      vts-tradefed run commandAndExit vts \
          --module VtsHalHostapdTargetTest
Change-Id: I0fe97b18b83098df6c70a5057576704c4b1f7383
2021-11-03 19:45:39 +00:00
Treehugger Robot
40212f770e Merge "wifi: Add sleep 3 seconds to allow terminate processing in VTS tear down" into android11-tests-dev am: 7618b4cc8b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1554185

Change-Id: Ic922564dffbfdb96b30bcfe3fb9fe8a5934a9c17
2021-10-29 22:23:35 +00:00
Les Lee
b3fba1d7c3 Merge "wifi(vts): Precondition AP tests on existence of hostapd HAL" into sc-v2-dev 2021-10-20 02:04:49 +00:00
Sunil Ravi
6f95834134 Update the p2p device interface name am: 6adbab13ee am: 31902d7b96
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16087108

Change-Id: I643afff58307b3ae73124d0b2e828b8cc5322402
2021-10-20 02:01:30 +00:00
Sunil Ravi
31902d7b96 Update the p2p device interface name am: 6adbab13ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16087108

Change-Id: I7870273f60548e2f8feb63a81eed3899fb73cc3d
2021-10-20 01:34:49 +00:00
Sunil Ravi
b828beb046 Update the p2p device interface name am: 6adbab13ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16087108

Change-Id: I29de6a4bf01101cb32d2aafd8a4dce8fa5f398c0
2021-10-20 01:34:48 +00:00
Sunil Ravi
fbdc9126fa Merge "wifi: Avoid doing iface reset when dynamic MAC update supported" 2021-10-19 23:06:04 +00:00
Yiming Pan
a5be199ef0 Merge "Merge "Update OWNERS for VtsHalWifiSupplicant tests." am: b27df86140 am: ec003365b1 am: b0f892dad1 am: 94a36d98dd am: 429b3a5e2a" 2021-10-19 19:45:03 +00:00
Sunil Ravi
6adbab13ee Update the p2p device interface name
In some implementations P2P device interface is created under
primary interface(wlan0 by default). In those implementations
p2p device name is predefined in system property wifi.direct.interface.
And the interface is created by supplicant with primary interface as
the parent interface. The naming of p2p device interface is
p2p-dev-<parent interface> ("p2p-dev-wlan0").

With STA+STA feature, wlan0 interface gets deleted in certain scenarios
and wlan1 becomes the active interface. In such scenarios P2P fails to
create the interface as parent interface wlan0 is deleted.

To fix the issue update the p2p device interface from system property
based on the current active wlan interface. ie First get the p2p parent
interface name from p2p device interface name set in property.
Check if the parent interface derived from p2p device interface name is
the current active interface. If not, get the current active interface
and update the name as p2p-dev-<ifname> ("p2p-dev-wlan1").
This helps HIDL/supplicant to get an active wlan interface from p2p
device interface name and succeed in creating the p2p interface under the
active interface.

Bug: 203434193

Test: Manual - Tested STA+STA which ended up deleting wlan0 interface.
      Then ran p2p tests and confirmed that p2p scan and connection
      works.
Change-Id: I522cec02a662c057e21d434f3ed98c7e7a4ca8f0
Merged-In: I522cec02a662c057e21d434f3ed98c7e7a4ca8f0
(cherry picked from commit 7f2822aff7)
2021-10-19 18:14:26 +00:00
Sunil Ravi
7f2822aff7 Update the p2p device interface name
In some implementations P2P device interface is created under
primary interface(wlan0 by default). In those implementations
p2p device name is predefined in system property wifi.direct.interface.
And the interface is created by supplicant with primary interface as
the parent interface. The naming of p2p device interface is
p2p-dev-<parent interface> ("p2p-dev-wlan0").

With STA+STA feature, wlan0 interface gets deleted in certain scenarios
and wlan1 becomes the active interface. In such scenarios P2P fails to
create the interface as parent interface wlan0 is deleted.

To fix the issue update the p2p device interface from system property
based on the current active wlan interface. ie First get the p2p parent
interface name from p2p device interface name set in property.
Check if the parent interface derived from p2p device interface name is
the current active interface. If not, get the current active interface
and update the name as p2p-dev-<ifname> ("p2p-dev-wlan1").
This helps HIDL/supplicant to get an active wlan interface from p2p
device interface name and succeed in creating the p2p interface under the
active interface.

Bug: 203434193
Bug: 200810773

Test: Manual - Tested STA+STA which ended up deleting wlan0 interface.
      Then ran p2p tests and confirmed that p2p scan and connection
      works.
Change-Id: I522cec02a662c057e21d434f3ed98c7e7a4ca8f0
2021-10-19 17:50:44 +00:00
TreeHugger Robot
87034011f0 Merge "wifi: extending framework restart waiting time" into sc-v2-dev am: c69d81e5f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16063834

Change-Id: Iaa650b3b3edf214f556fbfd4dbed0cf27bf60ae9
2021-10-19 17:23:15 +00:00
TreeHugger Robot
c69d81e5f3 Merge "wifi: extending framework restart waiting time" into sc-v2-dev 2021-10-19 17:06:10 +00:00
Treehugger Robot
48875f0472 Merge "Update OWNERS for VtsHalWifiSupplicant tests." am: b27df86140 am: ec003365b1 am: b0f892dad1 am: 94a36d98dd am: 429b3a5e2a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793006

Change-Id: Id41c654bb4c034e87e407e6a306aedb68a3131e5
Bug: 203478278
2021-10-19 17:01:25 +00:00
Treehugger Robot
429b3a5e2a Merge "Update OWNERS for VtsHalWifiSupplicant tests." am: b27df86140 am: ec003365b1 am: b0f892dad1 am: 94a36d98dd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793006

Change-Id: Ibf77e0f0ecea71289f4bc5e41b67ee4d2944f3ce
2021-10-19 01:57:36 +00:00
Treehugger Robot
94a36d98dd Merge "Update OWNERS for VtsHalWifiSupplicant tests." am: b27df86140 am: ec003365b1 am: b0f892dad1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793006

Change-Id: Ic2a2695bea4a3e251b23e0f9a85c41395787a58a
2021-10-19 01:42:37 +00:00
Treehugger Robot
b0f892dad1 Merge "Update OWNERS for VtsHalWifiSupplicant tests." am: b27df86140 am: ec003365b1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793006

Change-Id: I4abc372f26d69454b8f7fb9c16429d094891c2bf
2021-10-19 01:29:26 +00:00
Treehugger Robot
b27df86140 Merge "Update OWNERS for VtsHalWifiSupplicant tests." 2021-10-19 00:55:03 +00:00
Roshan Pius
5e9ec95556 wifi: remove disable_framework option to pass the stopWifiFramework procedure am: 9c4930dfd9
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16063833

Change-Id: I4efeb8d3cc6e61dbc0b595285448c3e615b531ac
2021-10-18 05:27:02 +00:00
Jimmy Chen
01c2259e19 wifi: extending framework restart waiting time
10s is not enough for low-end devices, extending waiting time to
avoid false alarm for low-end devices.

Bug: 201184673
Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I9baa53a462b97738e6dc471cf06c2b9230b92c1c
(cherry picked from commit ef3f77f831)
2021-10-18 03:08:50 +00:00
Roshan Pius
9c4930dfd9 wifi: remove disable_framework option to pass the stopWifiFramework procedure
Stopping entire framework can cause other essential services to be
stopped. When wifi is stopped, it does not interact with any of the
wifi HAL's.

Bug: 201266536
Bug: 201184673
Test: atest --iterations 10 \
    VtsHalWifiSupplicantV1_0TargetTest \
    VtsHalWifiSupplicantV1_1TargetTest \
    VtsHalWifiSupplicantV1_2TargetTest \
    VtsHalWifiSupplicantV1_3TargetTest \
    VtsHalWifiSupplicantV1_4TargetTest \
    VtsHalWifiSupplicantP2pV1_0TargetTest \
    VtsHalWifiSupplicantP2pV1_2TargetTest \
    VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: Ia4a38c2e942681f323cf76941713c429e14870cc
(cherry picked from commit 3a5858a711)
2021-10-18 03:08:32 +00:00
Treehugger Robot
7e169d4274 Merge changes I5b58a75f,I07d9c70a into android12-tests-dev
* changes:
  wifi: extending framework restart waiting time
  wifi: remove disable_framework option to pass the stopWifiFramework procedure
2021-10-16 00:26:30 +00:00
Roshan Pius
76a58eefbf wifi(vts): Precondition AP tests on existence of hostapd HAL am: 274eadd581 am: facaf07418 am: 1c0b3ad440 am: 3ce226c8a9 am: 2c7810f622
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1857796

Change-Id: I491d422d7317a658da6274d588186f0242677b32
2021-10-15 08:37:34 +00:00
Roshan Pius
3ce226c8a9 wifi(vts): Precondition AP tests on existence of hostapd HAL am: 274eadd581 am: facaf07418 am: 1c0b3ad440
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1857796

Change-Id: I110bc87b44969847dc5dbcc3b778053247a2bc10
2021-10-15 08:05:21 +00:00
Roshan Pius
1c0b3ad440 wifi(vts): Precondition AP tests on existence of hostapd HAL am: 274eadd581 am: facaf07418
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1857796

Change-Id: Ib7e1c296a8768bda9a910851333c5e241d847089
2021-10-15 07:47:03 +00:00
Roshan Pius
82b41e6af9 wifi(vts): Precondition AP tests on existence of hostapd HAL
cp: aosp/1428863 to sc-v2-dev branch as b/202788915 mentioned

This used to be present on the old host side VTS tests, port the feature to
target side since host side VTS tests are deprecated.

Also,
i) Added a separate test: VtsHalWifiV1_4TargetTest to test the wifi
chip methods. Putting them in VtsHalWifiApV1_4TargetTest will prevent
these from running on devices without AP feature.
ii) Ensured all the non-NAN, non-RTT tests disable framework for
testing. NAN/RTT tests uses framework to check if the corresponding
package manager feature exists.

Bug: 166529516
Bug: 202788915
Test: atest \
VtsHalWifiApV1_0TargetTest \
VtsHalWifiApV1_4TargetTest \
VtsHalWifiV1_0TargetTest \
VtsHalWifiV1_4TargetTest

Change-Id: I05aab6992277601633a0f926a8262c4c27402e93
Merged-In: I05aab6992277601633a0f926a8262c4c27402e93
2021-10-15 15:22:49 +08:00
Jimmy Chen
81683c706f Merge "wifi: add wifi TL to vts owners" 2021-10-15 06:23:47 +00:00
Roshan Pius
274eadd581 wifi(vts): Precondition AP tests on existence of hostapd HAL
cp: aosp/1428863 to master branch

This used to be present on the old host side VTS tests, port the feature to
target side since host side VTS tests are deprecated.

Also,
i) Added a separate test: VtsHalWifiV1_4TargetTest to test the wifi
chip methods. Putting them in VtsHalWifiApV1_4TargetTest will prevent
these from running on devices without AP feature.
ii) Ensured all the non-NAN, non-RTT tests disable framework for
testing. NAN/RTT tests uses framework to check if the corresponding
package manager feature exists.

Bug: 166529516
Test: atest \
VtsHalWifiApV1_0TargetTest \
VtsHalWifiApV1_4TargetTest \
VtsHalWifiV1_0TargetTest \
VtsHalWifiV1_4TargetTest

Change-Id: I05aab6992277601633a0f926a8262c4c27402e93
2021-10-15 09:48:23 +08:00
Treehugger Robot
14598118e4 Merge "Backfill owner information for VtsHalWifi tests." am: 1caa761eeb am: 850ae76c91 am: bd41ebd041 am: db0de71976 am: eddf3fc3c6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1856688

Change-Id: Ia0a98b4dfd11330fddbf1d5e37a4ddc1edc18d68
2021-10-14 22:27:56 +00:00
Treehugger Robot
db0de71976 Merge "Backfill owner information for VtsHalWifi tests." am: 1caa761eeb am: 850ae76c91 am: bd41ebd041
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1856688

Change-Id: I535a4b631c20c465e3db6fe0d9f0b67e4fa95396
2021-10-14 22:09:26 +00:00
Treehugger Robot
bd41ebd041 Merge "Backfill owner information for VtsHalWifi tests." am: 1caa761eeb am: 850ae76c91
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1856688

Change-Id: Ie0c66bd0f589f6ae556466f7838419166e86e679
2021-10-14 22:01:36 +00:00
Treehugger Robot
1caa761eeb Merge "Backfill owner information for VtsHalWifi tests." 2021-10-14 21:34:00 +00:00
Treehugger Robot
110dc0a708 Merge "Revert "wifi: remove wifi instance name string check"" into android11-tests-dev am: c6a10ed866
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1435415

Change-Id: I6ebb7c6b84b45832a07dd43c198bee9ffbcfca3b
2021-10-14 21:11:32 +00:00
Veerendranath Jakkam
fce46f4642 wifi: Avoid doing iface reset when dynamic MAC update supported
Skip doing iface reset(down and up) to change MAC address if driver
indicates support for WIFI_FEATURE_DYNAMIC_SET_MAC.

Bug: 202424223
Test: atest VtsHalWifiV1_5TargetTest
Test: Manual - Connect STA to AP and check random mac is set
Change-Id: I86cf86e20893759a4e926571727943e4ee51d093
2021-10-14 12:59:29 -07:00
Yiming Pan
90a97607a2 Backfill owner information for VtsHalWifi tests.
Done for the following tests:
VtsHalWifiApV1_0TargetTest
VtsHalWifiApV1_4TargetTest
VtsHalWifiApV1_5TargetTest
VtsHalWifiNanV1_0TargetTest
VtsHalWifiNanV1_2TargetTest
VtsHalWifiV1_0TargetTest
VtsHalWifiV1_1TargetTest
VtsHalWifiV1_2TargetTest
VtsHalWifiV1_3TargetTest
VtsHalWifiV1_4TargetTest
VtsHalWifiV1_5TargetTest
VtsHalWifiOffloadV1_0TargetTest

Each VTS module is required to have an OWNERS file. The ownership is based on
go/vts-owners. For more information about ownership policy, please visit
go/xts-owners-policy.

Test: Tree Hugger
Bug: 143903671
Change-Id: I4acdb9a3f7a81f078e4c60d7892a72a16f7ae9d2
2021-10-14 11:25:14 -07:00
Yiming Pan
683a4841bd Update OWNERS for VtsHalWifiSupplicant tests.
This is done for the following test modules:
VtsHalWifiSupplicantP2pV1_0TargetTest
VtsHalWifiSupplicantP2pV1_2TargetTest
VtsHalWifiSupplicantV1_0TargetTest
VtsHalWifiSupplicantV1_1TargetTest
VtsHalWifiSupplicantV1_2TargetTest
VtsHalWifiSupplicantV1_3TargetTest
VtsHalWifiSupplicantV1_4TargetTest

Test: Tree Hugger
Bug: 143903671
Change-Id: Ia2259c6d62223317f5d5c5aee8ae55655972180b
2021-10-14 18:10:04 +00:00
Treehugger Robot
0e50f5a36a Merge "Add a bug component for VtsHalWifiHostapd tests." am: 1c71faa2f2 am: af6f2a06fc am: 62a8263456 am: f97b9d7c1d am: 2cbf4903fa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793004

Change-Id: If7f68cc16b7140008d657f0044dc4bc50da7fa61
2021-10-14 05:33:04 +00:00
Treehugger Robot
f97b9d7c1d Merge "Add a bug component for VtsHalWifiHostapd tests." am: 1c71faa2f2 am: af6f2a06fc am: 62a8263456
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793004

Change-Id: I888734ea36f322650b7c46b12397dfea33fc7162
2021-10-14 05:09:52 +00:00
Treehugger Robot
62a8263456 Merge "Add a bug component for VtsHalWifiHostapd tests." am: 1c71faa2f2 am: af6f2a06fc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1793004

Change-Id: I70223d414f015293472e1311ac14400999fd4832
2021-10-14 04:59:35 +00:00
Yiming Pan
507b4604bb Add a bug component for VtsHalWifiHostapd tests.
This is done for the following test modules:
VtsHalWifiHostapdV1_0TargetTest
VtsHalWifiHostapdV1_1TargetTest

Test: Tree Hugger
Bug: 143903671
Change-Id: I26b7981e340ac2fc9009f8741fc9e415d1a3c8f0
2021-10-13 15:18:51 -07:00
Jimmy Chen
dc36dd38b6 wifi: extending framework restart waiting time
10s is not enough for low-end devices, extending waiting time to
avoid false alarm for low-end devices.

Bug: 201184673
Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I5b58a75fb20cbb65402785ba05355349f91fcd2b
2021-10-12 15:57:09 +08:00
Jimmy Chen
c76afc950f wifi: remove disable_framework option to pass the stopWifiFramework procedure
Stopping entire framework can cause other essential services to be
stopped. When wifi is stopped, it does not interact with any of the
wifi HAL's.

Bug: 201266536
Bug: 201184673
Test: atest --iterations 10 \
    VtsHalWifiSupplicantV1_0TargetTest \
    VtsHalWifiSupplicantV1_1TargetTest \
    VtsHalWifiSupplicantV1_2TargetTest \
    VtsHalWifiSupplicantV1_3TargetTest \
    VtsHalWifiSupplicantV1_4TargetTest \
    VtsHalWifiSupplicantP2pV1_0TargetTest \
    VtsHalWifiSupplicantP2pV1_2TargetTest \
    VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I07d9c70a50eb9558f05a915a4c0f26d721a104ac
2021-10-12 15:55:47 +08:00
Treehugger Robot
b946269dcd Merge "wifi(vts): Precondition AP tests on existence of hostapd HAL" into android11-tests-dev am: 0cd6bffb74
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1428863

Change-Id: Icda7f2ac0c099ea23b49183dcdeec1adbb44c105
2021-10-12 04:09:06 +00:00
TreeHugger Robot
f763d677c4 Merge "wifi: extending framework restart waiting time" 2021-10-11 15:59:17 +00:00
Treehugger Robot
b96c79b79e Merge "wifi: remove wifi instance name string check" into android11-tests-dev am: 70047281b5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1427817

Change-Id: I66fb9f41b4915b1d6a18a2cd1b510665bf17e86d
2021-10-11 15:42:38 +00:00
Jimmy Chen
4427c39c89 wifi: add wifi TL to vts owners
1.0 and 1.1 do not have OWNERS files.

Bug: 0
Test: N/A
Change-Id: I5682f68124af9087851d8f9885ee9fe2523ee25e
2021-10-11 22:32:37 +08:00
TreeHugger Robot
7e30d84d51 Merge "WIFI: Add log to debug onSubsystemRestart" into sc-qpr1-dev am: 8169c932e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15988967

Change-Id: I96a417467346a57b13c2efae12a183d78506afc3
2021-10-09 23:21:43 +00:00
chenpaul
69c3c22603 WIFI: Add log to debug onSubsystemRestart
onSubsystemRestart should be triggered by wifi HAL
when subsystem restart happened.

Add log to debug why this callback function was not trigger at
unexpected corner case.

Bug: 201330066
Test: Manual test
Change-Id: I160adc6006d078fcc72c1768927e87e378fd675e
Merged-In: I160adc6006d078fcc72c1768927e87e378fd675e
2021-10-08 20:56:37 +00:00
chenpaul
2fa7d52177 WIFI: Add log to debug onSubsystemRestart
onSubsystemRestart should be triggered by wifi HAL
when subsystem restart happened.

Add log to debug why this callback function was not trigger at
unexpected corner case.

Bug: 201330066
Test: Manual test
Change-Id: I160adc6006d078fcc72c1768927e87e378fd675e
2021-10-08 01:37:55 +00:00
Jimmy Chen
bb8087bee9 Merge "wifi: remove disable_framework option to pass the stopWifiFramework procedure" 2021-10-02 15:18:59 +00:00
Roshan Pius
3a5858a711 wifi: remove disable_framework option to pass the stopWifiFramework procedure
Stopping entire framework can cause other essential services to be
stopped. When wifi is stopped, it does not interact with any of the
wifi HAL's.

Bug: 201266536
Bug: 201184673
Test: atest --iterations 10 \
    VtsHalWifiSupplicantV1_0TargetTest \
    VtsHalWifiSupplicantV1_1TargetTest \
    VtsHalWifiSupplicantV1_2TargetTest \
    VtsHalWifiSupplicantV1_3TargetTest \
    VtsHalWifiSupplicantV1_4TargetTest \
    VtsHalWifiSupplicantP2pV1_0TargetTest \
    VtsHalWifiSupplicantP2pV1_2TargetTest \
    VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: Ia4a38c2e942681f323cf76941713c429e14870cc
2021-10-01 13:54:40 +08:00
TreeHugger Robot
2bf74b8c0a Merge "p2p: skip p2p test if p2p is not supported" 2021-10-01 03:30:02 +00:00
Jimmy Chen
ef3f77f831 wifi: extending framework restart waiting time
10s is not enough for low-end devices, extending waiting time to
avoid false alarm for low-end devices.

Bug: 201184673
Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I9baa53a462b97738e6dc471cf06c2b9230b92c1c
2021-09-30 05:02:44 +00:00
Jimmy Chen
c484e5b627 p2p: skip p2p test if p2p is not supported
Bug: 200064365
Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: Id35b36108a012ca1adace7c6ce87ec31813fba91
2021-09-24 15:19:26 +08:00
TreeHugger Robot
f25cfb3bd3 Merge "Fix VtsHalWifiSupplicantV1_3TargetTest fail" into stage-aosp-sc-ts-dev am: 3dedd1a0fe am: dc8303b4ae am: 3fba8288a4
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15847170

Change-Id: I1dc7bd03e1041aa9853372d95a90a534460447df
2021-09-17 23:44:52 +00:00
Roshan Pius
65c2c300ab vts(wifi): Stop wifi fully instead of stopping framework am: 874239047a am: 356437d474 am: 666e59d77f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15847168

Change-Id: Ifefebe8fee8a55293bbf15095d70af11d9001ed5
2021-09-17 23:44:51 +00:00
TreeHugger Robot
09a3f19711 Merge "Fix VtsHalWifiSupplicantV1_3TargetTest fail" into stage-aosp-sc-ts-dev am: 3dedd1a0fe am: dc8303b4ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15847170

Change-Id: I4d04523646e2a801b6aeebdd9c58eb805d55781f
2021-09-17 23:31:58 +00:00
Roshan Pius
eff16962db vts(wifi): Stop wifi fully instead of stopping framework am: 874239047a am: 356437d474
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/15847168

Change-Id: Id0ff57dbbe32367a1b27d8b88ed9f324c361babe
2021-09-17 23:31:57 +00:00
TreeHugger Robot
3dedd1a0fe Merge "Fix VtsHalWifiSupplicantV1_3TargetTest fail" into stage-aosp-sc-ts-dev 2021-09-17 23:05:25 +00:00
henry-th.yeh
12ab21813b Fix VtsHalWifiSupplicantV1_3TargetTest fail
Remove disable_framework option to pass the
stopWifiFramework procedure.

Bug: 173081502
Bug: 199444489
Test: Build VTS
Test: run vts -m VtsHalWifiSupplicantV1_3TargetTest
-t PerInstance/SupplicantStaIfaceHidlTest#RegisterC
allback_1_3/default_default_0 --abi armeabi-v7a

Change-Id: I6813905b6c804c1c93ea59db9d8c255c2f7c45d9
2021-09-16 21:15:16 +00:00
Roshan Pius
874239047a vts(wifi): Stop wifi fully instead of stopping framework
Stopping entire framework can cause other essential services to be
stopped. When wifi is stopped, it does not interact with any of the
wifi HAL's.

Bug: 168278011
Bug: 199444489
Test: atest --iterations 10
VtsHalWifiSupplicantP2pV1_0TargetTest
VtsHalWifiSupplicantP2pV1_1TargetTest
VtsHalWifiSupplicantP2pV1_2TargetTest
VtsHalWifiSupplicantP2pV1_3TargetTest
Change-Id: Ia93e78cf4c147e42dd3d68e24a582c0c1af15899
2021-09-16 21:15:01 +00:00
Treehugger Robot
09d0934bcb Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: 60ac26c3e0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1822478

Change-Id: I479d92e02e2bcf14194aee5b2506c51b0a2f2b10
2021-09-09 20:44:48 +00:00
Bob Badour
8ad43c4e7a [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  wifi/hostapd/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I0178f1f02cee7046256a3e4425e5c1fbabe6da85
2021-09-08 14:04:16 -07:00
Linzhao Ye
279105a643 Merge "Add Wifi HAL hostapd AIDL interface definitions." am: 7218fea0eb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1811377

Change-Id: Ib9671d914729a0494d3483e46a47fa79da1fd83e
2021-09-07 17:35:53 +00:00
Chris Ye
d13f7b5495 Add Wifi HAL hostapd AIDL interface definitions.
Add AIDL version of Wifi HAL hostapd interfaces, converted from
android.hardware.wifi.hostapd@1.3 HIDL interfaces.

Bug: 194806512
Test: m android.hardware.wifi.hostapd-update-api
Change-Id: I1035f8bc9171e59967448fa438f2cc79ad53c066
2021-09-01 23:17:16 -07:00
Prabir Pradhan
2dd55590fd Undefine NAN after including it in Looper.h
Looper.h needs to include the header for unordered_map, which itself
includes math.h, which defines the macro NAN. Some HALs use enums called
NAN, which causes a build error if the NAN macro is defined. We need to
undef NAN in these cases after including Looper.h.

Bug: 195020232
Test: presubmit: checkbuild
Merged-In: I63bba8ea809a12571ddc88cd1d20f2adeedf0b30
Change-Id: I63bba8ea809a12571ddc88cd1d20f2adeedf0b30
(cherry picked from commit dda604440b)
(cherry picked from commit 84a19f64f5)
2021-08-27 11:04:36 +00:00
Prabir Pradhan
b99a3ccddf Undefine NAN after including it in Looper.h
Looper.h needs to include the header for unordered_map, which itself
includes math.h, which defines the macro NAN. Some HALs use enums called
NAN, which causes a build error if the NAN macro is defined. We need to
undef NAN in these cases after including Looper.h.

Bug: 195020232
Test: presubmit: checkbuild
Merged-In: I63bba8ea809a12571ddc88cd1d20f2adeedf0b30
Change-Id: I63bba8ea809a12571ddc88cd1d20f2adeedf0b30
2021-08-18 10:24:55 -07:00
Jimmy Chen
237a6ea5ea wifi: use 1.4 ISupplicant object for 1.4 vts tests
This would ensure that 1.4 vts tests are run with
ISupplicant 1.4 support.

Bug: 194979754
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: Ifaa3e1bb27f1df350b83fb7a4c05b6251a7c2d10
2021-08-05 11:32:17 +08:00
Oscar Shu
45cb33bf7a Merge "Clear ringbuffer after dumping to file" into sc-dev 2021-07-12 16:48:43 +00:00
xshu
c905ea66d4 Clear ringbuffer after dumping to file
Clear the in-memory ringbuffer after writing to file.

Bug: 193007899
Test: Manually verified ringbuffers are cleared with command "adb shell
lshal debug android.hardware.wifi@1.5::IWifi"

Change-Id: Icfa08634e948d7155e231458edd394a4d699fbaa
2021-07-11 22:39:29 -07:00
Les Lee
53bd75df19 Merge "WIFI: Set MAC address for bridged interface" into sc-dev 2021-07-02 09:43:13 +00:00
Les Lee
da9f5fe137 WIFI: Set MAC address for bridged interface
The MAC address of the bridged interface will be dynamically generated
by kernel when any bridged iface is changed. This means that the
bridged interface MAC address will be changed when we remove one of the
instances from the bridged interface (shutdown unused interface case).
The MAC change will break operation of bpf and it may cause the SAP
client to send wrong ns packets because the tethering module is
still using the old MAC in the ra packet.

Always set MAC address so the bridged interface can avoid MAC changing.

Bug: 191611764
Bug: 192315721
Test: Manual test with IPv6 tethering. Make sure client won't disconnect
because it doesn't get na response.
Test: Manual test in two scenarios: 1. MAC randomization 2. reset to factory MAC.

Change-Id: I854fc74b6532824b7d7b5a1aa4bc20a3cf9fd588
2021-07-02 12:05:57 +08:00
Jimmy Chen
f5a84a2322 wifi: add 1.5 HIDL service in lazy rc
1.5 HIDL service is not declared in lazy init rc.

Bug: 191940153
Test: atest VtsHalBaseV1_0TargetTest
Change-Id: Idc4d01e9696c35c8fc2390a2639ff8d7ebf0bbf0
2021-07-01 16:26:06 +08:00
Les Lee
03d642f6d9 wifi: Update active iface when bridged AP instance down
The active interface need to be updated when any of interface changecd.

Also fix the local cache bridged_ap_instances value incorrect
when erasing.

Bug: 191625124
Test: Manual check property "wifi.active.interface" after wlan2 down
Test: Manual test with command "halutil -sar enable 0" after wlan2 down
Change-Id: I40150c231313505ca355228e711c2448088f41ad
2021-06-21 17:05:07 +00:00
Ahmed ElArabawy
7e8409bb51 WiFi: Modify OWNERS files
Replace kumaranand@ with arabawy@ in OWNERS files

Bug: 191158491
Test: None
Change-Id: I585e95449e0aafdaa9687b363af0418032f41dfa
2021-06-15 10:20:29 -07:00
Jonathan Reichert
de90f67120 Merge "Fix SetCountryCode test when US is not supported" am: 2585f44a6e am: 931a68b2e5 am: b6deacd959
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1662343

Change-Id: Ic21d2b3131ad4e5b610835de4efa29a6e5baf00b
2021-04-22 13:42:15 +00:00
Jimmy Chen
2906d566ec Merge "wifi: correct WPA cipher GCMP-128 bit" into sc-dev 2021-04-18 06:22:40 +00:00
TreeHugger Robot
9a66d724f1 Merge "Wifi: Add argument "WifiHandle" in "wifi_set_subsystem_restart_handler"" into sc-dev 2021-04-16 01:18:41 +00:00
Jimmy Chen
b2da76d64b wifi: correct WPA cipher GCMP-128 bit
Bug: 185202617
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I78fb68d0a4c046759592ceed7089a58c5ea69064
2021-04-14 10:18:17 +08:00
David Su
95e37e1dd8 Merge "Wifi HAL Multi STA: Clarify behavior during single STA" into sc-dev 2021-04-13 19:23:42 +00:00
Hassen KETATNI
521e69e069 Fix SetCountryCode test when US is not supported
SupplicantStaIfaceHidlTest.SetCountryCode(default,default)_32bit fails
when US countrycode is not supported on the device. The test will
read the value of "ro.boot.wificountrycode" and set it to the
countrycode. When the property is not defined on the device, US will
be set by default.

Bug: SupplicantStaIfaceHidlTest.SetCountryCode(default,default)_32bit fails
Bug id https://issuetracker.google.com/182296217
Test: Module VtsHalWifiSupplicantV1_0Host passes successfully

Change-Id: Iec2991223c6857d65b2ecc4337e920d5b823dd3d
Signed-off-by: Hassen KETATNI <hassen.ketatni@sagemcom.com>
2021-04-13 09:28:20 +00:00
David Su
8baf600058 Wifi HAL Multi STA: Clarify behavior during single STA
Firmware should maintain the last set multi STA
use case & primary connection across periods of
single STA.

Bug: 183861582
Test: compiles
Change-Id: Iab7b9298216a90ddcd792aec794266c9edb397fa
2021-04-12 11:56:17 -07:00
Roshan Pius
f10451b8fc hal(wifi): Replace rpius@ with kumaranand@ in OWNERS
Bug: 184966495
Test: N/A
Change-Id: Ib4cc2cc8479317b987edcdbcce0de4f699720cc3
2021-04-09 12:51:00 -07:00
chenpaul
9d432bd3fc Wifi: Add argument "WifiHandle" in "wifi_set_subsystem_restart_handler"
Bug: 178126071
Bug: 183483123
Test: vendor HAL can received API call
Change-Id: If9f4f25dcb5e63b43cf098e410aad308fb4edae6
2021-03-30 14:08:38 +08:00
Sunil Ravi
806f09f112 Merge "Wifi: Add Radio ID in radiostats" into sc-dev 2021-03-24 06:36:20 +00:00
Les Lee
a42f20168d Merge "wifi: Correct document for SAP 11AX mode" into sc-dev 2021-03-24 01:11:55 +00:00
lesl
a2f3e4bab9 wifi: Correct document for SAP 11AX mode
Current hostapd doesn't support mode: HOSTAPD_MODE_IEEE80211AX.
Using he_capabilies->he_supported to identify if the current mode is
AX.
BYPASS_INCLUSIVE_LANGUAGE_REASON : The HE is a abbreviation
which is High-Efficiency.

Bug: 162484222
Test: Enable SAP on P21 (supported AX) and check the wifistandard is
AX mode.
BYPASS_INCLUSIVE_LANGUAGE_REASON=The HE is a abbreviation
which is High-Efficiency.
Change-Id: I1f40f2e2e5a0d1a862810d19899a6d968d8c29b2
2021-03-24 01:10:53 +00:00
Sunil Ravi
83f7907233 Wifi: Add Radio ID in radiostats
Get the radio id from link layer radio stats
to framework.

Bug: 163103321
Test: VTS test - VtsHalWifiV1_5TargetTest
Change-Id: I6958a5b78798edf8529032cd255c61ba6a442633
2021-03-22 17:52:54 -07:00
chenpaul
c6f570378b Add API "startSubsystemRestart" and callback function
In order to trigger subsystem restart to reload wlan firmware,
this change adds an API for framework and vendor HAL.
Meanwhile, create new callback function for subsystem restart instead of
 general callback "onFailure()".

Bug: 178126071
Test: vendor HAL can received API call
      subsystem restart will callback "onSubsystemRestart()"

Change-Id: If3dc84049a9171677ad281c9bcc67a44dc722bdb
2021-03-20 09:29:46 +08:00
chenpaul
b690fb822e Uprev IWifiEventCallback.hal to 1.5
Bug: 178126071
Test: atest VtsHalWifiV1_5TargetTest
      wifi basic function is workable
Change-Id: I5f1897b6d4190d80eaf25eccea04ccfdbe4884c7
2021-03-19 15:21:29 +08:00
TreeHugger Robot
c7e7546d20 Merge "wifi: Add unit for API doc." into sc-dev 2021-03-17 06:38:45 +00:00
Kumar Anand
ea0d50167b Wifi: Invalid bandwidth crash handling
Treat WIFI_CHAN_WIDTH_INVALID(-1) and any other unknown
bandwidth value as invalid.

Bug: 182850702
Test: VTS - VtsHalWifiV1_5TargetTest
Change-Id: Id25d50af9283b89f135a4f36e1f696f6db4e302e
2021-03-16 12:17:47 -07:00
Jimmy Chen
d7fcfd7795 Merge "wifi: Add WFD R2 HAL API" into sc-dev 2021-03-12 06:11:19 +00:00
Mingguang Xu
a2d1efb403 Merge "WiFi: Get peer information (BSS load and rate statistics) from link layer stats" into sc-dev 2021-03-11 19:23:48 +00:00
Jimmy Chen
e162c6cd3f wifi: Add WFD R2 HAL API
Bug: 179342930
Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I1c991fc6c3698eab1a32f728e9d71323a0103b21
2021-03-12 01:11:53 +08:00
Roshan Pius
72a30a0f99 Merge "wifi: Wait for driver ready and bring up the interface when setMacAddress fails" into sc-dev 2021-03-11 01:27:40 +00:00
lesl
ed3d8cb87f wifi: Add unit for API doc.
Bug: 181603380
Bug: 181246414
Test: Manual Test. SAP works normally.
Change-Id: If06849ea5ae8a8ffa95abdb8f2d3f2ea337338ab
2021-03-10 02:20:35 +00:00
Mingguang Xu
41242be732 WiFi: Get peer information (BSS load and rate statistics) from link layer stats
Bug: 177069641

Test: atest VtsHalWifiV1_5TargetTest

Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: I3373d065a3b04d86f52d5bffe28d5581746cef4a
2021-03-09 12:28:32 -08:00
TreeHugger Robot
2cc3611879 Merge "wifi: change H2E mode API arguemnt to tri-state enumeration" into sc-dev 2021-03-09 05:08:36 +00:00
Jimmy Chen
52d0565fc1 Merge "wifi: add comment for SAE_PK capability" into sc-dev 2021-03-03 19:13:21 +00:00
Roshan Pius
8c1a67b7af wifi: Wait for driver ready and bring up the interface when setMacAddress fails
setMacAddress may fail in some scenarios like SSR inprogress. In such
case framework is not bringing up the iface again if it was brought down
to set random MAC address. Due to this subsequent operations like scans
are failing with "Network Down" error and Wi-Fi can't recover until
Wi-Fi restarts. To avoid this bring up the iface irrespective of
setMacAddress status.

Modified the original CL to move the WifiIfaceUtil creation to inside
Wifi object since that is where the legacy HAL instance is created for
the corresponding chip. This helps keeping the setMacAddress logic still
inside WifiIfaceUtil. Modified the iface_util lifetime - no longer a
singleton, one instance created per wifi chip instance.

Bug: 174183763
Test: Wifi can be enabled when back-to-back SSR and wifi on
Change-Id: I926b59f5da126aba222e05d1e570c0c19de739ed
2021-03-03 09:00:00 -08:00
Jimmy Chen
1fd7bc3283 wifi: change H2E mode API arguemnt to tri-state enumeration
Bug: 180532458
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: Ibba7bf26e7bbe45cadc45c0e68d9fd56f4034923
2021-03-03 13:13:44 +08:00
Jimmy Chen
b471a062f9 wifi: add comment for SAE_PK capability
Bug: 181603483
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: If66f1ad0b3c44190beacb48c988c47fe8767bfee
2021-03-02 16:03:11 +08:00
TreeHugger Robot
4f8dbd55b0 Merge "Wifi: Change the type from long to int for contention time statistics" into sc-dev 2021-03-02 07:57:13 +00:00
Mingguang Xu
bfb5adeff0 Wifi: Change the type from long to int for contention time statistics
Bug: 172412545

Test: atest com.android.server.wifi

Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: I7d64013c63a38b85d4b0ea37cdc260a19049bfce
2021-02-24 23:04:00 -08:00
TreeHugger Robot
1c3453c344 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" into sc-dev 2021-02-24 14:18:27 +00:00
Bob Badour
c22b35bf04 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  atrace/1.0/Android.bp
  atrace/1.0/default/Android.bp
  atrace/1.0/vts/functional/Android.bp
  audio/2.0/Android.bp
  audio/2.0/config/Android.bp
  audio/4.0/Android.bp
  audio/4.0/config/Android.bp
  audio/5.0/Android.bp
  audio/5.0/config/Android.bp
  audio/6.0/Android.bp
  audio/6.0/config/Android.bp
  audio/7.0/Android.bp
  audio/7.0/config/Android.bp
  audio/common/2.0/Android.bp
  audio/common/4.0/Android.bp
  audio/common/5.0/Android.bp
  audio/common/6.0/Android.bp
  audio/common/7.0/Android.bp
  audio/common/7.0/example/Android.bp
  audio/common/all-versions/default/Android.bp
  audio/common/all-versions/default/service/Android.bp
  audio/common/all-versions/test/utility/Android.bp
  audio/common/all-versions/util/Android.bp
  audio/core/all-versions/default/Android.bp
  audio/core/all-versions/default/util/Android.bp
  audio/core/all-versions/vts/functional/Android.bp
  audio/effect/2.0/Android.bp
  audio/effect/2.0/xml/Android.bp
  audio/effect/4.0/Android.bp
  audio/effect/4.0/xml/Android.bp
  audio/effect/5.0/Android.bp
  audio/effect/5.0/xml/Android.bp
  audio/effect/6.0/Android.bp
  audio/effect/6.0/xml/Android.bp
  audio/effect/7.0/Android.bp
  audio/effect/7.0/xml/Android.bp
  audio/effect/all-versions/default/Android.bp
  audio/effect/all-versions/default/util/Android.bp
  audio/effect/all-versions/vts/functional/Android.bp
  audio/policy/1.0/vts/functional/Android.bp
  audio/policy/1.0/xml/Android.bp
  audio/policy/1.0/xml/pfw_schemas/Android.bp
  authsecret/1.0/Android.bp
  authsecret/1.0/default/Android.bp
  authsecret/1.0/vts/functional/Android.bp
  authsecret/aidl/Android.bp
  authsecret/aidl/default/Android.bp
  authsecret/aidl/vts/Android.bp
  automotive/audiocontrol/1.0/Android.bp
  automotive/audiocontrol/1.0/default/Android.bp
  automotive/audiocontrol/1.0/vts/functional/Android.bp
  automotive/audiocontrol/2.0/Android.bp
  automotive/audiocontrol/2.0/default/Android.bp
  automotive/audiocontrol/2.0/vts/functional/Android.bp
  automotive/audiocontrol/aidl/Android.bp
  automotive/audiocontrol/aidl/default/Android.bp
  automotive/audiocontrol/aidl/vts/Android.bp
  automotive/can/1.0/default/libnetdevice/Android.bp
  automotive/can/1.0/default/libnl++/Android.bp
  automotive/can/1.0/hidl-utils/Android.bp
  automotive/can/1.0/tools/Android.bp
  automotive/can/1.0/tools/configurator/Android.bp
  automotive/can/1.0/tools/configurator/proto/Android.bp
  automotive/can/1.0/tools/libcanhaltools/Android.bp
  automotive/can/1.0/vts/functional/Android.bp
  automotive/can/1.0/vts/utils/Android.bp
  automotive/evs/1.0/Android.bp
  automotive/evs/1.0/default/Android.bp
  automotive/evs/1.0/vts/functional/Android.bp
  automotive/evs/1.1/Android.bp
  automotive/evs/1.1/default/Android.bp
  automotive/evs/1.1/vts/functional/Android.bp
  automotive/evs/1.1/vts/fuzzing/Android.bp
  automotive/evs/common/utils/default/Android.bp
  automotive/evs/common/utils/default/test/fuzz/Android.bp
  automotive/occupant_awareness/aidl/Android.bp
  automotive/occupant_awareness/aidl/default/Android.bp
  automotive/occupant_awareness/aidl/mock/Android.bp
  automotive/occupant_awareness/aidl/vts/functional/Android.bp
  automotive/sv/1.0/Android.bp
  automotive/sv/1.0/default/Android.bp
  automotive/sv/1.0/vts/functional/Android.bp
  automotive/vehicle/2.0/Android.bp
  automotive/vehicle/2.0/default/Android.bp
  automotive/vehicle/2.0/default/impl/vhal_v2_0/proto/Android.bp
  automotive/vehicle/2.0/utils/Android.bp
  biometrics/common/aidl/Android.bp
  biometrics/face/1.0/Android.bp
  biometrics/face/1.0/default/Android.bp
  biometrics/face/1.0/vts/functional/Android.bp
  biometrics/face/aidl/Android.bp
  biometrics/face/aidl/default/Android.bp
  biometrics/face/aidl/vts/Android.bp
  biometrics/fingerprint/2.1/Android.bp
  biometrics/fingerprint/2.1/default/Android.bp
  biometrics/fingerprint/2.1/vts/functional/Android.bp
  biometrics/fingerprint/2.2/Android.bp
  biometrics/fingerprint/2.2/default/Android.bp
  biometrics/fingerprint/2.2/vts/functional/Android.bp
  biometrics/fingerprint/2.3/Android.bp
  biometrics/fingerprint/2.3/vts/functional/Android.bp
  biometrics/fingerprint/aidl/Android.bp
  biometrics/fingerprint/aidl/default/Android.bp
  biometrics/fingerprint/aidl/vts/Android.bp
  bluetooth/1.0/Android.bp
  bluetooth/1.0/default/Android.bp
  bluetooth/1.0/vts/functional/Android.bp
  bluetooth/1.1/Android.bp
  bluetooth/1.1/default/Android.bp
  bluetooth/1.1/vts/functional/Android.bp
  bluetooth/a2dp/1.0/Android.bp
  bluetooth/a2dp/1.0/default/Android.bp
  bluetooth/a2dp/1.0/vts/functional/Android.bp
  bluetooth/audio/2.0/Android.bp
  bluetooth/audio/2.0/default/Android.bp
  bluetooth/audio/2.0/vts/functional/Android.bp
  bluetooth/audio/2.1/Android.bp
  bluetooth/audio/2.1/default/Android.bp
  bluetooth/audio/2.1/vts/functional/Android.bp
  bluetooth/audio/utils/Android.bp
  boot/1.0/Android.bp
  boot/1.0/default/Android.bp
  boot/1.0/vts/functional/Android.bp
  boot/1.1/Android.bp
  boot/1.1/default/Android.bp
  boot/1.1/default/boot_control/Android.bp
  boot/1.1/vts/functional/Android.bp
  boot/1.2/Android.bp
  boot/1.2/default/Android.bp
  boot/1.2/vts/functional/Android.bp
  broadcastradio/1.0/Android.bp
  broadcastradio/1.0/default/Android.bp
  broadcastradio/1.0/vts/functional/Android.bp
  broadcastradio/1.1/Android.bp
  broadcastradio/1.1/default/Android.bp
  broadcastradio/1.1/vts/functional/Android.bp
  broadcastradio/2.0/Android.bp
  broadcastradio/2.0/default/Android.bp
  broadcastradio/2.0/vts/functional/Android.bp
  broadcastradio/common/tests/Android.bp
  broadcastradio/common/utils/Android.bp
  broadcastradio/common/utils1x/Android.bp
  broadcastradio/common/utils2x/Android.bp
  broadcastradio/common/vts/utils/Android.bp
  camera/common/1.0/Android.bp
  camera/common/1.0/default/Android.bp
  camera/device/1.0/Android.bp
  camera/device/1.0/default/Android.bp
  camera/device/3.2/Android.bp
  camera/device/3.2/default/Android.bp
  camera/device/3.3/Android.bp
  camera/device/3.3/default/Android.bp
  camera/device/3.4/Android.bp
  camera/device/3.4/default/Android.bp
  camera/device/3.5/Android.bp
  camera/device/3.5/default/Android.bp
  camera/device/3.6/Android.bp
  camera/device/3.6/default/Android.bp
  camera/metadata/3.2/Android.bp
  camera/metadata/3.3/Android.bp
  camera/metadata/3.4/Android.bp
  camera/metadata/3.5/Android.bp
  camera/metadata/3.6/Android.bp
  camera/provider/2.4/Android.bp
  camera/provider/2.4/default/Android.bp
  camera/provider/2.4/vts/functional/Android.bp
  camera/provider/2.5/Android.bp
  camera/provider/2.5/default/Android.bp
  camera/provider/2.6/Android.bp
  cas/1.0/Android.bp
  cas/1.0/default/Android.bp
  cas/1.0/vts/functional/Android.bp
  cas/1.1/Android.bp
  cas/1.1/default/Android.bp
  cas/1.1/vts/functional/Android.bp
  cas/1.2/Android.bp
  cas/1.2/default/Android.bp
  cas/1.2/vts/functional/Android.bp
  cas/native/1.0/Android.bp
  common/aidl/Android.bp
  common/fmq/aidl/Android.bp
  common/support/Android.bp
  compatibility_matrices/Android.bp
  compatibility_matrices/Android.mk
  compatibility_matrices/build/Android.bp
  compatibility_matrices/exclude/Android.bp
  configstore/1.0/Android.bp
  configstore/1.0/vts/functional/Android.bp
  configstore/1.1/Android.bp
  configstore/1.1/default/Android.mk
  configstore/utils/Android.bp
  confirmationui/1.0/Android.bp
  confirmationui/1.0/default/Android.bp
  confirmationui/1.0/vts/functional/Android.bp
  confirmationui/support/Android.bp
  contexthub/1.0/Android.bp
  contexthub/1.0/default/Android.bp
  contexthub/1.0/vts/functional/Android.bp
  contexthub/1.1/Android.bp
  contexthub/1.1/default/Android.bp
  contexthub/1.1/vts/functional/Android.bp
  contexthub/1.2/Android.bp
  contexthub/1.2/default/Android.bp
  contexthub/1.2/vts/functional/Android.bp
  contexthub/common/default/1.X/Android.bp
  contexthub/common/default/1.X/utils/Android.bp
  contexthub/common/vts/Android.bp
  drm/1.0/Android.bp
  drm/1.0/default/Android.bp
  drm/1.0/vts/functional/Android.bp
  drm/1.1/Android.bp
  drm/1.1/vts/functional/Android.bp
  drm/1.2/Android.bp
  drm/1.2/vts/functional/Android.bp
  drm/1.3/Android.bp
  drm/1.3/vts/functional/Android.bp
  drm/1.4/Android.bp
  drm/1.4/vts/functional/Android.bp
  dumpstate/1.0/Android.bp
  dumpstate/1.0/default/Android.bp
  dumpstate/1.0/vts/functional/Android.bp
  dumpstate/1.1/Android.bp
  dumpstate/1.1/default/Android.bp
  dumpstate/1.1/vts/functional/Android.bp
  fastboot/1.0/Android.bp
  fastboot/1.0/default/Android.bp
  fastboot/1.1/Android.bp
  fastboot/1.1/default/Android.bp
  gatekeeper/1.0/Android.bp
  gatekeeper/1.0/default/Android.bp
  gatekeeper/1.0/software/Android.bp
  gatekeeper/1.0/software/tests/Android.bp
  gatekeeper/1.0/vts/functional/Android.bp
  gnss/1.0/Android.bp
  gnss/1.0/default/Android.bp
  gnss/1.0/vts/functional/Android.bp
  gnss/1.1/Android.bp
  gnss/1.1/default/Android.bp
  gnss/1.1/vts/functional/Android.bp
  gnss/2.0/Android.bp
  gnss/2.0/default/Android.bp
  gnss/2.0/vts/functional/Android.bp
  gnss/2.1/Android.bp
  gnss/2.1/default/Android.bp
  gnss/2.1/vts/functional/Android.bp
  gnss/aidl/Android.bp
  gnss/aidl/default/Android.bp
  gnss/aidl/vts/Android.bp
  gnss/common/utils/default/Android.bp
  gnss/common/utils/vts/Android.bp
  gnss/measurement_corrections/1.0/Android.bp
  gnss/measurement_corrections/1.1/Android.bp
  gnss/visibility_control/1.0/Android.bp
  graphics/allocator/2.0/Android.bp
  graphics/allocator/2.0/default/Android.bp
  graphics/allocator/2.0/utils/gralloc1-adapter/Android.bp
  graphics/allocator/2.0/utils/hal/Android.bp
  graphics/allocator/2.0/utils/passthrough/Android.bp
  graphics/allocator/3.0/Android.bp
  graphics/allocator/4.0/Android.bp
  graphics/bufferqueue/1.0/Android.bp
  graphics/bufferqueue/2.0/Android.bp
  graphics/common/1.0/Android.bp
  graphics/common/1.1/Android.bp
  graphics/common/1.2/Android.bp
  graphics/common/aidl/Android.bp
  graphics/composer/2.1/Android.bp
  graphics/composer/2.1/default/Android.bp
  graphics/composer/2.1/utils/command-buffer/Android.bp
  graphics/composer/2.1/utils/hal/Android.bp
  graphics/composer/2.1/utils/hwc2on1adapter/Android.bp
  graphics/composer/2.1/utils/hwc2onfbadapter/Android.bp
  graphics/composer/2.1/utils/passthrough/Android.bp
  graphics/composer/2.1/utils/resources/Android.bp
  graphics/composer/2.1/utils/vts/Android.bp
  graphics/composer/2.1/vts/functional/Android.bp
  graphics/composer/2.2/Android.bp
  graphics/composer/2.2/default/Android.mk
  graphics/composer/2.2/utils/command-buffer/Android.bp
  graphics/composer/2.2/utils/hal/Android.bp
  graphics/composer/2.2/utils/passthrough/Android.bp
  graphics/composer/2.2/utils/resources/Android.bp
  graphics/composer/2.2/utils/vts/Android.bp
  graphics/composer/2.2/vts/functional/Android.bp
  graphics/composer/2.3/Android.bp
  graphics/composer/2.3/default/Android.bp
  graphics/composer/2.3/utils/command-buffer/Android.bp
  graphics/composer/2.3/utils/hal/Android.bp
  graphics/composer/2.3/utils/passthrough/Android.bp
  graphics/composer/2.3/utils/vts/Android.bp
  graphics/composer/2.3/vts/functional/Android.bp
  graphics/composer/2.4/Android.bp
  graphics/composer/2.4/default/Android.bp
  graphics/composer/2.4/utils/command-buffer/Android.bp
  graphics/composer/2.4/utils/hal/Android.bp
  graphics/composer/2.4/utils/passthrough/Android.bp
  graphics/composer/2.4/utils/vts/Android.bp
  graphics/composer/2.4/vts/functional/Android.bp
  graphics/mapper/2.0/Android.bp
  graphics/mapper/2.0/default/Android.bp
  graphics/mapper/2.0/utils/hal/Android.bp
  graphics/mapper/2.0/utils/passthrough/Android.bp
  graphics/mapper/2.0/utils/vts/Android.bp
  graphics/mapper/2.0/vts/functional/Android.bp
  graphics/mapper/2.1/Android.bp
  graphics/mapper/2.1/default/Android.bp
  graphics/mapper/2.1/utils/hal/Android.bp
  graphics/mapper/2.1/utils/passthrough/Android.bp
  graphics/mapper/2.1/utils/vts/Android.bp
  graphics/mapper/2.1/vts/functional/Android.bp
  graphics/mapper/3.0/Android.bp
  graphics/mapper/3.0/utils/vts/Android.bp
  graphics/mapper/3.0/vts/functional/Android.bp
  graphics/mapper/4.0/Android.bp
  graphics/mapper/4.0/utils/vts/Android.bp
  graphics/mapper/4.0/vts/functional/Android.bp
  health/1.0/Android.bp
  health/1.0/default/Android.bp
  health/2.0/Android.bp
  health/2.0/default/Android.bp
  health/2.0/utils/libhealthhalutils/Android.bp
  health/2.0/utils/libhealthservice/Android.bp
  health/2.0/utils/libhealthstoragedefault/Android.bp
  health/2.0/vts/functional/Android.bp
  health/2.1/Android.bp
  health/2.1/default/Android.bp
  health/2.1/vts/functional/Android.bp
  health/storage/1.0/Android.bp
  health/storage/1.0/default/Android.bp
  health/storage/1.0/vts/functional/Android.bp
  health/storage/aidl/Android.bp
  health/storage/aidl/default/Android.bp
  health/storage/aidl/vts/functional/Android.bp
  health/storage/impl_common/Android.bp
  health/storage/test_common/Android.bp
  health/utils/libhealth2impl/Android.bp
  health/utils/libhealthloop/Android.bp
  identity/aidl/Android.bp
  identity/aidl/default/Android.bp
  identity/aidl/vts/Android.bp
  identity/support/Android.bp
  input/classifier/1.0/Android.bp
  input/classifier/1.0/default/Android.bp
  input/classifier/1.0/vts/functional/Android.bp
  input/common/1.0/Android.bp
  ir/1.0/Android.bp
  ir/1.0/default/Android.bp
  ir/1.0/vts/functional/Android.bp
  keymaster/3.0/Android.bp
  keymaster/3.0/default/Android.mk
  keymaster/3.0/vts/functional/Android.bp
  keymaster/4.0/Android.bp
  keymaster/4.0/default/Android.bp
  keymaster/4.0/support/Android.bp
  keymaster/4.0/vts/functional/Android.bp
  keymaster/4.0/vts/performance/Android.bp
  keymaster/4.1/Android.bp
  keymaster/4.1/default/Android.bp
  keymaster/4.1/support/Android.bp
  keymaster/4.1/vts/functional/Android.bp
  keymaster/aidl/Android.bp
  light/2.0/Android.bp
  light/2.0/default/Android.bp
  light/2.0/vts/functional/Android.bp
  light/aidl/Android.bp
  light/aidl/default/Android.bp
  light/aidl/vts/functional/Android.bp
  light/utils/Android.bp
  media/1.0/Android.bp
  media/1.0/xml/Android.mk
  media/Android.bp
  media/bufferpool/1.0/Android.bp
  media/bufferpool/2.0/Android.bp
  media/c2/1.0/Android.bp
  media/c2/1.1/Android.bp
  media/omx/1.0/Android.bp
  media/omx/1.0/vts/functional/audio/Android.bp
  media/omx/1.0/vts/functional/common/Android.bp
  media/omx/1.0/vts/functional/component/Android.bp
  media/omx/1.0/vts/functional/store/Android.bp
  media/omx/1.0/vts/functional/video/Android.bp
  memtrack/1.0/Android.bp
  memtrack/1.0/default/Android.bp
  memtrack/1.0/vts/functional/Android.bp
  memtrack/aidl/Android.bp
  memtrack/aidl/default/Android.bp
  memtrack/aidl/vts/Android.bp
  neuralnetworks/1.0/Android.bp
  neuralnetworks/1.0/utils/Android.bp
  neuralnetworks/1.0/vts/functional/Android.bp
  neuralnetworks/1.1/Android.bp
  neuralnetworks/1.1/utils/Android.bp
  neuralnetworks/1.1/vts/functional/Android.bp
  neuralnetworks/1.2/Android.bp
  neuralnetworks/1.2/utils/Android.bp
  neuralnetworks/1.2/vts/functional/Android.bp
  neuralnetworks/1.3/Android.bp
  neuralnetworks/1.3/utils/Android.bp
  neuralnetworks/1.3/vts/functional/Android.bp
  neuralnetworks/aidl/Android.bp
  neuralnetworks/aidl/utils/Android.bp
  neuralnetworks/aidl/vts/functional/Android.bp
  neuralnetworks/utils/common/Android.bp
  neuralnetworks/utils/service/Android.bp
  nfc/1.0/Android.bp
  nfc/1.0/default/Android.bp
  nfc/1.0/vts/functional/Android.bp
  nfc/1.1/Android.bp
  nfc/1.1/vts/functional/Android.bp
  nfc/1.2/Android.bp
  nfc/1.2/vts/functional/Android.bp
  oemlock/1.0/Android.bp
  oemlock/1.0/vts/functional/Android.bp
  oemlock/aidl/Android.bp
  oemlock/aidl/default/Android.bp
  oemlock/aidl/vts/Android.bp
  power/1.0/Android.bp
  power/1.0/default/Android.bp
  power/1.0/vts/functional/Android.bp
  power/1.1/Android.bp
  power/1.1/vts/functional/Android.bp
  power/1.2/Android.bp
  power/1.2/vts/functional/Android.bp
  power/1.3/Android.bp
  power/1.3/vts/functional/Android.bp
  power/aidl/Android.bp
  power/aidl/default/Android.bp
  power/aidl/vts/Android.bp
  power/stats/1.0/Android.bp
  power/stats/1.0/default/Android.bp
  power/stats/1.0/vts/functional/Android.bp
  power/stats/aidl/Android.bp
  power/stats/aidl/default/Android.bp
  power/stats/aidl/vts/Android.bp
  radio/1.0/Android.bp
  radio/1.0/vts/functional/Android.bp
  radio/1.1/Android.bp
  radio/1.1/vts/functional/Android.bp
  radio/1.2/Android.bp
  radio/1.2/default/Android.bp
  radio/1.2/vts/functional/Android.bp
  radio/1.3/Android.bp
  radio/1.3/vts/functional/Android.bp
  radio/1.4/Android.bp
  radio/1.4/vts/functional/Android.bp
  radio/1.5/Android.bp
  radio/1.5/vts/functional/Android.bp
  radio/1.6/Android.bp
  radio/1.6/vts/functional/Android.bp
  radio/config/1.0/Android.bp
  radio/config/1.0/default/Android.bp
  radio/config/1.0/vts/functional/Android.bp
  radio/config/1.1/Android.bp
  radio/config/1.1/vts/functional/Android.bp
  radio/config/1.2/Android.bp
  radio/config/1.2/vts/functional/Android.bp
  radio/config/1.3/Android.bp
  radio/config/1.3/vts/functional/Android.bp
  radio/deprecated/1.0/Android.bp
  rebootescrow/aidl/Android.bp
  rebootescrow/aidl/default/Android.bp
  rebootescrow/aidl/vts/functional/Android.bp
  renderscript/1.0/Android.bp
  renderscript/1.0/default/Android.bp
  renderscript/1.0/vts/functional/Android.bp
  secure_element/1.0/Android.bp
  secure_element/1.0/vts/functional/Android.bp
  secure_element/1.1/Android.bp
  secure_element/1.1/vts/functional/Android.bp
  secure_element/1.2/Android.bp
  secure_element/1.2/vts/functional/Android.bp
  security/keymint/aidl/Android.bp
  security/keymint/aidl/default/Android.bp
  security/keymint/aidl/vts/functional/Android.bp
  security/keymint/aidl/vts/performance/Android.bp
  security/keymint/support/Android.bp
  security/secureclock/aidl/Android.bp
  security/secureclock/aidl/vts/functional/Android.bp
  security/sharedsecret/aidl/Android.bp
  security/sharedsecret/aidl/vts/functional/Android.bp
  sensors/1.0/Android.bp
  sensors/1.0/default/Android.bp
  sensors/1.0/vts/functional/Android.bp
  sensors/2.0/Android.bp
  sensors/2.0/default/Android.bp
  sensors/2.0/multihal/Android.bp
  sensors/2.0/vts/functional/Android.bp
  sensors/2.1/Android.bp
  sensors/2.1/default/Android.bp
  sensors/2.1/multihal/Android.bp
  sensors/2.1/vts/functional/Android.bp
  sensors/common/default/2.X/Android.bp
  sensors/common/default/2.X/multihal/Android.bp
  sensors/common/default/2.X/multihal/tests/Android.bp
  sensors/common/utils/Android.bp
  sensors/common/vts/2_X/Android.bp
  sensors/common/vts/utils/Android.bp
  soundtrigger/2.0/Android.bp
  soundtrigger/2.0/default/Android.bp
  soundtrigger/2.0/default/Android.mk
  soundtrigger/2.0/vts/functional/Android.bp
  soundtrigger/2.1/Android.bp
  soundtrigger/2.1/default/Android.mk
  soundtrigger/2.1/vts/functional/Android.bp
  soundtrigger/2.2/Android.bp
  soundtrigger/2.2/default/Android.bp
  soundtrigger/2.2/vts/functional/Android.bp
  soundtrigger/2.3/Android.bp
  soundtrigger/2.3/default/Android.bp
  soundtrigger/2.3/vts/functional/Android.bp
  tests/bar/1.0/Android.bp
  tests/bar/1.0/default/Android.bp
  tests/baz/1.0/Android.bp
  tests/baz/1.0/default/Android.bp
  tests/expression/1.0/Android.bp
  tests/extension/light/2.0/Android.bp
  tests/extension/light/2.0/default/Android.bp
  tests/extension/vibrator/aidl/Android.bp
  tests/extension/vibrator/aidl/client/Android.bp
  tests/extension/vibrator/aidl/default/Android.bp
  tests/foo/1.0/Android.bp
  tests/foo/1.0/default/Android.bp
  tests/foo/1.0/default/lib/Android.bp
  tests/hash/1.0/Android.bp
  tests/hash/1.0/default/Android.bp
  tests/inheritance/1.0/Android.bp
  tests/inheritance/1.0/default/Android.bp
  tests/lazy/1.0/Android.bp
  tests/lazy/1.1/Android.bp
  tests/libhwbinder/1.0/Android.bp
  tests/libhwbinder/1.0/default/Android.bp
  tests/libhwbinder/aidl/Android.bp
  tests/memory/1.0/Android.bp
  tests/memory/1.0/default/Android.bp
  tests/memory/2.0/Android.bp
  tests/msgq/1.0/Android.bp
  tests/msgq/1.0/default/Android.bp
  tests/multithread/1.0/Android.bp
  tests/multithread/1.0/default/Android.bp
  tests/safeunion/1.0/Android.bp
  tests/safeunion/1.0/default/Android.bp
  tests/safeunion/cpp/1.0/Android.bp
  tests/safeunion/cpp/1.0/default/Android.bp
  tests/trie/1.0/Android.bp
  tests/trie/1.0/default/Android.bp
  tetheroffload/config/1.0/Android.bp
  tetheroffload/config/1.0/vts/functional/Android.bp
  tetheroffload/control/1.0/Android.bp
  tetheroffload/control/1.0/vts/functional/Android.bp
  tetheroffload/control/1.1/Android.bp
  tetheroffload/control/1.1/vts/functional/Android.bp
  thermal/1.0/Android.bp
  thermal/1.0/default/Android.bp
  thermal/1.0/vts/functional/Android.bp
  thermal/1.1/Android.bp
  thermal/1.1/vts/functional/Android.bp
  thermal/2.0/Android.bp
  thermal/2.0/default/Android.bp
  thermal/2.0/vts/functional/Android.bp
  tv/cec/1.0/Android.bp
  tv/cec/1.0/default/Android.bp
  tv/cec/1.1/Android.bp
  tv/cec/1.1/default/Android.bp
  tv/cec/1.1/vts/functional/Android.bp
  tv/input/1.0/Android.bp
  tv/input/1.0/default/Android.bp
  tv/input/1.0/vts/functional/Android.bp
  tv/tuner/1.0/Android.bp
  tv/tuner/1.0/default/Android.bp
  tv/tuner/1.0/vts/functional/Android.bp
  tv/tuner/1.1/Android.bp
  tv/tuner/1.1/default/Android.bp
  tv/tuner/1.1/vts/functional/Android.bp
  tv/tuner/assets/Android.bp
  usb/1.0/Android.bp
  usb/1.0/default/Android.bp
  usb/1.0/vts/functional/Android.bp
  usb/1.1/Android.bp
  usb/1.1/vts/functional/Android.bp
  usb/1.2/Android.bp
  usb/1.2/vts/functional/Android.bp
  usb/1.3/Android.bp
  usb/1.3/vts/functional/Android.bp
  usb/gadget/1.0/Android.bp
  usb/gadget/1.1/Android.bp
  usb/gadget/1.1/default/Android.bp
  usb/gadget/1.1/default/lib/Android.bp
  usb/gadget/1.2/Android.bp
  usb/gadget/1.2/default/Android.bp
  usb/gadget/1.2/default/lib/Android.bp
  vibrator/1.0/Android.bp
  vibrator/1.0/default/Android.bp
  vibrator/1.0/vts/functional/Android.bp
  vibrator/1.1/Android.bp
  vibrator/1.1/vts/functional/Android.bp
  vibrator/1.2/Android.bp
  vibrator/1.2/vts/functional/Android.bp
  vibrator/1.3/Android.bp
  vibrator/1.3/example/Android.bp
  vibrator/1.3/vts/functional/Android.bp
  vibrator/aidl/Android.bp
  vibrator/aidl/default/Android.bp
  vibrator/aidl/vts/Android.bp
  vibrator/bench/Android.bp
  vr/1.0/Android.bp
  vr/1.0/default/Android.bp
  vr/1.0/vts/functional/Android.bp
  weaver/1.0/Android.bp
  weaver/1.0/vts/functional/Android.bp
  weaver/aidl/Android.bp
  weaver/aidl/default/Android.bp
  weaver/aidl/vts/Android.bp
  wifi/1.0/Android.bp
  wifi/1.0/vts/functional/Android.bp
  wifi/1.1/Android.bp
  wifi/1.1/vts/functional/Android.bp
  wifi/1.2/Android.bp
  wifi/1.2/vts/functional/Android.bp
  wifi/1.3/Android.bp
  wifi/1.3/vts/functional/Android.bp
  wifi/1.4/Android.bp
  wifi/1.4/vts/functional/Android.bp
  wifi/1.5/Android.bp
  wifi/1.5/default/Android.mk
  wifi/1.5/vts/functional/Android.bp
  wifi/hostapd/1.0/Android.bp
  wifi/hostapd/1.0/vts/functional/Android.bp
  wifi/hostapd/1.1/Android.bp
  wifi/hostapd/1.1/vts/functional/Android.bp
  wifi/hostapd/1.2/Android.bp
  wifi/hostapd/1.2/vts/functional/Android.bp
  wifi/hostapd/1.3/Android.bp
  wifi/hostapd/1.3/vts/functional/Android.bp
  wifi/offload/1.0/Android.bp
  wifi/offload/1.0/vts/functional/Android.bp
  wifi/supplicant/1.0/Android.bp
  wifi/supplicant/1.0/vts/functional/Android.bp
  wifi/supplicant/1.1/Android.bp
  wifi/supplicant/1.1/vts/functional/Android.bp
  wifi/supplicant/1.2/Android.bp
  wifi/supplicant/1.2/vts/functional/Android.bp
  wifi/supplicant/1.3/Android.bp
  wifi/supplicant/1.3/vts/functional/Android.bp
  wifi/supplicant/1.4/Android.bp
  wifi/supplicant/1.4/vts/functional/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-NCSA to:
  Android.bp
  automotive/can/1.0/Android.bp
  automotive/can/1.0/default/Android.bp

Added SPDX-license-identifier-NCSA to:
  automotive/can/1.0/default/libc++fs/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: If5e9ac8023cdc10d2370d16e7dd75a4bbb7085aa
2021-02-23 14:26:20 -08:00
Mingguang Xu
56ce3287a2 Merge "WiFi: Get contention time stats from wifi_wmm_ac_stat in link_layer_stats" into sc-dev 2021-02-23 19:22:00 +00:00
TreeHugger Robot
f2137a93e4 Merge "resolve merge conflicts of 5c715dd65b to sc-dev" into sc-dev 2021-02-23 06:59:56 +00:00
TreeHugger Robot
d66a7e373b Merge "[WifiCoex] Fix VTS test for implemented hal" into sc-dev 2021-02-23 05:42:37 +00:00
Mingguang Xu
a6d0b847db WiFi: Get contention time stats from wifi_wmm_ac_stat in link_layer_stats
Bug: 172412545

Test: atest VtsHalWifiV1_5TargetTest

Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: Iab7ae64f55d2b3a2a654492f7566c8df2671c230
2021-02-22 16:33:09 -08:00
Quang Luong
4f05f7c2de [WifiCoex] Fix VTS test for implemented hal
Fix coex VTS test by configuring chip for sta iface before invoking the
coex hal api.

Bug: 177929636
Test: atest VtsHalWifiV1_5TargetTest
Change-Id: I5ead53e603a2136e3c8b2d931c512e6d337f4ba7
2021-02-22 11:13:54 -08:00
Bob Badour
564733607c resolve merge conflicts of 5c715dd65b to sc-dev
Change-Id: Ie3809f388a44d735303118366331679aa63a5944
2021-02-22 15:58:32 +00:00
Bob Badour
b224b363de [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  atrace/1.0/Android.bp
  atrace/1.0/default/Android.bp
  atrace/1.0/vts/functional/Android.bp
  audio/2.0/Android.bp
  audio/2.0/config/Android.bp
  audio/4.0/Android.bp
  audio/4.0/config/Android.bp
  audio/5.0/Android.bp
  audio/5.0/config/Android.bp
  audio/6.0/Android.bp
  audio/6.0/config/Android.bp
  audio/7.0/Android.bp
  audio/7.0/config/Android.bp
  audio/common/2.0/Android.bp
  audio/common/4.0/Android.bp
  audio/common/5.0/Android.bp
  audio/common/6.0/Android.bp
  audio/common/7.0/Android.bp
  audio/common/7.0/example/Android.bp
  audio/common/all-versions/default/Android.bp
  audio/common/all-versions/default/service/Android.bp
  audio/common/all-versions/test/utility/Android.bp
  audio/common/all-versions/util/Android.bp
  audio/core/all-versions/default/Android.bp
  audio/core/all-versions/default/util/Android.bp
  audio/core/all-versions/vts/functional/Android.bp
  audio/effect/2.0/Android.bp
  audio/effect/2.0/xml/Android.bp
  audio/effect/4.0/Android.bp
  audio/effect/4.0/xml/Android.bp
  audio/effect/5.0/Android.bp
  audio/effect/5.0/xml/Android.bp
  audio/effect/6.0/Android.bp
  audio/effect/6.0/xml/Android.bp
  audio/effect/7.0/Android.bp
  audio/effect/7.0/xml/Android.bp
  audio/effect/all-versions/default/Android.bp
  audio/effect/all-versions/default/util/Android.bp
  audio/effect/all-versions/vts/functional/Android.bp
  audio/policy/1.0/vts/functional/Android.bp
  audio/policy/1.0/xml/Android.bp
  audio/policy/1.0/xml/pfw_schemas/Android.bp
  authsecret/1.0/Android.bp
  authsecret/1.0/default/Android.bp
  authsecret/1.0/vts/functional/Android.bp
  authsecret/aidl/Android.bp
  authsecret/aidl/default/Android.bp
  authsecret/aidl/vts/Android.bp
  automotive/audiocontrol/1.0/Android.bp
  automotive/audiocontrol/1.0/default/Android.bp
  automotive/audiocontrol/1.0/vts/functional/Android.bp
  automotive/audiocontrol/2.0/Android.bp
  automotive/audiocontrol/2.0/default/Android.bp
  automotive/audiocontrol/2.0/vts/functional/Android.bp
  automotive/can/1.0/default/libnetdevice/Android.bp
  automotive/can/1.0/hidl-utils/Android.bp
  automotive/can/1.0/tools/Android.bp
  automotive/can/1.0/tools/configurator/Android.bp
  automotive/can/1.0/tools/configurator/proto/Android.bp
  automotive/can/1.0/tools/libcanhaltools/Android.bp
  automotive/can/1.0/vts/functional/Android.bp
  automotive/can/1.0/vts/utils/Android.bp
  automotive/evs/1.0/Android.bp
  automotive/evs/1.0/default/Android.bp
  automotive/evs/1.0/vts/functional/Android.bp
  automotive/evs/1.1/Android.bp
  automotive/evs/1.1/default/Android.bp
  automotive/evs/1.1/vts/functional/Android.bp
  automotive/evs/1.1/vts/fuzzing/Android.bp
  automotive/evs/common/utils/default/Android.bp
  automotive/evs/common/utils/default/test/fuzz/Android.bp
  automotive/occupant_awareness/aidl/Android.bp
  automotive/occupant_awareness/aidl/default/Android.bp
  automotive/occupant_awareness/aidl/mock/Android.bp
  automotive/occupant_awareness/aidl/vts/functional/Android.bp
  automotive/sv/1.0/Android.bp
  automotive/sv/1.0/default/Android.bp
  automotive/sv/1.0/vts/functional/Android.bp
  automotive/vehicle/2.0/Android.bp
  automotive/vehicle/2.0/default/Android.bp
  automotive/vehicle/2.0/default/impl/vhal_v2_0/proto/Android.bp
  automotive/vehicle/2.0/utils/Android.bp
  biometrics/face/1.0/Android.bp
  biometrics/face/1.0/default/Android.bp
  biometrics/face/1.0/vts/functional/Android.bp
  biometrics/fingerprint/2.1/Android.bp
  biometrics/fingerprint/2.1/default/Android.bp
  biometrics/fingerprint/2.1/vts/functional/Android.bp
  biometrics/fingerprint/2.2/Android.bp
  biometrics/fingerprint/2.2/vts/functional/Android.bp
  bluetooth/1.0/Android.bp
  bluetooth/1.0/default/Android.bp
  bluetooth/1.0/vts/functional/Android.bp
  bluetooth/1.1/Android.bp
  bluetooth/1.1/default/Android.bp
  bluetooth/1.1/vts/functional/Android.bp
  bluetooth/a2dp/1.0/Android.bp
  bluetooth/a2dp/1.0/default/Android.bp
  bluetooth/a2dp/1.0/vts/functional/Android.bp
  bluetooth/audio/2.0/Android.bp
  bluetooth/audio/2.0/default/Android.bp
  bluetooth/audio/2.0/vts/functional/Android.bp
  bluetooth/audio/2.1/Android.bp
  bluetooth/audio/2.1/default/Android.bp
  bluetooth/audio/2.1/vts/functional/Android.bp
  bluetooth/audio/utils/Android.bp
  boot/1.0/Android.bp
  boot/1.0/default/Android.bp
  boot/1.0/vts/functional/Android.bp
  boot/1.1/Android.bp
  boot/1.1/default/Android.bp
  boot/1.1/default/boot_control/Android.bp
  boot/1.1/vts/functional/Android.bp
  boot/1.2/Android.bp
  boot/1.2/default/Android.bp
  boot/1.2/vts/functional/Android.bp
  broadcastradio/1.0/Android.bp
  broadcastradio/1.0/default/Android.bp
  broadcastradio/1.0/vts/functional/Android.bp
  broadcastradio/1.1/Android.bp
  broadcastradio/1.1/default/Android.bp
  broadcastradio/1.1/vts/functional/Android.bp
  broadcastradio/2.0/Android.bp
  broadcastradio/2.0/default/Android.bp
  broadcastradio/2.0/vts/functional/Android.bp
  broadcastradio/common/tests/Android.bp
  broadcastradio/common/utils/Android.bp
  broadcastradio/common/utils1x/Android.bp
  broadcastradio/common/utils2x/Android.bp
  broadcastradio/common/vts/utils/Android.bp
  camera/common/1.0/Android.bp
  camera/common/1.0/default/Android.bp
  camera/device/1.0/Android.bp
  camera/device/1.0/default/Android.bp
  camera/device/3.2/Android.bp
  camera/device/3.2/default/Android.bp
  camera/device/3.3/Android.bp
  camera/device/3.3/default/Android.bp
  camera/device/3.4/Android.bp
  camera/device/3.4/default/Android.bp
  camera/device/3.5/Android.bp
  camera/device/3.5/default/Android.bp
  camera/device/3.6/Android.bp
  camera/device/3.6/default/Android.bp
  camera/metadata/3.2/Android.bp
  camera/metadata/3.3/Android.bp
  camera/metadata/3.4/Android.bp
  camera/metadata/3.5/Android.bp
  camera/provider/2.4/Android.bp
  camera/provider/2.4/default/Android.bp
  camera/provider/2.4/vts/functional/Android.bp
  camera/provider/2.5/Android.bp
  camera/provider/2.5/default/Android.bp
  camera/provider/2.6/Android.bp
  cas/1.0/Android.bp
  cas/1.0/default/Android.bp
  cas/1.0/vts/functional/Android.bp
  cas/1.1/Android.bp
  cas/1.1/default/Android.bp
  cas/1.1/vts/functional/Android.bp
  cas/1.2/Android.bp
  cas/1.2/default/Android.bp
  cas/1.2/vts/functional/Android.bp
  cas/native/1.0/Android.bp
  common/aidl/Android.bp
  common/fmq/aidl/Android.bp
  common/support/Android.bp
  compatibility_matrices/Android.bp
  compatibility_matrices/Android.mk
  compatibility_matrices/build/Android.bp
  compatibility_matrices/exclude/Android.bp
  configstore/1.0/Android.bp
  configstore/1.0/vts/functional/Android.bp
  configstore/1.1/Android.bp
  configstore/1.1/default/Android.mk
  configstore/utils/Android.bp
  confirmationui/1.0/Android.bp
  confirmationui/1.0/default/Android.bp
  confirmationui/1.0/vts/functional/Android.bp
  confirmationui/support/Android.bp
  contexthub/1.0/Android.bp
  contexthub/1.0/default/Android.bp
  contexthub/1.0/vts/functional/Android.bp
  contexthub/1.1/Android.bp
  contexthub/1.1/default/Android.bp
  contexthub/1.1/vts/functional/Android.bp
  contexthub/common/vts/Android.bp
  drm/1.0/Android.bp
  drm/1.0/default/Android.bp
  drm/1.0/vts/functional/Android.bp
  drm/1.1/Android.bp
  drm/1.1/vts/functional/Android.bp
  drm/1.2/Android.bp
  drm/1.2/vts/functional/Android.bp
  drm/1.3/Android.bp
  drm/1.3/vts/functional/Android.bp
  dumpstate/1.0/Android.bp
  dumpstate/1.0/default/Android.bp
  dumpstate/1.0/vts/functional/Android.bp
  dumpstate/1.1/Android.bp
  dumpstate/1.1/default/Android.bp
  dumpstate/1.1/vts/functional/Android.bp
  fastboot/1.0/Android.bp
  fastboot/1.0/default/Android.bp
  fastboot/1.1/Android.bp
  fastboot/1.1/default/Android.bp
  gatekeeper/1.0/Android.bp
  gatekeeper/1.0/default/Android.bp
  gatekeeper/1.0/software/Android.bp
  gatekeeper/1.0/software/tests/Android.bp
  gatekeeper/1.0/vts/functional/Android.bp
  gnss/1.0/Android.bp
  gnss/1.0/default/Android.bp
  gnss/1.0/vts/functional/Android.bp
  gnss/1.1/Android.bp
  gnss/1.1/default/Android.bp
  gnss/1.1/vts/functional/Android.bp
  gnss/2.0/Android.bp
  gnss/2.0/default/Android.bp
  gnss/2.0/vts/functional/Android.bp
  gnss/2.1/Android.bp
  gnss/2.1/default/Android.bp
  gnss/2.1/vts/functional/Android.bp
  gnss/common/utils/default/Android.bp
  gnss/common/utils/vts/Android.bp
  gnss/measurement_corrections/1.0/Android.bp
  gnss/measurement_corrections/1.1/Android.bp
  gnss/visibility_control/1.0/Android.bp
  graphics/allocator/2.0/Android.bp
  graphics/allocator/2.0/default/Android.bp
  graphics/allocator/2.0/utils/gralloc1-adapter/Android.bp
  graphics/allocator/2.0/utils/hal/Android.bp
  graphics/allocator/2.0/utils/passthrough/Android.bp
  graphics/allocator/3.0/Android.bp
  graphics/allocator/4.0/Android.bp
  graphics/bufferqueue/1.0/Android.bp
  graphics/bufferqueue/2.0/Android.bp
  graphics/common/1.0/Android.bp
  graphics/common/1.1/Android.bp
  graphics/common/1.2/Android.bp
  graphics/common/aidl/Android.bp
  graphics/composer/2.1/Android.bp
  graphics/composer/2.1/default/Android.bp
  graphics/composer/2.1/utils/command-buffer/Android.bp
  graphics/composer/2.1/utils/hal/Android.bp
  graphics/composer/2.1/utils/hwc2on1adapter/Android.bp
  graphics/composer/2.1/utils/hwc2onfbadapter/Android.bp
  graphics/composer/2.1/utils/passthrough/Android.bp
  graphics/composer/2.1/utils/resources/Android.bp
  graphics/composer/2.1/utils/vts/Android.bp
  graphics/composer/2.1/vts/functional/Android.bp
  graphics/composer/2.2/Android.bp
  graphics/composer/2.2/default/Android.mk
  graphics/composer/2.2/utils/command-buffer/Android.bp
  graphics/composer/2.2/utils/hal/Android.bp
  graphics/composer/2.2/utils/passthrough/Android.bp
  graphics/composer/2.2/utils/resources/Android.bp
  graphics/composer/2.2/utils/vts/Android.bp
  graphics/composer/2.2/vts/functional/Android.bp
  graphics/composer/2.3/Android.bp
  graphics/composer/2.3/default/Android.bp
  graphics/composer/2.3/utils/command-buffer/Android.bp
  graphics/composer/2.3/utils/hal/Android.bp
  graphics/composer/2.3/utils/passthrough/Android.bp
  graphics/composer/2.3/utils/vts/Android.bp
  graphics/composer/2.3/vts/functional/Android.bp
  graphics/composer/2.4/Android.bp
  graphics/composer/2.4/default/Android.bp
  graphics/composer/2.4/utils/command-buffer/Android.bp
  graphics/composer/2.4/utils/hal/Android.bp
  graphics/composer/2.4/utils/passthrough/Android.bp
  graphics/composer/2.4/utils/vts/Android.bp
  graphics/composer/2.4/vts/functional/Android.bp
  graphics/mapper/2.0/Android.bp
  graphics/mapper/2.0/default/Android.bp
  graphics/mapper/2.0/utils/hal/Android.bp
  graphics/mapper/2.0/utils/passthrough/Android.bp
  graphics/mapper/2.0/utils/vts/Android.bp
  graphics/mapper/2.0/vts/functional/Android.bp
  graphics/mapper/2.1/Android.bp
  graphics/mapper/2.1/default/Android.bp
  graphics/mapper/2.1/utils/hal/Android.bp
  graphics/mapper/2.1/utils/passthrough/Android.bp
  graphics/mapper/2.1/utils/vts/Android.bp
  graphics/mapper/2.1/vts/functional/Android.bp
  graphics/mapper/3.0/Android.bp
  graphics/mapper/3.0/utils/vts/Android.bp
  graphics/mapper/3.0/vts/functional/Android.bp
  graphics/mapper/4.0/Android.bp
  graphics/mapper/4.0/utils/vts/Android.bp
  graphics/mapper/4.0/vts/functional/Android.bp
  health/1.0/Android.bp
  health/1.0/default/Android.bp
  health/2.0/Android.bp
  health/2.0/default/Android.bp
  health/2.0/utils/libhealthhalutils/Android.bp
  health/2.0/utils/libhealthservice/Android.bp
  health/2.0/utils/libhealthstoragedefault/Android.bp
  health/2.0/vts/functional/Android.bp
  health/2.1/Android.bp
  health/2.1/default/Android.bp
  health/2.1/vts/functional/Android.bp
  health/storage/1.0/Android.bp
  health/storage/1.0/default/Android.bp
  health/storage/1.0/vts/functional/Android.bp
  health/storage/aidl/Android.bp
  health/storage/aidl/default/Android.bp
  health/storage/aidl/vts/functional/Android.bp
  health/storage/impl_common/Android.bp
  health/storage/test_common/Android.bp
  health/utils/libhealth2impl/Android.bp
  health/utils/libhealthloop/Android.bp
  identity/aidl/Android.bp
  identity/aidl/default/Android.bp
  identity/aidl/vts/Android.bp
  identity/support/Android.bp
  input/classifier/1.0/Android.bp
  input/classifier/1.0/default/Android.bp
  input/classifier/1.0/vts/functional/Android.bp
  input/common/1.0/Android.bp
  ir/1.0/Android.bp
  ir/1.0/default/Android.bp
  ir/1.0/vts/functional/Android.bp
  keymaster/3.0/Android.bp
  keymaster/3.0/default/Android.mk
  keymaster/3.0/vts/functional/Android.bp
  keymaster/4.0/Android.bp
  keymaster/4.0/default/Android.bp
  keymaster/4.0/support/Android.bp
  keymaster/4.0/vts/functional/Android.bp
  keymaster/4.0/vts/performance/Android.bp
  keymaster/4.1/Android.bp
  keymaster/4.1/default/Android.bp
  keymaster/4.1/support/Android.bp
  keymaster/4.1/vts/functional/Android.bp
  keymaster/aidl/Android.bp
  light/2.0/Android.bp
  light/2.0/default/Android.bp
  light/2.0/vts/functional/Android.bp
  light/aidl/Android.bp
  light/aidl/default/Android.bp
  light/aidl/vts/functional/Android.bp
  light/utils/Android.bp
  media/1.0/Android.bp
  media/1.0/xml/Android.mk
  media/Android.bp
  media/bufferpool/1.0/Android.bp
  media/bufferpool/2.0/Android.bp
  media/c2/1.0/Android.bp
  media/c2/1.1/Android.bp
  media/omx/1.0/Android.bp
  media/omx/1.0/vts/functional/audio/Android.bp
  media/omx/1.0/vts/functional/common/Android.bp
  media/omx/1.0/vts/functional/component/Android.bp
  media/omx/1.0/vts/functional/store/Android.bp
  media/omx/1.0/vts/functional/video/Android.bp
  memtrack/1.0/Android.bp
  memtrack/1.0/default/Android.bp
  memtrack/1.0/vts/functional/Android.bp
  memtrack/aidl/Android.bp
  memtrack/aidl/default/Android.bp
  memtrack/aidl/vts/Android.bp
  neuralnetworks/1.0/Android.bp
  neuralnetworks/1.0/utils/Android.bp
  neuralnetworks/1.0/vts/functional/Android.bp
  neuralnetworks/1.1/Android.bp
  neuralnetworks/1.1/utils/Android.bp
  neuralnetworks/1.1/vts/functional/Android.bp
  neuralnetworks/1.2/Android.bp
  neuralnetworks/1.2/utils/Android.bp
  neuralnetworks/1.2/vts/functional/Android.bp
  neuralnetworks/1.3/Android.bp
  neuralnetworks/1.3/utils/Android.bp
  neuralnetworks/1.3/vts/functional/Android.bp
  neuralnetworks/aidl/Android.bp
  neuralnetworks/aidl/utils/Android.bp
  neuralnetworks/aidl/vts/functional/Android.bp
  neuralnetworks/utils/common/Android.bp
  neuralnetworks/utils/service/Android.bp
  nfc/1.0/Android.bp
  nfc/1.0/default/Android.bp
  nfc/1.0/vts/functional/Android.bp
  nfc/1.1/Android.bp
  nfc/1.1/vts/functional/Android.bp
  nfc/1.2/Android.bp
  nfc/1.2/vts/functional/Android.bp
  oemlock/1.0/Android.bp
  oemlock/1.0/vts/functional/Android.bp
  oemlock/aidl/Android.bp
  oemlock/aidl/default/Android.bp
  oemlock/aidl/vts/Android.bp
  power/1.0/Android.bp
  power/1.0/default/Android.bp
  power/1.0/vts/functional/Android.bp
  power/1.1/Android.bp
  power/1.1/vts/functional/Android.bp
  power/1.2/Android.bp
  power/1.2/vts/functional/Android.bp
  power/1.3/Android.bp
  power/1.3/vts/functional/Android.bp
  power/aidl/Android.bp
  power/aidl/default/Android.bp
  power/aidl/vts/Android.bp
  power/stats/1.0/Android.bp
  power/stats/1.0/default/Android.bp
  power/stats/1.0/vts/functional/Android.bp
  power/stats/aidl/Android.bp
  power/stats/aidl/default/Android.bp
  power/stats/aidl/vts/Android.bp
  radio/1.0/Android.bp
  radio/1.0/vts/functional/Android.bp
  radio/1.1/Android.bp
  radio/1.1/vts/functional/Android.bp
  radio/1.2/Android.bp
  radio/1.2/default/Android.bp
  radio/1.2/vts/functional/Android.bp
  radio/1.3/Android.bp
  radio/1.3/vts/functional/Android.bp
  radio/1.4/Android.bp
  radio/1.4/vts/functional/Android.bp
  radio/1.5/Android.bp
  radio/1.5/vts/functional/Android.bp
  radio/1.6/Android.bp
  radio/1.6/vts/functional/Android.bp
  radio/config/1.0/Android.bp
  radio/config/1.0/default/Android.bp
  radio/config/1.0/vts/functional/Android.bp
  radio/config/1.1/Android.bp
  radio/config/1.1/vts/functional/Android.bp
  radio/config/1.2/Android.bp
  radio/config/1.2/vts/functional/Android.bp
  radio/config/1.3/Android.bp
  radio/config/1.3/vts/functional/Android.bp
  radio/deprecated/1.0/Android.bp
  rebootescrow/aidl/Android.bp
  rebootescrow/aidl/default/Android.bp
  rebootescrow/aidl/vts/functional/Android.bp
  renderscript/1.0/Android.bp
  renderscript/1.0/default/Android.bp
  renderscript/1.0/vts/functional/Android.bp
  secure_element/1.0/Android.bp
  secure_element/1.0/vts/functional/Android.bp
  secure_element/1.1/Android.bp
  secure_element/1.1/vts/functional/Android.bp
  secure_element/1.2/Android.bp
  secure_element/1.2/vts/functional/Android.bp
  security/keymint/aidl/Android.bp
  security/keymint/aidl/default/Android.bp
  security/keymint/aidl/vts/functional/Android.bp
  security/keymint/support/Android.bp
  security/secureclock/aidl/Android.bp
  security/secureclock/aidl/vts/functional/Android.bp
  security/sharedsecret/aidl/Android.bp
  security/sharedsecret/aidl/vts/functional/Android.bp
  sensors/1.0/Android.bp
  sensors/1.0/default/Android.bp
  sensors/1.0/vts/functional/Android.bp
  sensors/2.0/Android.bp
  sensors/2.0/default/Android.bp
  sensors/2.0/multihal/Android.bp
  sensors/2.0/vts/functional/Android.bp
  sensors/2.1/Android.bp
  sensors/2.1/default/Android.bp
  sensors/2.1/multihal/Android.bp
  sensors/2.1/vts/functional/Android.bp
  sensors/common/default/2.X/Android.bp
  sensors/common/default/2.X/multihal/Android.bp
  sensors/common/default/2.X/multihal/tests/Android.bp
  sensors/common/utils/Android.bp
  sensors/common/vts/2_X/Android.bp
  sensors/common/vts/utils/Android.bp
  soundtrigger/2.0/Android.bp
  soundtrigger/2.0/default/Android.bp
  soundtrigger/2.0/default/Android.mk
  soundtrigger/2.0/vts/functional/Android.bp
  soundtrigger/2.1/Android.bp
  soundtrigger/2.1/default/Android.mk
  soundtrigger/2.1/vts/functional/Android.bp
  soundtrigger/2.2/Android.bp
  soundtrigger/2.2/default/Android.bp
  soundtrigger/2.2/vts/functional/Android.bp
  soundtrigger/2.3/Android.bp
  soundtrigger/2.3/default/Android.bp
  soundtrigger/2.3/vts/functional/Android.bp
  tests/bar/1.0/Android.bp
  tests/bar/1.0/default/Android.bp
  tests/baz/1.0/Android.bp
  tests/baz/1.0/default/Android.bp
  tests/expression/1.0/Android.bp
  tests/extension/light/2.0/Android.bp
  tests/extension/light/2.0/default/Android.bp
  tests/extension/vibrator/aidl/Android.bp
  tests/extension/vibrator/aidl/client/Android.bp
  tests/extension/vibrator/aidl/default/Android.bp
  tests/foo/1.0/Android.bp
  tests/foo/1.0/default/Android.bp
  tests/foo/1.0/default/lib/Android.bp
  tests/hash/1.0/Android.bp
  tests/hash/1.0/default/Android.bp
  tests/inheritance/1.0/Android.bp
  tests/inheritance/1.0/default/Android.bp
  tests/lazy/1.0/Android.bp
  tests/lazy/1.1/Android.bp
  tests/libhwbinder/1.0/Android.bp
  tests/libhwbinder/1.0/default/Android.bp
  tests/libhwbinder/aidl/Android.bp
  tests/memory/1.0/Android.bp
  tests/memory/1.0/default/Android.bp
  tests/memory/2.0/Android.bp
  tests/msgq/1.0/Android.bp
  tests/msgq/1.0/default/Android.bp
  tests/multithread/1.0/Android.bp
  tests/multithread/1.0/default/Android.bp
  tests/safeunion/1.0/Android.bp
  tests/safeunion/1.0/default/Android.bp
  tests/safeunion/cpp/1.0/Android.bp
  tests/safeunion/cpp/1.0/default/Android.bp
  tests/trie/1.0/Android.bp
  tests/trie/1.0/default/Android.bp
  tetheroffload/config/1.0/Android.bp
  tetheroffload/config/1.0/vts/functional/Android.bp
  tetheroffload/control/1.0/Android.bp
  tetheroffload/control/1.0/vts/functional/Android.bp
  tetheroffload/control/1.1/Android.bp
  tetheroffload/control/1.1/vts/functional/Android.bp
  thermal/1.0/Android.bp
  thermal/1.0/default/Android.bp
  thermal/1.0/vts/functional/Android.bp
  thermal/1.1/Android.bp
  thermal/1.1/vts/functional/Android.bp
  thermal/2.0/Android.bp
  thermal/2.0/default/Android.bp
  thermal/2.0/vts/functional/Android.bp
  tv/cec/1.0/Android.bp
  tv/cec/1.0/default/Android.bp
  tv/input/1.0/Android.bp
  tv/input/1.0/default/Android.bp
  tv/input/1.0/vts/functional/Android.bp
  tv/tuner/1.0/Android.bp
  tv/tuner/1.0/default/Android.bp
  tv/tuner/1.0/vts/functional/Android.bp
  usb/1.0/Android.bp
  usb/1.0/default/Android.bp
  usb/1.0/vts/functional/Android.bp
  usb/1.1/Android.bp
  usb/1.1/vts/functional/Android.bp
  usb/1.2/Android.bp
  usb/1.2/vts/functional/Android.bp
  usb/gadget/1.0/Android.bp
  usb/gadget/1.1/Android.bp
  usb/gadget/1.1/default/Android.bp
  usb/gadget/1.1/default/lib/Android.bp
  vibrator/1.0/Android.bp
  vibrator/1.0/default/Android.bp
  vibrator/1.0/vts/functional/Android.bp
  vibrator/1.1/Android.bp
  vibrator/1.1/vts/functional/Android.bp
  vibrator/1.2/Android.bp
  vibrator/1.2/vts/functional/Android.bp
  vibrator/1.3/Android.bp
  vibrator/1.3/example/Android.bp
  vibrator/1.3/vts/functional/Android.bp
  vibrator/aidl/Android.bp
  vibrator/aidl/default/Android.bp
  vibrator/aidl/vts/Android.bp
  vr/1.0/Android.bp
  vr/1.0/default/Android.bp
  vr/1.0/vts/functional/Android.bp
  weaver/1.0/Android.bp
  weaver/1.0/vts/functional/Android.bp
  weaver/aidl/Android.bp
  weaver/aidl/default/Android.bp
  weaver/aidl/vts/Android.bp
  wifi/1.0/Android.bp
  wifi/1.0/vts/functional/Android.bp
  wifi/1.1/Android.bp
  wifi/1.1/vts/functional/Android.bp
  wifi/1.2/Android.bp
  wifi/1.2/vts/functional/Android.bp
  wifi/1.3/Android.bp
  wifi/1.3/vts/functional/Android.bp
  wifi/1.4/Android.bp
  wifi/1.4/default/Android.mk
  wifi/1.4/vts/functional/Android.bp
  wifi/hostapd/1.0/Android.bp
  wifi/hostapd/1.0/vts/functional/Android.bp
  wifi/hostapd/1.1/Android.bp
  wifi/hostapd/1.1/vts/functional/Android.bp
  wifi/hostapd/1.2/Android.bp
  wifi/hostapd/1.2/vts/functional/Android.bp
  wifi/offload/1.0/Android.bp
  wifi/offload/1.0/vts/functional/Android.bp
  wifi/supplicant/1.0/Android.bp
  wifi/supplicant/1.0/vts/functional/Android.bp
  wifi/supplicant/1.1/Android.bp
  wifi/supplicant/1.1/vts/functional/Android.bp
  wifi/supplicant/1.2/Android.bp
  wifi/supplicant/1.2/vts/functional/Android.bp
  wifi/supplicant/1.3/Android.bp
  wifi/supplicant/1.3/vts/functional/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-NCSA to:
  Android.bp
  automotive/can/1.0/Android.bp
  automotive/can/1.0/default/Android.bp

Added SPDX-license-identifier-NCSA to:
  automotive/can/1.0/default/libc++fs/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work

Change-Id: I602b072f77ff41e9eb8d3c36b6b5315d63664006
Merged-in: I602b072f77ff41e9eb8d3c36b6b5315d63664006
2021-02-21 20:36:55 -08:00
Kumar Anand
aea86e089a Wifi: Filter usable channels by Coex, Concurrency
Add ability to filter usable channel due to coex &
concurrency limitations. List of usable channels could
be limited due to coex restrictions and also due to
concurrency limitations & connection state.

Bug: 160212907
Test: VTS - VtsHalWifiV1_5TargetTest
Change-Id: Ic36b792b93fc4a6e328b9bc606a5286b8c1fd690
2021-02-16 14:06:01 -08:00
Les Lee
0858c46146 Merge "wifi: Add new HAL API: getBridgedInstances" into sc-dev 2021-02-02 11:13:22 +00:00
Kumar Anand
2a630a3817 Wifi: HAL API to query the list of usable channels
API can be used to query what modes (SAP, STA,
WFD Client, WFD Group Owner, TDLS, NAN) can be
supported on each channel for specified band.
Needs support from Wifi chip vendors.

Bug: 160212907
Test: VTS - VtsHalWifiV1_5TargetTest
Change-Id: Icf270b8c2ee14c794778421c9d988712c5c38380
2021-02-01 14:02:12 -08:00
lesl
669c906329 wifi: Add new HAL API: getBridgedInstances
Also fix the instances doesn't update after removing the instance

Cherry-pick from ag/13382534 which finished the review in master branch

Bug: 173999527
Test: atest -c VtsHalWifiApV1_5TargetTest

Change-Id: I439922d38c35b5367823f95f5f7d0e4c6ed05f57
2021-01-27 19:50:13 +08:00
George Burgess IV
2c0a47db87 wifi: fix a use of an uninitialized value
This `if` is executed once, so using `legacy_status` from a prior
execution is nonsensical.

Caught by the static analyzer:
> hardware/interfaces/wifi/1.5/default/wifi_chip.cpp:1053:39: warning:
1st function call argument is an uninitialized value
[clang-analyzer-core.CallAndMessage]

Bug: 173999527
Test: atest -c VtsHalWifiApV1_5TargetTest
Merged-In: Ib81f1496be53e453d9c99ede129a77bdaf860de7
Change-Id: Ib81f1496be53e453d9c99ede129a77bdaf860de7
2021-01-27 11:48:40 +00:00
Sunil Ravi
d064667718 Merge "Wifi: Inform framework on failure to find a network" 2021-01-26 15:41:06 +00:00
Roshan Pius
c99ea88f19 Merge "Notify scan-only mode to driver for power saving" 2021-01-25 23:56:19 +00:00
Sunil Ravi
ee197f3c70 Wifi: Inform framework on failure to find a network
Added a callback function to indicate that the
supplicant failed to find a network in scan result
which matches with the network capabilities requested by upper layer
for connection.

Bug: 161196120
Test: vts test - VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I9549a80ca636b4ee91aca421cf7cfae9f95a9161
2021-01-25 14:08:55 -08:00
Peter Collingbourne
0c4836f418 Import wifi_channel_stat into legacy_hal namespace.
Fixes android.hardware.wifi@1.0-service-tests build failure.

Change-Id: I067106c4db8a9c9c358ec287409cc1b93c50c926
2021-01-25 10:19:51 -08:00
Ye Jiao
c6b5f89b08 Notify scan-only mode to driver for power saving
If Wi-Fi driver knows it's in scan-only mode, it can save more power
than connect mode.

This change adds setScanMode in IWifiStaIface to allow Wi-Fi framework
to notify scan-only mode change to Wi-Fi driver.

Bug: 177811719
Test: atest VtsHalWifiV1_5TargetTest

Change-Id: I1dfbc24a0a3272c1341223aff36656be4a6fd21b
2021-01-22 23:05:30 +00:00
lesl
78a04d6bc7 wifi: Support use "non-primy interface when testing hostapd Hal
In current android design, the general use case is the interface is
removed after terminate() call.
But the VTS kill the hostapd immediately it causes terminate doesn't
work normally.
Add sleep 3 seconds to allow terminate processing.

Another test case is considered to check hostapd died because any reason.
(for instance: NPE crash)
But the interface handling in android design is control in framework and WiFiHal.
Case 1. Native crash will be handled in framework and clean the interface for
the recovery.

Case 2. VTS use "stopHAL" to clean "primy interface".
It will cause clean up fail if OEM use "non-primy interface" for the SoftAp.
But it is not requirement in hostapd HAL. Verify terminate is good in
VtsHalWifiHostapd.

Bug: 177483254
Bug: 177389456
Test: atest -c VtsHalWifiHostapdV1_3TargetTest
Change-Id: I39f6ee92b1354ab2cebbe2fe6e9873e62d850c42
2021-01-22 10:32:11 +08:00
lesl
55cbbb53f2 wifi: Add sleep 3 seconds to allow terminate processing in VTS tear down
In current android design, the general use case is the interface is
removed after terminate() call.
But the VTS kill the hostapd immediately it causes terminate doesn't
work normally.
Add sleep 3 seconds to allow terminate processing.

Another test case is considered to check hostapd died because any reason.
(for instance: NPE crash)
But the interface handling in android design is control in framework and WiFiHal.
Case 1. Native crash will be handled in framework and clean the interface for
the recovery.

Case 2. VTS use "stopHAL" to clean "primy interface".
It will cause clean up fail if OEM use "non-primy interface" for the SoftAp.
But it is not requirement in hostapd HAL. Verify terminate is good in
VtsHalWifiHostapd.

Bug: 163170239
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: Id5adc12be4a098af8e5b75d9182c004c1030720c
2021-01-20 11:40:57 +08:00
Quang Luong
ddf9401aa9 Merge "Fix 1.5::WifiBand inheritance" 2021-01-19 17:01:08 +00:00
lesl
90e6565e1e wifi: Add VTS for wifi hal and hostapd hal.
Tested on S5 and O6.
Found VTS gets failure on wlan1
b/177389456 to track for O6
b/177483254 to track for S5

But both of O6 and S5 will get pass because it uses wlan0.

Bug: 162686273
Bug: 173999527
Test: atest -c VtsHalWifiHostapdV1_3TargetTest
Test: atest -c VtsHalWifiApV1_5TargetTest
Change-Id: Idbaa7fb2f95abc954fda8daf8670e4a57b453030
2021-01-15 12:16:39 +08:00
Kumar Anand
38b1d5cb58 Merge "Wifi: Chip level API to set the country code" 2021-01-13 20:40:12 +00:00
Kai Shi
8ac976acf1 Merge "Add dtim config optimization HAL API" 2021-01-13 18:57:57 +00:00
Kumar Anand
da62c38e58 Wifi: Chip level API to set the country code
Country code is global setting across the Wifi chip
and not really Wifi interface (STA or AP) specific.
Framework should have the ability to set the country
code on a chip level without requiring supplicant
instance to be running. As long as there is at least
one active interface to communicate to kernel driver,
country code can be set and driver should apply the
setting globally.

Bug: 149936939
Test: VTS - VtsHalWifiV1_5TargetTest
Change-Id: I1be5dae34b216a6152d09605d055872d5345507c
2021-01-12 18:12:53 -08:00
Kai Shi
0b6341c67a Add dtim config optimization HAL API
Test: compilation and halutil test
Bug: 170678227
Change-Id: I4f7535a70e53bd55f02b70867d071c440ad1529f
2021-01-11 20:25:17 -08:00
Sunil Ravi
7e9d71fa64 wifi: Send MBO-OCE association rejection info.
Parse association response for MBO association
disallowed indication and OCE RSSI based association
rejection info and send it to framework in association
rejection event.

Bug: 162542063
Test: vts test - VtsHalWifiSupplicantV1_4TargetTest

Change-Id: I63ae2c37b816dbe1790647e90541e2d0b6df8401
2021-01-11 16:54:34 -08:00
Quang Luong
3000a60c2a Fix 1.5::WifiBand inheritance
1.5::WifiBand should inherit from 1.4::WifiBand.

Bug: 15365100
Test: build
Change-Id: Ic22cbed19fee274bbaadf282b0a492857bd3dcc5
2021-01-10 19:20:12 -08:00
lesl
f012b65dc0 wifi: fix incorrect active wlan iface in bridged mode
The hal use first active wlan iface to get chip info.
It should should return active wlan instance in bridged mode.

Bug: 162686273
Test: Manual test.
1. Wifi Off (SAA off), make sure bridged AP is first wlan iface
2. Enable bridged mode

Change-Id: Id5a3d5ab53c6ed34d5633be22ad56070f5f0d0e2
2021-01-08 20:58:39 +00:00
TreeHugger Robot
be136613f4 Merge "wifi: Fix removeIfaceInstanceFromBridgedApIfaceInternal" 2021-01-07 04:57:28 +00:00
Peter Collingbourne
d84225bd2c Instead of including wifi_hal.h in the legacy_hal namespace, import the types.
Including the header inside a namespace leads to ODR violations,
which are normally benign but can cause problems if we want to use
something like CFI in the wifi HAL.

Change-Id: I80cc854632da7e18e5c208ba9210de44b31abbdb
Merged-In: I80cc854632da7e18e5c208ba9210de44b31abbdb
2021-01-06 20:56:12 -08:00
lesl
819e37237a wifi: Fix removeIfaceInstanceFromBridgedApIfaceInternal
Fix the incorrect empty check.

Bug: 162686273
Test: Manual Test, shutdown instance works normally

Change-Id: I44c5c4adcc7a964e25b5fa5e291bb9b9f4932655
2021-01-07 09:49:21 +08:00
Peter Collingbourne
78471d9a24 Instead of including wifi_hal.h in the legacy_hal namespace, import the types.
Including the header inside a namespace leads to ODR violations,
which are normally benign but can cause problems if we want to use
something like CFI in the wifi HAL.

Change-Id: I80cc854632da7e18e5c208ba9210de44b31abbdb
2021-01-05 12:16:33 -08:00
Les Lee
3ee69a6186 Merge "wifi: Fix VTS error" 2020-12-23 03:30:21 +00:00
lesl
143575a10c wifi: Fix VTS error
The current hostapd use channelParams1_3.bandMask
(changed on ag/13001575), but VTS doesn't
prepare test data:channelParams1_3.bandMask.

Test: atest VtsHalWifiHostapdV1_3TargetTest
Test: atest VtsHalWifiHostapdV1_2TargetTest
Test: atest VtsHalWifiHostapdV1_1TargetTest
Test: atest VtsHalWifiHostapdV1_0TargetTest
Bug: 176139512
Change-Id: Ibdc08acb55b673b464b5c59ae714157941487a5b
2020-12-22 15:19:58 +08:00
TreeHugger Robot
254b3632a9 Merge "Add voip optimization HAL API" 2020-12-22 01:29:34 +00:00
Kai Shi
2ca7a11810 Add voip optimization HAL API
Test: compilation and halutil test
Bug: 166311728
Change-Id: I3173e733abe158e1b009ed8378d1963ca3b8b8e8
2020-12-17 14:15:12 -08:00
TreeHugger Robot
e898720840 Merge changes from topic "fixCoexRestrictions"
* changes:
  Add VTS test for IWifiChip::setCoexUnsafeChannels
  [WifiCoex] Add enum for wifi coex restrictions
2020-12-17 00:16:11 +00:00
Sunil Ravi
de9e202ef2 Merge "wifi: Added 2 seconds wait time in RTT tests" 2020-12-16 16:22:56 +00:00
Quang Luong
26cd156744 Add VTS test for IWifiChip::setCoexUnsafeChannels
Bug: 153651001
Test: atest VtsHalWifiV1_5TargetTest
Change-Id: Iaffbff3cf68b00572674ca423587387ef6569302
2020-12-16 05:05:57 +00:00
Sunil Ravi
4c7c64e7fd wifi: Added 2 seconds wait time in RTT tests
Added 2 seconds delay in RTT tests. This helps drivers finish the
current test and process the next test.

Bug: 175605811
Test: VTS test - VtsHalWifiRttV1_4TargetTest
Change-Id: I3bb719b5b75ba960913bd405b2c8a41047689682
2020-12-15 16:57:29 -08:00
Quang Luong
ab70a83b05 [WifiCoex] Add enum for wifi coex restrictions
Add custom enum for wifi coex restrictions since IfaceType is not
suitable for use as a bitmask flag since it does not represent bit
positions.

Bug: 153651001
Test: build
Change-Id: I15575ea12784a778a3b358eea1b05b75319aa95b
2020-12-15 09:43:36 -08:00
lesl
5a46c958e2 wifi: Fix bridged interface property and allociation
1. The concurrent property name over the limitation.
Rename the property name.

2. When allocate bridged iface name, it needs to increase the idx to
avoid two ifaces use the same name.

Bug: 162686273
Test: atest -c VtsHalWifiApV1_0TargetTest
Test: atest -c VtsHalWifiApV1_4TargetTest
Test: atest -c VtsHalWifiApV1_5TargetTest
Change-Id: I388cdd812bd0448c03ad5ae982547629c1e5eff9
2020-12-14 17:17:44 +08:00
Jimmy Chen
ed0d49d277 Merge "hostapd: add 60GHz(WiGig) support" 2020-12-12 04:26:03 +00:00
xshu
82a00e6657 VTS - avoid same MAC for AP and STA
Having the AP and STA set the same MAC address in tests could cause
unintended failures when WifiApIfaceHidlTest and WifiStaIfaceHidlTest
are executed back to back.

Bug: 172528120
Test: atest VtsHalWifiApV1_4TargetTest VtsHalWifiV1_2TargetTest

Change-Id: I336d21cd896c46b064f16ecfa184a26dab67deaa
2020-12-07 18:24:04 -08:00
Quang Luong
94bcce5ec2 [WifiCoex] Add WifiChip HIDL APIs for coex
Add HIDL APIs to convey a list of unsafe Wifi channels to the driver for
coex channel avoidance.

Bug: 153651001
Test: build
Change-Id: I8b14f0e2d8855c1f1e363d612617256d8e928f30
2020-12-08 00:31:11 +00:00
Les Lee
334057470d Merge "wifi: Add AP interface idx mechanism & predefine interface support." 2020-12-04 06:43:34 +00:00
Colin Cross
b0a9ef07bb resolve merge conflicts of 9e1ee9bb30 to master
Test: I solemnly swear I tested this conflict resolution.
Bug: None
Change-Id: Iad05fce7dfa8832ed7c62326a908ab52b05268e0
2020-12-03 14:35:26 -08:00
Roshan Pius
3e6084c05d Merge "wifi: Prevent returning an invalid factory MAC address" am: 6119f16921
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1496341

Change-Id: Ic8ad496bdee5d96f46bf3de63e1131bf84ee7581
2020-12-03 20:05:19 +00:00
Roshan Pius
6119f16921 Merge "wifi: Prevent returning an invalid factory MAC address" 2020-12-03 18:51:08 +00:00
lesl
261818bfaf wifi: Add AP interface idx mechanism & predefine interface support.
SAP Interface idx mechanism.
STA+STA support, AP+AP will use wlan2 & wlan3, single AP use wlan2
STA+STA doesn't support, AP+AP use wlan1 & wlan 2, single AP use
wlan 1
STA+AP doesn't support, AP + AP will take wlan0 & wlan 1 but single AP
use wlan0 (Ideally it should not happen)

Add predefine interface support for bridged AP interface.
(property: ro.vendor.sap.concurrent.interface)

PS: Rename: getApIfaceName to getPredefinedApIfaceName since it
duplicates public HAL API: getApIfaceName

AP+AP Part 4 includes:
1. Support API to indicate Bridged AP supported or not
2. SAP Interface idx mechanism.

Bug: 162686273
Bug: 173999527
Test: atest -c VtsHalWifiApV1_0TargetTest
Test: atest -c VtsHalWifiApV1_4TargetTest
Test: atest -c VtsHalWifiApV1_5TargetTest
Change-Id: I115e294ac2be201cfa3a58cfa0a8a98b481b29de
2020-12-03 15:17:45 +08:00
Xin Li
8ac301f5f1 Merge "Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855" into stage-aosp-master 2020-12-03 03:19:13 +00:00
Les Lee
9135ee103e Merge "wifi: Add resetFactoryMac support (AP+AP Part 3)" 2020-12-03 03:09:38 +00:00
Ye Jiao
bf8f310071 DO NOT MERGE: Tune up kMaxStopCompleteWaitMs to fix NE
On a low-end device which does not support STA-SAP concurrency, if STA
is currently enabled and user/app tries to enable SAP, then Wi-Fi needs
to reconfigure and stop Wi-Fi HAL first. Among other stopping actions,
HAL needs to set global_handle_ to nullptr and send "Exit" to
wifi_event_loop then waits no more than kMaxStopCompleteWaitMs. If the
wait times out, then reconfiguration fails and causes Wi-Fi controller
returns to STA mode and creates new STA iface indirectly. In this
process, HAL needs to access global_handle_, but since it was cleared,
we can only get a Native Exception.

Because there is no proper error recovery for UNKNOWN errors, I suggest
to simply set kMaxStopCompleteWaitMs to a higher value to circumvent
this timing issue.

Bug: 173760638
Change-Id: I1b5a0a7a554409704c017ffaf52a767b9424c61e
2020-12-02 17:44:49 +00:00
Xin Li
c026d3a0b6 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: If5afd00334e8b09250df1ae97dec9285e39ad930
Change-Id: Ic66bb1389f1bbecfdaa641e1fcdbf79044f55d23
2020-12-02 00:32:27 -08:00
TreeHugger Robot
d4f4cb8a82 Merge "wifi: ignore SIGPIPE when dumping stats to dumpstate" 2020-12-02 04:51:43 +00:00
lesl
420c4fc3a7 wifi: Add resetFactoryMac support (AP+AP Part 3)
Support HAL API:resetToFactoryMacAddress to reset the MAC
to factory MAC on each instances in IWifiApIface.

AP+AP Part 3 includes:
1. Support resetToFactoryMac in IWifiApIface.Hal.
2. Vts support for non bridged API.
3. Framework support resetToFactoryMac in bridged Ap.

Test: atest -c VtsHalWifiApV1_5TargetTest
Test: atest -c VtsHalWifiApV1_4TargetTest
Test: atest -c VtsHalWifiApV1_0TargetTest
Bug: 162686273
Change-Id: Ic7f2c0d6f1d8bf46fabfbc874d5f2b74068e43cc
2020-12-02 10:00:15 +08:00
Les Lee
9dffd373ea Merge "wifi: Add AP bridge operations support (AP+AP Part 2)" 2020-12-01 00:05:16 +00:00
Sunil Ravi
f14d9a0f8e Wifi: DPP STA Enrollee-Responder mode
Added below HIDL APIs for DPP STA Enrollee-Responder mode
1. API to start DPP in Enrollee-Responder mode
2. API to generate DPP bootstrap URI
3. API to stop DPP in Enrollee-Responder mode
which internally remove the bootstrap and stop listen.

Bug: 162686712
Test: VTS test
Change-Id: I979b6a7a2fe90f48d478f48da73269fd3f5cb347
2020-11-30 09:29:31 -08:00
lesl
75915c3134 wifi: ignore SIGPIPE when dumping stats to dumpstate
If dumpstate closes the reading end of the pipe (likely due to timeout)
and wifi vendor hal attempts to write to the fd it received from
dumpstate, it will receive sig 13 (SIGPIPE), and is then killed.
We should protect wifi vendor hal from the abnormally behaved clients.

Sync patch from ag/12321138. Reference from b/172972545 &
b/161336019#comment29

Bug: 161336019
Bug: 172972545
Test: Manuel Test, Wifi works normally
Change-Id: Ie7de040ac4320f83500c18e74e3c58d63b4df1b7
2020-11-30 19:09:31 +08:00
lesl
94d2824a66 wifi: Add AP bridge operations support (AP+AP Part 2)
The bridge interface name will take "ap_br_" + ap interface name.
ex: The ap interface name is "wlan1".
The bridge interface name will be "ap_br_wlan1"
When OEM customize the ap interface name via property
"ro.vendor.wifi.sap.interface".

It will only apply on single AP mode.
i.e.
"ro.vendor.wifi.sap.interface" = "sap0"
Single AP mode: ap interface name = "sap0"
Dual AP mode:
bridge interface name = "ap_br_sap0"
first ap instance name:  get from "getSupportedIfaceName" + idx
ex: sap0
second ap instance name: get from "getSupportedIfaceName" + idx + 1
ex: sap1

PS: The VtsHalWifiApV1_5TargetTest will be added in another CL which
will update another SAP related HAL:IWifiApIface.hal.

AP+AP Part 2 includes:
1. Support bridge in libwifi_system_iface
2. WifiHal API
a. createBridgedApIface (Support create bridge mode AP)
b. removeIfaceInstanceFromBridgedApIface (Support remove one of the instance in bridge)
3. Framework:
Create bridge AP when multi-bands configured.

Bug: 162686273
Test: Manual Test (SAP enable normally)
Test: atest -c VtsHalWifiApV1_0TargetTest
Test: atest -c VtsHalWifiApV1_4TargetTest
Change-Id: I8be510778e9772bcf1539e4915384949cbe13127
2020-11-23 18:57:22 +08:00
Jimmy Chen
becd2f136b wifi: fix old vts tests on newer HAL
Older registerCallback is not deprecated until V1.4 HAL correctly.
As a result, their returning codes are still SUCCESS.

Bug: 173570755
Test: atest VtsHalWifiSupplicantV1_0TargetTest \
            VtsHalWifiSupplicantV1_1TargetTest \
            VtsHalWifiSupplicantV1_2TargetTest
Change-Id: Ib23821d64f53c144d74818fa3ed9aca06cd25a27
2020-11-20 01:45:55 +08:00
lesl
c92aa85a6e wiif: Add AP bridge operations support (AP+AP Part 2)
AP+AP Part 2 includes:
1. Support bridge in libwifi_system_iface
2. WifiHal
a. createApIface_1_5 (Support create bridge mode AP)
b. removeApIface_1_5 (Support remove one of the instance in bridge)
3. Framework:
Create bridge AP when multi-bands configured.

Bug: 162686273
Test: Manual Test (SAP enable normally)
Change-Id: I518417add566ce4780a7e2e83af14460e6e8a217
2020-11-17 14:12:01 +08:00
Jimmy Chen
a67701d0d0 hostapd: add 60GHz(WiGig) support
Extend the band with 60GHz constant to support starting
AP on the 60GHz band.
Add channel parameters for EDMG (802.11ay, 60GHz channel
bonding).

Bug: 147469374
Test: atest VtsHalWifiHostapdV1_3TargetTest
Change-Id: I8d3ca0c14766dfb4a79c1febcc2bb05f65ba311e
2020-11-15 00:37:06 +08:00
Treehugger Robot
f4c82a843f Merge "supplicant(vts): Skip p2p tests on non-p2p devices as intended" am: f19e282226 am: c9f4cc376d am: 119d863efa am: bfcb424813
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1497700

Change-Id: Ie68f4455a82435d73f47af315237713e6c10511f
2020-11-14 07:29:53 +00:00
Treehugger Robot
bfcb424813 Merge "supplicant(vts): Skip p2p tests on non-p2p devices as intended" am: f19e282226 am: c9f4cc376d am: 119d863efa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1497700

Change-Id: Ica406a4de8dfb04c093d3227a71e860e8727e720
2020-11-14 07:18:37 +00:00
Treehugger Robot
119d863efa Merge "supplicant(vts): Skip p2p tests on non-p2p devices as intended" am: f19e282226 am: c9f4cc376d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1497700

Change-Id: I2d5be618227828a815867144c1e29c826ba3c2ab
2020-11-14 07:04:59 +00:00
Roshan Pius
5c9ad33f9a Merge "wifi(hal): Use debug property to select one of preset HAL iface combination" 2020-11-13 19:32:16 +00:00
Treehugger Robot
43d5b3c37d Merge "supplicant(vts): Skip p2p tests on non-p2p devices as intended" into android11-tests-dev 2020-11-13 19:00:34 +00:00
Roshan Pius
2272ff8942 wifi(hal): Use debug property to select one of preset HAL iface combination
This will be useful for testing/debugging STA + STA & AP + AP feature.

Note: I originally planned to read the entire iface combination from the
property (i.e would be much more flexible), but that is way too complex
and error prone. So, instead pre-define some combinations that we would
want to switch between and use the property as an index.

Bug: 173044646
Test: Manual:
i) adb shell "/vendor/bin/sh -c '/vendor/bin/setprop
persist.vendor.debug.wifi.hal.preset_interface_combination_idx 0'"
ii) adb reboot
iii) Ensure that AP + AP was enabled.

Change-Id: Iea63835c39fce78307a056a5ed94efcbd35cdfb6
2020-11-12 19:06:12 -08:00
Jerry Wong
41e99dca9e supplicant(vts): Skip p2p tests on non-p2p devices as intended
The logic to skip the p2p tests on non-p2p devices appear to have
inadventently flipped since d6436731.

Bug: 173134041
Test: atest VtsHalWifiSupplicantV1_1TargetTest
Change-Id: I7945950e8483241e47e308a2c5ad97571d74a769
2020-11-12 23:01:59 +00:00
Jerry Wong
a0e13d6060 supplicant(vts): Skip p2p tests on non-p2p devices as intended
The logic to skip the p2p tests on non-p2p devices appear to have
inadventently flipped since d6436731.

Bug: 173134041
Test: atest VtsHalWifiSupplicantV1_1TargetTest
Change-Id: I7945950e8483241e47e308a2c5ad97571d74a769
2020-11-12 15:01:24 -08:00
TreeHugger Robot
4c219071e8 Merge "wifi: fix old vts tests for deprecated APIs" 2020-11-12 20:55:49 +00:00
henry-th.yeh
bcf57475f1 Fix VtsHalWifiSupplicantV1_3TargetTest fail
Remove disable_framework option to pass the
stopWifiFramework procedure.

Bug: 173081502
Test: Build VTS
Test: run vts -m VtsHalWifiSupplicantV1_3TargetTest
-t PerInstance/SupplicantStaIfaceHidlTest#RegisterC
allback_1_3/default_default_0 --abi armeabi-v7a

Change-Id: I6813905b6c804c1c93ea59db9d8c255c2f7c45d9
2020-11-12 07:38:58 +00:00
Alessandro Astone
40e57ca717 wifi: Prevent returning an invalid factory MAC address
This is the same error checking already done in wifi_ap_iface.cpp

Change-Id: I2183e6ec13a15141dc638dc8d68fda6b3afa5aa4
2020-11-11 18:41:35 +01:00
TreeHugger Robot
cfd0577486 Merge "wifi: Fix incorrect instance version" 2020-11-11 05:03:54 +00:00
Jimmy Chen
06c9863d80 wifi: fix old vts tests for deprecated APIs
Bug: 172865706
Test: atest VtsHalWifiSupplicantV1_0TargetTest \
            VtsHalWifiSupplicantP2pV1_0TargetTest \
            VtsHalWifiSupplicantV1_1TargetTest \
            VtsHalWifiSupplicantV1_2TargetTest \
            VtsHalWifiSupplicantP2pV1_2TargetTest \
            VtsHalWifiSupplicantV1_3TargetTest \
            VtsHalWifiSupplicantV1_4TargetTest \
            VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: Icc502cae18338606a98ada312e9a66a5b11f51db
2020-11-11 11:06:20 +08:00