Commit graph

154 commits

Author SHA1 Message Date
Les Lee
d8fc1572fd Merge "wifi: rename mode 'ON' to 'VOICE'." into main 2023-12-07 23:23:02 +00:00
Kai Shi
a0fc82730d Merge "Add the HAL support for getCachedScanResult." into main 2023-12-07 22:02:48 +00:00
Gabriel Biren
eb508f78d1 Merge "Add capability bit for the roaming mode feature in the Vendor HAL interface." into main 2023-12-07 21:07:48 +00:00
divya.n1
b8c242abc7 Add capability bit for the roaming mode feature
in the Vendor HAL interface.

Bug: 269196966
Test: m

Change-Id: I0d4e5ed922d88f8e557509d3aa1808e168b5a077
2023-12-07 18:37:03 +00:00
Les Lee
b5d73ee5ce wifi: rename mode 'ON' to 'VOICE'.
To improve clarity and accommodate future functionalities,
we should rename the existing 'ON' mode to 'VOICE'.
This change establishes 'VOICE' as the fundamental mode for VOIP operations.
Additionally, it paves the way for adding future modes, such as 'VOICE_VIDEO',
as the system evolves.

Bug: 295885471
Test: TH

Change-Id: Ie3b54f02cf3c73b5a9c2a805ec36703dfd541666
2023-12-07 06:08:57 +00:00
Les Lee
8efe3759f8 wifi: Supports setVoipMode in HAL
Bug: 295885471
Test: manual test, wifi works normally
Change-Id: I20e1479de84fa892c986929eebc692b33f5607a1
2023-12-07 03:52:37 +00:00
Kai Shi
7d0e5e927b Add the HAL support for getCachedScanResult.
Bug: 269485350
Test: adb shell cmd wifi get-cached-scan-data
Test: adb shell halutil -get_cached_scan_results
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Ie94fbdd51a21c25c6aefa4afbd40cfcaabbe0f8c
2023-12-06 17:30:39 -08:00
Nate Jiang
3478b3d87e Merge "Add CSIA into NDP request to support frame protection" into main 2023-12-04 23:51:57 +00:00
Gabriel Biren
67d33e9710 Add aggressive roaming support to the
Vendor HAL implementation.

Bug: 269196966
Test: Vendor HAL Gtest suite
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: I63d9f9a6994fbf76c16c82834f70c7a1e4966ad4
2023-12-01 01:32:14 +00:00
divya.n1
2b8b126ca0 Add enum for aggressive roaming mode to
the Vendor HAL AIDL interface.

Bug: 269196966
Test: m

Change-Id: Icc972fdea98035ad7668b85a7f4c3ae0c38f732d
2023-11-30 23:52:45 +00:00
Nate Jiang
bbf2198766 Add CSIA into NDP request to support frame protection
Bug: 294810242
Test: atest SingleDeviceTest
Change-Id: Ia59c4e9fbed473b6630e5db1e9af78f58467de77
2023-11-29 15:49:23 -08:00
Gabriel Biren
aa9bd83dbd Update the Vendor HAL and compatibility matrix to
implement V2 of the Vendor HAL interface.

Also involves adding a default implementation of the
new method createApOrBridgedApIface().

Bug: 296069900
Test: m
Change-Id: Iea8aa0b66a23125c066d72b710004496d41defcb
2023-11-13 22:09:19 +00:00
Gabriel Biren
61430f49d1 Add an API to the Vendor HAL to create an AP
or Bridged AP iface using vendor-specific
parameters.

Bug: 296069900
Test: m
Change-Id: I4bc05195a6e0b539b426d994e59f9f61a78c1255
2023-11-10 00:07:24 +00:00
Hsiu-Chang Chen
802828f461 wifi: Enhance tombstone folder dumping behavior
In current implementation, files in the tombstone folder are only
archived when there is at least one active wifi interface. The
examination is unnecessary and it causes problems for us to get wifi
logs if reporter takes bugreport with STA/SAP off. In this change,
tombstone files will be archived regardless of the state of the wifi
interfaces.

