Commit graph

1712 commits

Author SHA1 Message Date
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
8fddf60046 Merge "Fix VtsHalWifiSupplicantP2pIfaceTargetTest failed issue" into udc-dev 2023-04-26 15:56:54 +00:00
zhengyu.zhan
38bff8b0c7 Fix VtsHalWifiSupplicantP2pIfaceTargetTest failed issue
supplicant_test_utils::initializeService() only stop Supplicant,
don't start it. refer Android T code, It should start Supplicant
when initializeService().

Bug: 279572212
Test: VtsHalWifiSupplicantP2pIfaceTargetTest pass

Change-Id: I9f4b3e21ee0865eb95d71f7f832b2eb405de9607
2023-04-25 22:17:28 +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
Sunil Ravi
abb157f297 Merge "wifi: Skip SetStrictConversativePeerMode VTS test" into udc-dev 2023-04-17 18:38:55 +00:00
Sunil Ravi
974a74d896 wifi: Skip SetStrictConversativePeerMode VTS test
SetStrictConversativePeerMode HAL API is added in
AIDL version 2. So if the HAL interface version is
less than 2, skip the test.

Bug: 278169264
Bug: 277318919

Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: I7f8ace88b0f37679ecaedd5370b47e220c437d50
2023-04-15 01:10:46 +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
72235e8d40 Merge "Use the default SAP interface name in VtsHalWifiHostapdV1_2TargetTest." into udc-dev 2023-04-13 15:15:47 +00:00
Gabriel Biren
282c8312bf Use the default SAP interface name in
VtsHalWifiHostapdV1_2TargetTest.

Test currently sets up a new interface
and uses that interface's name. On Pixel,
the new interface is wlan1, which does not
seem to support the OpenAccessPointWithoutAcs
configuration. However, the default SAP
interface wlan0 does support it.

The method to get the default interface name
is taken from this file before ag/19202002
was merged.

Bug: 270509029
Test: atest VtsHalWifiHostapdV1_2TargetTest
       (on a Bramble device running rvc-qpr3-release)
Change-Id: Ic3c516f452dfb54f155246073a9bca20dbecaa0f
2023-04-12 21:33:50 +00:00
Gabriel Biren
f5c86e53bf Merge "Acquire the global lock when the dump method is called." into udc-dev 2023-04-12 20:06:12 +00:00
Xiao Ma
e238106742 Merge "Update the setDtimMultiplier aidl API documentation." into udc-dev 2023-04-12 00:46:17 +00:00
Xiao Ma
9acf79f7ad Update the setDtimMultiplier aidl API documentation.
Update the aidl API documentation to describe how setDtimMultiplier API
is supposed to work, i.e. we can call this API to set a maximum DTIM
multiplier value to use in driver, any larger value must not be accepted
and meanwhile it allows to set a specific multiplier by OEMs. Try to
make the description clear and avoid the ambiguity.

Bug: 266256943
Test: m
Change-Id: Ic7d2284a25e32d1b0752cf2bc832c069f646fcea
2023-04-11 15:03:51 +09:00
Alex Buynytskyy
1deeb7fabf Merge "UpsideDownCake is now 34" into udc-dev 2023-04-11 01:17:33 +00:00
Gabriel Biren
57896d2a1c Acquire the global lock when the
dump method is called.

This should prevent a race condition
between stop() and dump().

stop() already acquires the global lock
when it calls validateAndCall().

Bug: 274641043
Test: adb shell dumpsys wifi # validates dump()
Change-Id: Ie2df0861308954cd2e399c9604d4ae0dcddf95fb
2023-04-10 23:47:45 +00:00
Gabriel Biren
3af3d5bd13 Merge "Do not check the returned value in the VTS test for IWifiChip#getFeatureSet." into udc-dev 2023-04-10 20:00:09 +00:00
Alex Buynytskyy
ec1198d941 UpsideDownCake is now 34
Ignore-AOSP-First: UpsideDownCake Finalization
Bug: 275409981
Test: build
Change-Id: I832ab7a8b5445ba85e27bbcf5be64906bfa0e5be
2023-04-07 23:41:20 +00: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
Gabriel Biren
7b65166e33 Remove HIDL implementation for the WiFi
Vendor HAL.

