Commit graph

27 commits

Author SHA1 Message Date
Gabriel Biren
4c3eeb417e 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 19:46:59 +00:00
Gabriel Biren
3f7bfd2dc5 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 22:23:34 +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
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
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
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
Gabriel Biren
90059381f0 Do not check the returned value in the
VTS test for IWifiChip#getFeatureSet.

Some implementations of the legacy HAL,
such as Goldfish, do not have any
supported features.

Bug: 273886122
Test: atest VtsHalWifiChipTargetTest
       (tested on Cuttlefish)
Change-Id: I3ca22187cab0e77d36a28908e57ff4970535e4ae
2023-04-07 23:30:54 +00:00
Yuyang Huang
e6396ba7ba Add VTS to cover the APF VSR requirement since U
Since Android U, VSR 5.3.12 mentioned the Android Packet Filtering must
be supported by CHIPSETs and DEVICEs launching on Android 14 or higher.
This VTS was added to check if APF is supported properly.

Given the limitation of the VTS testing environment, the first version
of the test case only checks: if the APF is supported by WiFi chips with
version 4 and more than 1024 bytes of usable memory.

Bug: 259309511
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: I3ee2a980a4440db232738a23c1633aaff3562d95
2023-03-27 10:54:44 +09:00
Gabriel Biren
c939532af1 Merge "Remove deprecated method getValidFrequenciesForBand from IWifiApIface and IWifiStaIface." into udc-dev 2023-03-15 17:24:54 +00:00
Gabriel Biren
2a391a09df Rename getCapabilities to getFeatureSet
in IWifiChip and IWifiStaIface.

Main purpose is to distinguish between
the 2 capability methods in IWifiChip:
 - getCapabilities (renamed here)
 - getWifiChipCapabilities

Bug: 267819850
Test: atest VtsHalWifiChipTargetTest \
            VtsHalWifiStaIfaceTargetTest
Change-Id: I03c15d652d02aef99b219c2d630b69acb4d9e43c
2023-03-09 19:07:53 +00:00
Gabriel Biren
810771c323 Remove deprecated method getValidFrequenciesForBand
from IWifiApIface and IWifiStaIface.

Bug: 267819850
Test: atest VtsHalWifiStaIfaceTargetTest \
            VtsHalWifiApIfaceTargetTest
Change-Id: I369d72e3eff9283552822a92b26ce0f4fb35fedf
2023-03-09 00:40:50 +00:00
Gabriel Biren
008c1da031 Use an int to represent bitmaps in
the Vendor HAL AIDL interface.

Bug: 267819850
Test: atest VtsHalWifiChipTargetTest \
            VtsHalWifiStaIfaceTargetTest \
	    VtsHalWifiApIfaceTargetTest \
	    VtsHalWifiNanIfaceTargetTest \
	    VtsHalWifiRttControllerTargetTest
Change-Id: Ic72496c654067b2db97109cc3dc9ff50f1f1d1dd
2023-03-01 21:30:15 +00:00
Gabriel Biren
432807e44b Remove the WifiRadioCombinationsMatrix type from the
Vendor HAL interface.

We can return a list of WifiRadioCombinations instead.

Bug: 267819850
Test: atest VtsHalWifiChipTargetTest
Change-Id: I0f57df6262d36917dfd8cc3e27d6781e9b7c8dbf
2023-02-24 21:03:20 +00:00
Gabriel Biren
597ffa095d Merge "Remove unused DEBUG_PACKET_FATE capability from StaIfaceCapabilityMask." 2023-02-16 07:51:32 +00:00
Gabriel Biren
dd47e716a0 Remove unused DEBUG_PACKET_FATE capability
from StaIfaceCapabilityMask.

Bug: 266521428
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: If20728567cb8877ae54488480e13fd8541640b92
2023-02-15 23:55:02 +00:00
Nate Jiang
d6cc331b87 Modify HAL for Aware suspension mode
- Add an event to know the device is suspended
- More status code
- Add pub_sub_id in the datapath request to build the relationship