Bug: 303429585
Test: dumpsys android.hardware.wifi.IWifi/default
Change-Id: I8a8b09f6473b2a1f93478b0393963e87b1fb9ad7
2023-10-23 01:02:40 +00:00
Nate Jiang
33864539f4 Add comment to indicate the usage of the Service specific info in SDEA
Bug: 301045790
Test: N/A

Change-Id: I5c844915d26dd6b47a7577f80faa408046058427
2023-10-20 17:38:34 +00:00
Gabriel Biren
c320fbaf1f Merge changes I917be24b,Ia10d3805 into main
* changes:
  Skip AP and P2P tests in wifi_chip_aidl_test if those iface types cannot be created.
  Add AIDL VTS helper method to check whether the specified iface type is supported.
2023-09-11 19:35:25 +00:00
Gabriel Biren
e8e161e255 Skip AP and P2P tests in wifi_chip_aidl_test
if those iface types cannot be created.

Bug: 297959416
Test: atest VtsHalWifiChipTargetTest
Change-Id: I917be24bb46b74fe3fb9d08e8af099b782e19469
2023-09-11 17:15:28 +00:00
Gabriel Biren
70b126cd25 Add AIDL VTS helper method to check whether
the specified iface type is supported.

Bug: 297959416
Test: atest VtsHalWifiChipTargetTest \
      VtsHalWifiStaIfaceTargetTest \
      VtsHalWifiApIfaceTargetTest \
      VtsHalWifiNanIfaceTargetTest \
      VtsHalWifiRttControllerTargetTest
Change-Id: Ia10d3805c5ebb5dd3e3e07b6106c0879f1764943
2023-09-08 18:04:42 +00:00
Gabriel Biren
7373343a1a Check for null pointers in all public
methods in wifi_aidl_test_utils.

Bug: 298747174
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
            VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: I042f024a30f3afb1425816c350fddf98fbe526ef
2023-09-07 20:46:43 +00:00
Ryan Prichard
dd390faa2f Undefine NAN before defining it again
After upgrading libc++, math.h happens to be included at the point
where this file tries to define NAN. Redefining a macro to a different
value is an error, but #undef'ing a macro is OK even if the macro isn't
actually defined.

Bug: b/175635923
Test: treehugger
Change-Id: Ie8e3e87189bcd7ed8fccccfc0a79e04a5bfda16b
2023-08-31 19:32:59 -07:00
Mahesh KKV
49d750c25c Merge "Fix Legacy to AIDL conversion for link state" into udc-qpr-dev am: d7175ec8e7 am: cafe6e94ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24513722

Change-Id: I3182824b6efe5c24471717e081a14cfd4b9b2ced
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-24 01:07:55 +00:00
maheshkkv
236b04d3c3 Fix Legacy to AIDL conversion for link state
Bug: 296807191
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Iea60d7894b22558b386f62a77ff43aa374b6c40f
2023-08-22 17:52:00 +00:00
Gabriel Biren
df4463b3b5 Merge "Use a 64-bit instance of 0x1 when creating the event bitmask." into udc-qpr-dev am: 140534a783 am: dc53a4ca8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24058886

Change-Id: I0bad0dfa93843579fc80668ef927b157af71ae67
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-14 00:53:31 +00:00
Gabriel Biren
1f06b4bf76 Use a 64-bit instance of 0x1 when creating
the event bitmask.

Comments on ag/24025770 suggest that the bit
shift will lead to undefined behavior for
event codes greater than 31.

Bug: 290318208
Test: atest VtsHalWifiNanIfaceTargetTest
       # manually set some of the expected
       # events codes to > 31 to verify that
       # the bit shift works as expected
Change-Id: I09e11dac8acf90baf047e24cebe1d01970b1dc8a
2023-07-13 18:24:14 +00:00
Gabriel Biren
44cf0eae1b Represent NAN callback events as a bitmap am: 3a34c72b61 am: 46961ab73f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/24025770

Change-Id: I418b1aa6d1644ec3de97dd3c22ef1cba2e5bac49
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-12 00:05:34 +00:00
Gabriel Biren
3a34c72b61 Represent NAN callback events as a bitmap
to better handle overlapping events.