Bug: 274964641
Test: Treehugger builds.
Change-Id: I0198870790077f1ca03c663d58aac53eb4a64b83
2023-04-06 21:01:59 +00:00
Yuyang Huang
1096ca0ed2 Merge "Add VTS to cover the APF VSR requirement since U" into udc-dev 2023-03-28 03:57:02 +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
TreeHugger Robot
8712639df1 Merge "Update comment for the INonStandardCertCallback to indicate how certificates are added." into udc-dev 2023-03-23 18:38:15 +00:00
Gabriel Biren
a3b22e5a72 Update comment for the INonStandardCertCallback to
indicate how certificates are added.

Bug: 267819850
Test: m
Change-Id: I896bf68138b93a97c843699d69bac193e7ee1523
2023-03-23 00:23:20 +00:00
Ye Jiao
2dc47ca925 Add config to skip state toggle off/on for Wi-Fi NAN
If STA and NAN share the same iface wlan0, Wi-Fi vendor HAL service
sends eventDisabled to NAN framework when STA setMacAddress to wlan0.
This disables NAN when STA is turned on.

Since NAN always uses its own random MAC instead of using MAC of STA,
this action is not necessary and gets NAN kicked off for no benefits.

We add a build time configuration to optionally disable this behavior.

Bug: 273426515
Test: manually test

Change-Id: Ifc71b7e8d09eac1b66b9e18c70e0e6d202683ff6
2023-03-21 18:13:18 +00:00
Gabriel Biren
ad659e2829 Merge changes from topic "supplicant-fixed-size-arrays" into udc-dev
* changes:
  Use fixed-size arrays for any arrays added in V2 that expect a pre-set size.
  Disable linter in the Supplicant interface Android.bp file.
2023-03-17 16:11:11 +00:00
Oscar Shu
e07c69786d Merge "Update setAfcChannelAllowance" into udc-dev 2023-03-16 23:40:24 +00:00
Gabriel Biren
da640d66b2 Use fixed-size arrays for any arrays added in
V2 that expect a pre-set size.

Bug: 273964536
Test: m
Change-Id: Iab1239484bfc7fd61834118e5a9e1999cab194ad
2023-03-16 23:33:11 +00:00
Gabriel Biren
fb8b891a36 Disable linter in the Supplicant interface
Android.bp file.

This allows us to use fixed-size arrays
in the interface.

Bug: 273964536
Test: m
Change-Id: Ic1a0c5ce5360e787e1664ed855e2642d22be7148
2023-03-16 23:31:08 +00:00
Oscar Shu
4275c8793c Update setAfcChannelAllowance
Use a new structure to passdown:
- AFC information queried based on frequency
- AFC information queried based on channel number
- expiration time

This change is per chip vendor request. Based on AFC server support,
either frequency based information or channel based information may be
empty. If both are empty, then it indicate the driver should not allow
any standard power transmission on 6Ghz.

Bug: 262791660
Test: compile
Test: Manually verified information is passed down with local framework
change

Change-Id: Id1d014a6113f6863b98ef8239a5a52d3863aa758
2023-03-16 18:55:54 +00:00
Gabriel Biren
0d841ae812 Add comment to the Vendor HAL Android.bp file to
explain why the linter is disabled.

If the linter were enabled, we would run into a
build failure because fixed-size arrays are not
supported on SDK Level < 33. The interface indicates
min_sdk_version 30 due to mainline requirements,
but the interface will only be accessed by devices
running Android U.

Bug: 267819850
Test: m
Change-Id: Ifed2223d1c5f4bf46329ed72fa622b730e99cde1
2023-03-16 17:24:51 +00: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
04bf5bd30c Merge changes from topic "rename-get-chip-caps" into udc-dev
* changes:
  Rename getCapabilities to getFeatureSet in the Vendor HAL implementation.
  Rename getCapabilities to getFeatureSet in IWifiChip and IWifiStaIface.