Bug: 247913151
Test: build
Change-Id: I77733c1bca821b77fdab7ed1ed03c1e54c9373b2
2023-02-15 10:11:13 -08:00
Nate Jiang
bae6fddf98 Modify based on the vendor feedback
- Add end pairing request method
- Handle bootstrapping comeback event
- Add cipher type in the pairing request

Bug: 265075699
Test: cts sinlgeDeviceTest
Change-Id: Ic744b0a1098e258b68caba5a9a33b2bef3226b40
2023-02-14 17:22:57 -08:00
Gabriel Biren
e35e7e46bb Remove DEBUG_ capabilities from ChipCapabilityMask.
Also update the IWifiChip VTS test to reflect
this change.

Bug: 266521428
Test: atest VtsHalWifiChipTargetTest
Change-Id: I537588c405d8a01091a6818020084acbe2679e14
2023-02-14 22:39:34 +00:00
TreeHugger Robot
555447b747 Merge "Fix NAN-related VTS tests." 2023-01-19 20:34:13 +00:00
Gabriel Biren
88126cde83 Fix NAN-related VTS tests.
NAN is not supported by Cuttlefish, so check
for Aware support before running any related
tests.

Also fix the incorrect function call in
CreateP2pIface.

Bug: 263762326
Test: atest VtsHalWifiChipTargetTest
      (tested on Cuttlefish and Bluejay)
Change-Id: I3ec52fcc18aedad157dbc17d19078dde216261fb
2023-01-19 19:12:22 +00:00
Phill Hayers
02a97247fe Add NAN session suspension in shim layer.
Bug: 259950106
Test: m android.hardware.wifi-update-api
Change-Id: Ia3c1aa7e709e4e611bf40757ae712a9e39cc043a
2023-01-11 15:43:03 +00:00
Nate Jiang
1590d09ac3 [HAL] Support Wifi Aware 4.0
Bug: 249185683
Test: vts

Change-Id: I769d3dfdefa74152c7d1e3b873399a9b4ecfbafd
2022-12-19 22:47:35 +00:00
Mahesh KKV
5fe40535ff wifi: Update vts test for GetLinkLayerStats()
Bug: 246988155
Test: atest VtsHalWifiStaIfaceTargetTest
Change-Id: I0f3f211f5ff5374834da60214d45bba1b8a47b7a
2022-12-15 02:36:07 +00:00
Gabriel Biren
bd150ea1f1 Update VTS test dependencies.
Supplicant and Hostapd tests have a dependency on
the Vendor HAL in order to do setup/cleanup,
such as bringing up an interface.

This change will make the tests compatible with either
the HIDL or AIDL Vendor HAL, depending on which
is available.

Bug: 205044134
Test: atest VtsHalHostapdTargetTest
      atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest
      Tests were run using both the HIDL and AIDL
      Vendor HALs.
Change-Id: I1f6b15016414a0bf614703315b47b5b47d3a1e50
2022-12-07 23:53:52 +00:00
Gabriel Biren
f3262f970d Add AIDL implementation for the vendor HAL service.
Bug: 205044134
Test: Pass AIDL VTS tests and regression tests.
Change-Id: Iad04ce01f71fc220443e05a4be05d7d5545227e8
2022-12-02 14:01:50 -08:00
Gabriel Biren
631a8118d7 Revert "Convert vendor HAL service to use new AIDL interface."
This reverts commit e58e263bce.

Reason for revert: Blocking Wembley team

Change-Id: I3cf471e88b880a95a0a2c39f47fb0804deee65cf
2022-12-01 22:29:32 +00:00
Gabriel Biren
e58e263bce Convert vendor HAL service to use new AIDL interface.
Bug: 205044134
Test: Pass AIDL VTS tests and regression tests.
Change-Id: I286ffbf67efddc6c34d34ebd9e9bd9f36139c962
2022-11-28 18:29:23 +00:00