Reimplementation of aosp/2473685 for
the AIDL VTS tests.

Bug: 290318208
Test: atest VtsHalWifiNanIfaceTargetTest
Change-Id: I1a0e6ab8dd529c10fcec8f26424a7181e7d91568
2023-07-11 21:23:31 +00:00
Yuyang Huang
50c033fe79 Merge "Add TV devices that have MdnsOffloadManagerService to APF exempt list" into stage-aosp-udc-ts-dev am: 32d8479f86 am: 5d0f680ed9 am: 8d0d289758
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23831006

Change-Id: Id4fd3f80c084f5d0d9a597035934f1aa0b7978d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-30 08:36:10 +00:00
Yuyang Huang
f9c27cb05a Merge "Add TV devices that have MdnsOffloadManagerService to APF exempt list" into stage-aosp-udc-ts-dev am: 32d8479f86 am: 5d0f680ed9 am: 76dd769ca0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23831006

Change-Id: Iff133169efebbd1cdc7948399cabb57cc1ead6c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-30 08:32:04 +00:00
Yuyang Huang
54bbf07e06 Add TV devices that have MdnsOffloadManagerService to APF exempt list
For Panel TV devices, the vendor can implemented TV specific mDNS
offload instead of APF in U. If TV specific mDNS offload is implemented.
MdnsOffloadManagerService will exist in the system ext partition. The
APF vts will be skipped if MdnsOffloadManagerService exist.

Bug: 283038712
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: If55ec42507460b9a2c6eee683d85b8109f2af236
2023-06-28 02:24:35 +00:00
Ye Jiao
26515fa331 Fix memory leak in WifiLegacyHal. am: 84310761ce am: aa1f8755c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23772717

Change-Id: I0954dbcf561b6e16bb98ebb69fa5238031eea0f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-22 02:26:12 +00:00
Ye Jiao
84310761ce Fix memory leak in WifiLegacyHal.
`WifiLegacyHal::getSupportedRadioCombinationsMatrix()`
allocs a buffer and returns it to
`WifiChip::getSupportedRadioCombinationsInternal()`, but
`WifiChip::getSupportedRadioCombinationsInternal()` never frees it.

Bug: 287883356
Test: manually test
Change-Id: I0e9d529e93cbb5fe254d48947661a2ae3d99d763
2023-06-21 23:03:34 +00:00
Gabriel Biren
c29622f0ea Merge "Set the value of using_dynamic_iface_combination_ in the WifiChip constructor." into udc-dev am: 0f1628e1ac am: aba5f849c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23699648

Change-Id: I1c914ea573d71a34eeef53ecce94f25b350cbf85
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 22:08:33 +00:00
Gabriel Biren
0f1628e1ac Merge "Set the value of using_dynamic_iface_combination_ in the WifiChip constructor." into udc-dev 2023-06-16 20:58:26 +00:00
Gabriel Biren
6de6df6bbd Merge "Improve process to run the Vendor HAL gTest suite." into udc-dev am: 01cf38f349 am: e269503696
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23699649

Change-Id: I54e1b2a4263b591b299d44e97a3476e26e93004b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 02:23:22 +00:00
Gabriel Biren
01cf38f349 Merge "Improve process to run the Vendor HAL gTest suite." into udc-dev 2023-06-15 00:12:52 +00:00
Gabriel Biren
80f5392763 Improve process to run the Vendor HAL gTest suite.
This includes:
 - Adding a README to help users get started.
 - Improving the test script to avoid issue where
   device is not ready for the next ADB command
   after 'adb root'.

Bug: 271914366
Test: Manual test
       1. Reboot device.
       2. ./runtests.sh
       3. Tests are expected to execute.
Change-Id: I9f452384a7067708f617d1e932f06b2f5c7ab119
2023-06-14 22:53:28 +00:00
Gabriel Biren
989c78a51f Set the value of using_dynamic_iface_combination_
in the WifiChip constructor.

gTest suite currently cannot mock the legacy HAL
call for getSupportedIfaceConcurrencyMatrix.
If we set using_dynamic_iface_combination_ to true
in the unit tests, we can avoid making this call.