2023-03-15 16:51:00 +00:00
Gabriel Biren
a224caede2 Merge "Remove unused method removeAllQosPoliciesForScs from the Supplicant interface." into udc-dev 2023-03-13 16:16:14 +00:00
Cole Faust
e76cbec982 Baseline NewApi issues
NewApi was recently updated to support linting methods in
the system, module_lib, and system_server sdks, and was
demoted to a warning due to the new issues it finds.
Baseline all the new issues that NewApi can be made an error
again.

These cls were generated automatically by a script that
copied the NewApi issues from the reference baselines.

Bug: 268261262
Test: m lint-check
Change-Id: I22f3b3575b6ea00d72d143019d9eed028aa98b56
2023-03-09 14:20:10 -08:00
Gabriel Biren
6fb8e8d453 Remove unused method removeAllQosPoliciesForScs
from the Supplicant interface.

Bug: 267819850
Test: m
Change-Id: Id17738f1705c899f4f82cdaf3b923e30d3eed6a4
2023-03-09 20:27:21 +00:00
Gabriel Biren
2f86249fcb Rename getCapabilities to getFeatureSet
in the Vendor HAL implementation.

Bug: 267819850
Test: Run gTest suite
Change-Id: Id21f3edde0b01636d0a994cc8b7b1d434bacaa04
2023-03-09 19:14:36 +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
dheda.shin
4e64494db1 Patch for VTS am: 93945c1d25 am: f21272df98 am: fa18198274
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2473685

Change-Id: Iacf79dbb5321a9ba21b96f797d1647e7b0017324
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 03:06:43 +00:00
dheda.shin
93945c1d25 Patch for VTS
we changed to store event information in bitmap format
so that overlapping events can be handled.

Bug: 270650316
Test: startPublishRequest_1_6
Change-Id: I6f3cb8026d54dfa692bfd6eb64b24005ba663a1f
Signed-off-by: dheda.shin <dheda.shin@samsung.com>
2023-03-07 13:45:47 +09:00
TreeHugger Robot
0e270ef5f1 Merge "Convert NAN enums that are used as bitmaps to an int." into udc-dev 2023-03-03 21:51:58 +00:00
TreeHugger Robot
b77c796280 Merge "Update comments to indicate whether NAN enums are used as an enum or a bitmask." into udc-dev 2023-03-03 21:45:15 +00:00
Gabriel Biren
53368fa332 Merge changes from topic "vendor-hal-bitmaps" into udc-dev
* changes:
  Update Vendor HAL service to use ints for bitmaps instead of using enums.
  Use an int to represent bitmaps in the Vendor HAL AIDL interface.
2023-03-03 21:21:34 +00:00
Gabriel Biren
86971aa04c Convert NAN enums that are used as bitmaps
to an int.

Bug: 267819850
Test: atest VtsHalWifiNanIfaceTargetTest
Change-Id: I6085c01fe6a7585fbdd8855bfdf183a75644ff80
2023-03-03 18:06:33 +00:00
Gabriel Biren
e817aeb699 Update comments to indicate whether NAN enums
are used as an enum or a bitmask.

Bug: 267819850
Test: m
Change-Id: I6625d017a5563f82e87a2ee9300bb2d880b9242a
2023-03-03 18:02:16 +00:00
TreeHugger Robot
4da12781df Merge "Update imports and argument comments in the NAN sections of the Vendor HAL interface." into udc-dev 2023-03-02 19:49:19 +00:00
Nate(Qiang) Jiang
39eee87484 Merge "Change the value of constant according to the spec" into udc-dev 2023-03-02 18:41:23 +00:00
Nate Jiang
cdf2ef0bac Change the value of constant according to the spec
Re-assign the value according to the Wifi Aware R4.0 section 9.5.21.1
Also correct several comments.

Bug: 269440402
Test: build
Change-Id: Ib3dd6365b2a28f871ec6ae3775ee8b9e9481475f
2023-03-01 13:58:36 -08:00
Gabriel Biren
3b86a78032 Update Vendor HAL service to use ints
for bitmaps instead of using enums.

Bug: 267819850
Test: m
Change-Id: I6fba3cd669d197229ff637c6326a94be624d5e6e
2023-03-01 21:30:40 +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
TreeHugger Robot
b964c8b7be Merge "Update comments for the Aware 4.0 types in the Vendor HAL interface." into udc-dev 2023-03-01 20:31:36 +00:00