Bug: 271914366
Test: ./runtests.sh # gTest
Test: atest VtsHalWifiChipTargetTest # VTS
Change-Id: Ic43daab6ff5fdc5f78af614ad775f436fbbe8726
2023-06-14 22:45:29 +00:00
Treehugger Robot
dd404c5aed Merge "wifi: Fix single AP iface isn't deleted" into udc-dev am: 5d806f5adb am: 4c5f74ea8c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23520926

Change-Id: I3fe52a67299927fd7801ce55ff4813cf92cfc572
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-02 05:06:47 +00:00
Treehugger Robot
5d806f5adb Merge "wifi: Fix single AP iface isn't deleted" into udc-dev 2023-06-02 03:36:59 +00:00
Sunil Ravi
780bef050a wifi: Fix single AP iface isn't deleted
Bug: 222599182
Bug: 278808480
Test: Manual Test, the AP iface is deleted.
Change-Id: I07faf0afcd1f69af4ef57204ceac02c2572453f2
2023-06-01 21:54:24 +00:00
Yuyang Huang
27d7f441e2 Merge "Update APF VTS to include the vendor API level check" into udc-dev am: 51d7c99586 am: 2da31e5e30
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23303618

Change-Id: I0851b79344f1dd98a45646e74e749f18595a3723
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-19 03:13:22 +00:00
Yuyang Huang
5c3c6483d3 Update APF VTS to include the vendor API level check
APF is support is mandatory since VSR 14. Before that, the APF
requirement is optional. Vendors can opted into upgrading their
HAL to AIDL, so the VTS need to check if vendor API level on the device
and only mandate the APF capability check if the vendor API level is
greater or equal to 14.

Bug: 283181837
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: I21513187d4ca99d721d0e9dc5e243adad77ab8c6
2023-05-18 18:11:56 +09:00
Mahesh KKV
a6f12209f3 Merge "Add documentation for Aware suspend & resume" into udc-dev am: 73ab317336 am: dbde1264f0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23148733

Change-Id: If5ad6205f8f1d8699e3b1178e4a503f782005480
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-11 16:07:07 +00:00
maheshkkv
0ace7e5f91 Add documentation for Aware suspend & resume
Bug: 281882132
Test: build
Change-Id: Ifea3dd9a0bd635c95e3b80f09427d380b75e0fa9
2023-05-10 17:01:24 -07:00
Treehugger Robot
fe3af101f0 Merge "Skip RTT responder VTS tests if the capabilities do not indicate responder support." into udc-dev am: b647d3f95b am: 8a2c4f5dcf
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23002955

Change-Id: I27ce4fde1c829158b1d8b46d878d435053c93b4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-04 02:02:56 +00:00
Gabriel Biren
6d41484860 Skip RTT responder VTS tests if the capabilities
do not indicate responder support.

Bug: 280550766
Test: atest WifiRttControllerAidlTest
Change-Id: I343dc3f2729274db5628f54501b89a470a512206
2023-05-03 22:11:51 +00:00
Gabriel Biren
1e7d67d9de Merge "Add a lock around any public methods in the AidlCallbackHandler." into udc-dev am: 51d0682216 am: 0a75c0a614
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22723736

Change-Id: I28184f44e9bb0cc8f59abd9844004ca86063da22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-24 17:18:37 +00:00
Gabriel Biren
fce371b9b5 Add a lock around any public methods in
the AidlCallbackHandler.

Bug: 278433745
Test: Start wifi.
Change-Id: I2b143b9e8671eaf8c63c5623c09d2a04f914a772
2023-04-21 18:15:16 +00:00
Kevin Jeon
510fd6d8e4 Merge "Add missing newline to health/wifi AIDL interfaces" 2023-04-17 21:42:18 +00:00
Yuyang Huang
b37f9a8a83 Add @VsrTest annotation to Apf test
Bug: 259309511
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: I860e7bff6a31ae7871a6041ab76c2c685b7c8c38
2023-04-14 12:26:32 +09:00