Commit graph

1940 commits

Author SHA1 Message Date
Gabriel Biren
eadd5160d8 Add a new utility class wifi_hidl_test_utils_1_6
for the Wifi VTS tests.

Main method is getBridgedWifiApIface_1_6, which
allows us to configure the chip based on the
Bridged AP IfaceConcurrencyType, rather than
the AP IfaceType like in getBridgedWifiApIface_1_5.

Implementations were largely copied from
wifi_hidl_test_utils and wifi_hidl_test_utils_1_5.

Bug: 283402709
Test: atest VtsHalHostapdTargetTest
       # tested on a Bluejay device that supports
       # the AddAccessPointWithDualBandConfig test
Change-Id: I2571876149fc14c8de02e1cec9934dd052cada5c
Merged-In: I2571876149fc14c8de02e1cec9934dd052cada5c
2023-06-06 22:09:59 +00:00
Gabriel Biren
a2482fde1a Add a new utility class wifi_hidl_test_utils_1_6
for the Wifi VTS tests.

Main method is getBridgedWifiApIface_1_6, which
allows us to configure the chip based on the
Bridged AP IfaceConcurrencyType, rather than
the AP IfaceType like in getBridgedWifiApIface_1_5.

Implementations were largely copied from
wifi_hidl_test_utils and wifi_hidl_test_utils_1_5.

Bug: 283402709
Test: atest VtsHalHostapdTargetTest
       # tested on a Bluejay device that supports
       # the AddAccessPointWithDualBandConfig test
Change-Id: I2571876149fc14c8de02e1cec9934dd052cada5c
Merged-In: I2571876149fc14c8de02e1cec9934dd052cada5c
2023-06-06 22:08:48 +00:00
Gabriel Biren
81f4d5b5bb Merge "Add a new utility class wifi_hidl_test_utils_1_6 for the Wifi VTS tests." into udc-dev am: 5df702513f am: b20a8feab5
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23571908

Change-Id: I03f9cf6bc0bde3b1b6cda4236d32735121581276
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-06 21:28:30 +00:00
Gabriel Biren
5df702513f Merge "Add a new utility class wifi_hidl_test_utils_1_6 for the Wifi VTS tests." into udc-dev 2023-06-06 20:01:57 +00:00
Gabriel Biren
cd6da07327 Add a new utility class wifi_hidl_test_utils_1_6
for the Wifi VTS tests.

Main method is getBridgedWifiApIface_1_6, which
allows us to configure the chip based on the
Bridged AP IfaceConcurrencyType, rather than
the AP IfaceType like in getBridgedWifiApIface_1_5.

Implementations were largely copied from
wifi_hidl_test_utils and wifi_hidl_test_utils_1_5.

Bug: 283402709
Test: atest VtsHalHostapdTargetTest
       # tested on a Bluejay device that supports
       # the AddAccessPointWithDualBandConfig test
Change-Id: I2571876149fc14c8de02e1cec9934dd052cada5c
2023-06-05 22:52:52 +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
Gabriel Biren
9c7ff0f4e0 Skip HIDL v1.6 RTT responder VTS tests if the
capabilities do not indicate responder support.

Bug: 280550766
Test: atest VtsHalWifiRttV1_6TargetTest
Change-Id: I4e76a874837c6199b2bef65b3f0c138260972b4a
(cherry picked from commit e8aca0a7aa)
2023-05-23 16:40:08 +00:00
Gabriel Biren
e8aca0a7aa Skip HIDL v1.6 RTT responder VTS tests if the
capabilities do not indicate responder support.

Bug: 280550766
Test: atest VtsHalWifiRttV1_6TargetTest
Change-Id: I4e76a874837c6199b2bef65b3f0c138260972b4a
2023-05-22 18:58:06 +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
TreeHugger Robot
d7e21c29aa Merge "Remove unused wifi offload HAL." into udc-dev am: a60e28c818 am: 34b62b87dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23154540

Change-Id: I92c165efd5e94e0df850a8b67bfe5c12583d2444
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-13 03:33:34 +00:00
TreeHugger Robot
a60e28c818 Merge "Remove unused wifi offload HAL." into udc-dev 2023-05-13 02:22:28 +00: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
Gabriel Biren
8e9d701b56 Remove unused wifi offload HAL.
Bug: 280901687
Test: m
Change-Id: Iad9a2c470b27fbe5432fd5a88244162f8f73a71c
2023-05-11 01:07:42 +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
Gabriel Biren
2c10c4d140 Merge "Skip HIDL v1.6 RTT responder VTS tests if the capabilities do not indicate responder support." into udc-dev am: 4f9c93276d am: a19ab40ea0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23088804

Change-Id: I8e57c4664d9fccf2184db03474b783c373b385f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-10 01:09:19 +00:00
Gabriel Biren
4f9c93276d Merge "Skip HIDL v1.6 RTT responder VTS tests if the capabilities do not indicate responder support." into udc-dev 2023-05-09 23:28:34 +00:00
Gabriel Biren
6eafc23dcf Skip HIDL v1.6 RTT responder VTS tests if the
capabilities do not indicate responder support.

Bug: 280550766
Test: atest VtsHalWifiRttV1_6TargetTest
Change-Id: I4e76a874837c6199b2bef65b3f0c138260972b4a
2023-05-08 18:29:10 +00: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
d4a0a6fb73 Merge "Fix VtsHalWifiSupplicantP2pIfaceTargetTest failed issue" into udc-dev am: 8fddf60046 am: a1dc48f60d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/22873180

Change-Id: I865f0843bdc663e69793fe62e9aa4af2a0676c12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 17:04:29 +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
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
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
Kevin Jeon
0331772902 Add missing newline to health/wifi AIDL interfaces
This change adds a missing newline character to the end of dump() for
the default health and wifi int

Add missing newline to health/wifi AIDL interfaces

This change adds a missing newline character to the end of dump() for
health and wifi.

Test: Take a bugreport and verify that the "X was the duration of
      dumpsys Y" lines aren't preceded by the final line of the dump.
Test: Run "dumpsys android.hardware.health.IHealth/default" and verify
      that the new line exists.
Test: Run "dumpsys android.hardware.wifi.IWifi/default" and verify that
      the new line exists.
Bug: 278081288
Change-Id: I173dd174b5bab808c6296f7163982393e60ba0c6
2023-04-13 13:09:07 -04: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
ef3b519c03 Patch for VTS am: 93945c1d25
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2473685

Change-Id: I8c549e5424c249398bad43480997ff3d5ae07252
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-08 01:38:40 +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
Gabriel Biren
e2d0de2093 Update imports and argument comments in the NAN
sections of the Vendor HAL interface.

Bug: 267819850
Test: m
Change-Id: Ic1b25239e5cf3a5cf8633c9d1108a4c200b1b861
2023-03-01 19:10:41 +00:00
Gabriel Biren
65192c3395 Update comments for the Aware 4.0
types in the Vendor HAL interface.

Specs should be included in the
relevant places.

Bug: 267819850
Test: m
Change-Id: I1f213774ebf5dc297225a5cabb757d2956d67bf4
2023-03-01 18:02:34 +00:00
Gabriel Biren
b59064517a Merge changes from topic "remove-radio-combo-matrix" into udc-dev
* changes:
  Update usages of WifiRadioCombinationMatrix in the Vendor HAL service.
  Remove the WifiRadioCombinationsMatrix type from the Vendor HAL interface.
2023-03-01 17:51:51 +00:00
Gabriel Biren
d1bd021607 Merge "Comment fixes for the Wifi Vendor HAL." into udc-dev 2023-02-25 00:40:22 +00:00
Gabriel Biren
263db45eae Update usages of WifiRadioCombinationMatrix in
the Vendor HAL service.

Bug: 267819850
Test: Run the gTest suite under default/tests
Change-Id: I18feb87f16abbc9ece9186b2e92e19984a5a90f0
2023-02-24 21:11:08 +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
0c642ecd42 Comment fixes for the Wifi Vendor HAL.
Bug: 267819850
Test: m
Change-Id: Iaf8bd05482b87f8b0a56da8c4169413d1c6b7d0e
2023-02-22 21:09:26 +00:00
Sunil Ravi
284883f847 wifi: set join to true in p2p connect tests
After adding ag/21179155, auto join flag is
not set for every p2p connect command. The tests
are passing an unknown peer MAC address to connect(). To
pass the tests, the connect should trigger a scan and
try to find this unknown mac address. So set join flag
to true to run the same scan logic.

Bug: 268236829
Bug: 218608010
Test: atest VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: Id5baa0f599d11a3563780aae15ff3cea0407060c
2023-02-21 18:00:53 +00:00
Gabriel Biren
dcd883ff85 Merge "Free version buffer in the Vendor HAL's XML parsing logic." into udc-dev 2023-02-21 17:55:07 +00:00
Gabriel Biren
204e17171b Free version buffer in the Vendor HAL's
XML parsing logic.

Fixes a minor memory leak that results from
not freeing that buffer.

Bug: 269520490
Test: Manual test
       1. Create several XML files under
          /vendor/etc/wifi/vendor_hals
       2. Modify the codepath to run the
          initVendorHalsDescriptorList method
	  (does not run by default on Pixel).
       3. Check that the XML parsing logic is
          working as intended.
Change-Id: I42944169b70c759998d94e8523d2aa55d0366ffd
2023-02-17 16:47:29 +00:00
Sunil Ravi
2be1f2688c Wifi: Add support to query and use driver advertised interface combination
Interface combinations in legacy-hal is predefined with
'WIFI_HAL_INTERFACE_COMBINATIONS' build flag. This change
allows the WiFi HAL to request all the possible interface
concurrency combinations via vendor HAL API,
wifi_get_supported_iface_concurrency_matrix(). Thus build time
dependency can be removed by querying the combination at runtime.

Bug: 249351396
Change-Id: I3bc85ac013490949aab71a00f60028bf5daee68c
Merged-In: I3bc85ac013490949aab71a00f60028bf5daee68c
Test: Build successfully
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
(cherry picked from commit f68b9a2709)
2023-02-17 15:20:35 +00:00
Gabriel Biren
597ffa095d Merge "Remove unused DEBUG_PACKET_FATE capability from StaIfaceCapabilityMask." 2023-02-16 07:51:32 +00:00
Mahesh KKV
671f83152d Merge "Add a new AIDL API to set Multi-Link Operation mode" 2023-02-16 02:00:57 +00:00
Mahesh KKV
af05c5ef64 Merge "Add TID-to-Link mapping capability fields" 2023-02-16 01:27:52 +00:00
Mahesh KKV
6442e4a7f9 Merge "Fix multi-link llstat parsing in wifi legacy hal" 2023-02-15 23:58:58 +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(Qiang) Jiang
4496bcd4cf Merge "Modify HAL for Aware suspension mode" 2023-02-15 23:24:01 +00:00
Mahesh KKV
9785d8f10d Add TID-to-Link mapping capability fields
Add capability fields for TID-to-Link mapping negotiation support for
both station and access point.

Bug: 268219346
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest
Change-Id: Iaf82cdb8a0c3e57135487c95750f53ab1d6fc187
2023-02-15 14:32:16 -08:00
Mahesh KKV
50358c1b1b Merge "Add a maximum MLO association link count" 2023-02-15 21:58:08 +00:00
maheshkkv
a8aba17891 Add a new AIDL API to set Multi-Link Operation mode
Bug: 268235139
Test: m android.hardware.wifi-update-api
Change-Id: Iff3baf64cb6c999eca4e1bfa4af5a41cfb5e4876
2023-02-15 13:02:09 -08:00
Nate(Qiang) Jiang
7c27e36771 Merge "Modify based on the vendor feedback" 2023-02-15 18:53:20 +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
Sunil Ravi
9804ca4b46 Merge "wifi: Add BSSID of the AP in PMKSA cache added event" 2023-02-15 17:10:52 +00:00
maheshkkv
2565b87478 Add a maximum MLO association link count
Maximum MLO association link count can be an input for MLO scoring
logic. If the candidate AP has less number of links to associate,
scroring logic can give a weightage to an AP with matching links as
station Assumption here is when the environment becomes better, the
AP with less score now can be a better choice.

Bug: 269336948
Test: m android.hardware.wifi-update-api
Change-Id: Iac0c82203c9e1a23637c757f5b92f5b213bb5da6
2023-02-15 07:04:01 +00:00
Mahesh KKV
103e3baf28 Merge "Add more MLO link parameters" 2023-02-15 07:03:10 +00:00
Sunil Ravi
5d3928d622 wifi: Add BSSID of the AP in PMKSA cache added event
Deprecated onPmkCacheAdded() callback function and
added a new onPmkSaCacheAdded() callback function to
include the connected AP BSSID. This will help framework
to include BSSID information as a key to store PMKSA.

Bug: 260042356
Test: atest vts
Test: Manual - Tested WPA3 STA - AP connection multiple times and
      confirmed that PMKSA cache is added and supplicant is using
      the PMKSA cache entries for open authentication.
Change-Id: I9fc7da7f4ba60e45ddeee9a41654c74f128fe3d6
2023-02-15 04:40:17 +00:00
Ye Jiao
dec38700bb Fix multi-link llstat parsing in wifi legacy hal
Multi-link llstat parsing codes in wifi legacy hal, specifically
'copyLinkStat' and 'copyPeerInfo', pass the output container parameter
'std::vector<>' by value instead of by reference. The result is the
copied 'LinkStats' list and 'WifiPeerInfo' list are discarded when
'copyLinkStat' and 'copyPeerInfo' return. The empty links list are
passed to framework and fails validity check in Wi-Fi framework and
leads to system server crash.

Fix this issue by passing 'stats' and 'peers' by reference.

Bug: 269049672
Test: Manual Test with multi-link llstat implementation integrated
Change-Id: If8c366213af2ffcb9f7b3c904e1541ed0ac2fea4
2023-02-15 01:23:06 +00: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
feec85fcca Merge changes I86e0c465,I537588c4
* changes:
  Remove any references to DEBUG_ capabilities in the Vendor HAL service.
  Remove DEBUG_ capabilities from ChipCapabilityMask.
2023-02-15 00:42:28 +00:00
Gabriel Biren
bff0e408df Remove any references to DEBUG_ capabilities
in the Vendor HAL service.

Bug: 266521428
Test: Vendor HAL gTest suite
      (see the modified test case)
Change-Id: I86e0c465b9f9d2f31413d75727e36b42c2b6b88a
2023-02-14 22:44:11 +00: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
Mahesh KKV
bc4ca2af02 Add more MLO link parameters
Framework populates MLO link information from scan cache. In roaming
use cases, framework may not have the scan result for the roamed AP.
So, always get the MLO link parameters from the supplicant. Add static
parameters apMldMacAddress, apLinkMacAddress and frequency of the
link. Dynamic parameters like RSSI, link speed..etc. are queried from
signal poll.

Bug: 268230307
Test: m android.hardware.wifi.supplicant-update-api
Change-Id: I7ffb23a8ead63a385cd00d26969529e2943fcff1
2023-02-14 13:05:30 -08:00
Gabriel Biren
40f4b10551 Merge "Add listAliases method to the INonStandardCertCallback interface." 2023-02-14 20:58:00 +00:00
Gabriel Biren
773ab6e9e0 Add listAliases method to the INonStandardCertCallback
interface.

Bug: 205764502
Test: m
Change-Id: I2d5b6dd99dc8c56d94b04ec8efb2de8c81186b46
2023-02-14 18:28:40 +00:00
Blair Prescott
c4f8e466e6 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
(cherry picked from commit b676061cd5)
(cherry picked from commit 4d81b6562dca69a3334bcb87756539fbdaedcd2d)
2023-02-13 15:12:30 +00:00
Mahesh KKV
4ff445673d Merge "Add link state for link layer stats" 2023-02-12 20:33:24 +00:00
Mahesh KKV
14393faaf1 Add link state for link layer stats
Bug: 263029630
Test: m android.hardware.wifi-update-api
Change-Id: Ia9a1782200136cd0f58a66e7d2de700d8a75fcae
2023-02-10 14:22:20 -08:00
Sunil Ravi
16ec29b307 Wifi: IP Address Allocation in EAPOL-Key Frames
Implementation of Wi-Fi P2P Technical Specification v1.7 - Section  4.2.8
"IP Address Allocation in EAPOL-Key Frames (4-Way Handshake)".

Changes includes,
1. API to configure the IP addresses in supplicant for P2P GO to
provide the IP address to client in EAPOL handshake.
2. Send the received IP address information to framework via
p2p group started event.

Bug: 170056953
Test: Manual - Establish P2P connection & confirmed from sniffer logs
      and logcat logs that IP addresse is allocated via EAPOL exchange.
      Ping works after connection.

Change-Id: I2662fde9ca645aa5e34b21678d1a47cbf26ef3d3
2023-02-09 06:16:44 +00:00
Mahesh KKV
802d51c713 Merge "Fix the parameter range for llstats aidl unit test" 2023-02-07 19:14:03 +00:00
Mahesh KKV
ca297846bb Fix the parameter range for llstats aidl unit test
Bug: 268054128
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: I66c6bdcbd003895161334dc2b67e118c9b3bba16
2023-02-06 17:48:19 +00:00
Mahesh KKV
21a98b4a51 Rename maxMloLinkCount to maxMloStrLinkCount
The maximum number of Simultaneous Transmit Receive (STR) links used in
Multi-Link Operation can be different from the maximum radios supported
by the chip.Explicitly mention the max links as max STR links. Update
the description and usage of the capability field.

Bug: 267963579
Test: m android.hardware.wifi-update-api
Change-Id: I5691fcc44c60821766fe41e67624e458ba051059
2023-02-06 04:38:26 +00:00
TreeHugger Robot
b0a53317cf Merge "Support AFC channel allowance feature flag" 2023-02-01 23:05:55 +00:00
Gabriel Biren
c96258de1d Merge "Make WifiStaIfaces using the create() method." 2023-01-31 18:16:05 +00:00
Gabriel Biren
2f7bec812a Make WifiStaIfaces using the create() method.
Unlike the default constructor, create() populates
the weak_ptr_this_ variable, which is needed for
callbacks from the legacy hal.

Bug: 265857332
Test: Manual test - connect to an AP and walk away
        from it. Check that the RSSI callback is
        triggered in the framework.
Change-Id: I1a10a75c07ea59a3e01b9bb68d9d393bbd20d29d
2023-01-31 01:07:38 +00:00
Jooyung Han
caad2b9831 wifi: put vintf fragment into wifi apex
The AOSP-version of wifi hal apex now contains the VINTF fragment in it.

Bug: 247018693
Bug: 266885060
Test: atest CtsWifiTestCases
Merged-In: Id8f196386967c3023cb5ee308d31b8cdeed7df0b
Change-Id: Id8f196386967c3023cb5ee308d31b8cdeed7df0b
2023-01-30 11:27:22 +09:00
Jooyung Han
bab159cc73 wifi: put vintf fragment into wifi apex
The AOSP-version of wifi hal apex now contains the VINTF fragment in it.

Bug: 247018693
Bug: 266885060
Test: atest CtsWifiTestCases
Change-Id: Id8f196386967c3023cb5ee308d31b8cdeed7df0b
2023-01-30 11:21:39 +09:00
Shuibing Dai
e45012e469 Merge "Move setScanMode to legacy HAL" 2023-01-28 00:06:16 +00:00
Oscar Shu
79e826d1c9 Support AFC channel allowance feature flag
Bug: 242917176
Test: compile

Change-Id: I45c0ac54ead7c83a9f83c2a3875a4beaffc2eed0
2023-01-27 22:04:31 +00:00
Ye Jiao
50274f7696 Move setScanMode to legacy HAL
Cherry-pick from https://partner-android-review.git.corp.google.com/c/platform/hardware/interfaces/+/2369946
Implementation of setScanMode is platform-specific. It's more reasonable to move it the legacy HAL like other platform-specific APIs.

Bug: 265866990
Test: manual Test
Test: VTS
Change-Id: I2f8ff73b764ed1b9835b8e3157f673d7d558ae02
2023-01-26 21:00:32 -08: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
Oscar Shu
6317161f62 Merge "Add new API to set max power limits for mAFC" 2023-01-18 19:32:40 +00:00
Oscar Shu
ab8313ca53 Add new API to set max power limits for mAFC
HAL API support for setting max permissible power on a range of
frequencies. Unspecified frequencies will get reverted to their
respective default values.

Also add capability flag for this new API.

Bug: 242917176
Test: make -j128
Test: Manually verified the framework can call the HAL API

Change-Id: I14ac494124b51ca0b85c394eefe6332c4b382d19
2023-01-18 04:37:19 +00:00
TreeHugger Robot
71ee601352 Merge "wifi: Add support for QoS SCS policy feature" 2023-01-13 17:15:28 +00:00
Swarn Singh
34081b3607 wifi: Add support for QoS SCS policy feature
This commit defines supplicant AIDL APIs needed for QoS SCS policy
feature.

Bug: 236182432
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest

Change-Id: I88c79a11edc70f9c7b662ae81594c0fc66d558b8
2023-01-12 21:18:58 +00:00
Biswarup Pal
0e05439db2 Merge "Add suspendable option in NanDiscoveryCommonConfig" 2023-01-12 10:55:41 +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
Phill Hayers
43d9af64dc Add AIDL definitions for NAN suspension.
Bug: 259950106
Test: Not tested.
Change-Id: I0194fc2a1d9f57ca6ba14f76f5453264e3af3cca
2023-01-11 15:42:03 +00:00
Biswarup Pal
11921783d5 Add suspendable option in NanDiscoveryCommonConfig
Test: m
Bug: 263014869
Change-Id: I0bef43f361a3773ff3e589d44afe4595ddd4e21f
2023-01-11 14:52:57 +00:00
Biswarup Pal
319f99f29a Add NAN suspension flag to NanCapabilities AIDL
Test: m
Bug: 262872127
Change-Id: I01d40c8e59f4553746882745a8662b5b0fb3e19a
2023-01-09 23:34:37 +00:00
Biswarup Pal
e8c390576e Merge "Revert^2 "[Aware] Support set cluster id in AIDL"" 2023-01-09 23:30:52 +00:00
Biswarup Pal
dc7192f7d8 Revert^2 "[Aware] Support set cluster id in AIDL"
465470a02e

Change-Id: I123022198f1c08c730be18eaa3c6deee3ce0604f
2023-01-09 21:21:14 +00:00
Sujit Kautkar
61ac390b0f Merge "Revert "[Aware] Support set cluster id in AIDL"" 2023-01-09 21:16:21 +00:00
Sujit Kautkar
465470a02e Revert "[Aware] Support set cluster id in AIDL"
Revert submission 20813956-issue-262873111-API-set-clusterId-newAPI

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=oriole-userdebug&lkgb=9469876&lkbb=9470237&fkbb=9469914, bug b/264915970

Reverted changes: /q/submissionid:20813956-issue-262873111-API-set-clusterId-newAPI

Bug: 264915970
Change-Id: Ifb3806a702f585700ce80a5979fdb2608b3d9eeb
2023-01-09 21:07:10 +00:00
Sherri Lin
db51ab9dbc Merge "[Aware] Support set cluster id in AIDL" 2023-01-09 19:04:12 +00:00
Shuibing Dai
e5fbcab1a3 Add a new AIDL API for wifi indoor/dfs channel usage
In the API, we can enable/disalbe STA-connected indoor or DFS channels for WFA GO, SAP and Wi-Fi Aware.

Bug: 207669954
Test: m android.hardware.wifi-update-api
Change-Id: I8513bc265fe8fc4f43d9e4b508d8c361f3455fd7
2023-01-05 18:18:32 -08:00
Sherri Lin
f6abe359a8 [Aware] Support set cluster id in AIDL
Bug: 262872131
Test: ates android.net.wifi
Change-Id: I08000c8200861c7fed191a079c5348158de41771
2023-01-03 16:44:50 +01:00
Nate Jiang
42091764f9 Fix the issue when convert byte to uint16
When convert byte to uint16, if the byte represent a negative number,
the high 8 bit of the uint16 will be all 1, which causes a mismatch.
Same as HIDL, convert byte to unit8 then fill into the uint16

Bug: 263690436
Test: cts SingleDeviceTest
Change-Id: Id9462dce48d2a2558c6b5c104866da66ce951b0e
2022-12-28 19:25:15 +00:00
Sunil Ravi
44a6de894d Merge "Wifi: check TLSV1.3 support in TLS test" 2022-12-21 17:52:46 +00:00
Gabriel Biren
7ee56e8f2d Merge "Add callback to the supplicant interface to allow supplicant to retrieve non-standard certificates from the client." 2022-12-21 16:53:10 +00:00
Sunil Ravi
9c941fbba8 Wifi: check TLSV1.3 support in TLS test
Added the check for TLSV1.3 feature support in
SetMinimumTlsVersionEapPhase1Param test

Bug: 261922145
Test: atest SupplicantStaNetworkAidlTest
Change-Id: I26e7796d4d83e72e0098d5aa6ee520824bda23b1
2022-12-20 23:07:53 +00:00
Nate(Qiang) Jiang
09403b0f57 Merge changes from topic "aware4"
* changes:
  Add Shim layer for new HAL about Aware pairing
  [HAL] Support Wifi Aware 4.0
2022-12-20 02:25:18 +00:00
Nate Jiang
38e8db5d92 Add Shim layer for new HAL about Aware pairing
Bug: 249185683
Test: None

Change-Id: I87792a2b44afc6fb0d127b3b90f28e369e551242
2022-12-19 22:47:48 +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
TreeHugger Robot
64017373e8 Merge changes from topic "RTT_FR_U"
* changes:
  Add frequency/Bandwidth to AIDL RttResults
  wifi: Add frequency/Bandwidth to AIDL RttResults
2022-12-19 17:40:20 +00:00
Gabriel Biren
ba65bbe8a4 Add callback to the supplicant interface to allow
supplicant to retrieve non-standard certificates
from the client.

Bug: 205764502
Test: mm -j
Change-Id: Ia14d684e609c6e65229888a4f27d7c1f5af97f24
2022-12-17 00:36:11 +00:00
Sunil Ravi
f8fc237682 Add frequency/Bandwidth to AIDL RttResults
Bug: 222186547
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Test: Manual - Verified the results using wifirttscan app
Change-Id: Ieaf022fa73767e62ae95e693a5cb062c7e002563
2022-12-16 22:03:21 +00:00
Mahesh KKV
0da2997163 wifi: Add radio_id and frequency to StaLinkLayerLinkStats
Bug: 258013268
Test: m android.hardware.wifi-update-api
Change-Id: I725144033cd33e59c201e459e036c2008a8cca58
2022-12-16 17:54:51 +00:00
Sunil Ravi
f6f6149640 wifi: Add frequency/Bandwidth to AIDL RttResults
Bug: 222186547
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Test: Manual - Verified the results using wifirttscan app
Change-Id: I958d1e61ab3cf32caf9381579a06c376fe51c093
2022-12-16 02:37:06 +00:00
Mahesh KKV
5f30d333d2 wifi: Add Support for Multi-Link Layer stats in shim layer
With MLO, WiFi 7 supports establishing multiple links between the
Station and Access Point. Each of the link has its own stats.

To maintain backward compatibility, if multi link stats is not supported
by vendor, always fallback to single link layer stats.

Bug: 246988155
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Iede8ce771f0e58975222808b1870e5e2e179384c
2022-12-15 02:39:32 +00:00
Mahesh KKV
131f47c221 wifi: Add multi link layer stats support to AIDL
Bug: 246988155
Test: mm -j
Change-Id: I9b31988215d3953da6dde80aa68ead9236659d50
2022-12-15 02:38:22 +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
Mahesh KKV
43c7805bde wifi: Add unit test for multi link stats conversion
Bug: 246988155
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Ia38601dfb7bb5e43ee3b3aeb2a4ea93c7bbcba75
2022-12-15 02:35:46 +00:00
Mahesh KKV
ba4d7fe337 wifi: Fix unit test for LegacyLinkLayerStats
Due to the introduction of multi links, StaLinkLayerStats carries stats
for multiple links as a vector. For LegacyLinkLayerStats, only single
link will be available. So convertLegacyLinkLayerStatsToAidl() push the
stats for single link as the first element of the link vector.Fix the
unit test to index the first link.

Bug: 246988155
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: I8c9a8beca6bda6cf894edb616cdfe54f09d029f7
2022-12-15 02:34:13 +00:00
Sunil Ravi
1781b8f354 Merge "wifi: Add Signal polling interface to AIDL" 2022-12-14 22:54:36 +00:00
Sunil Ravi
fff05cd6e1 wifi: Add the connected frequency in the state change event
Currently framework gets the connected AP frequency
information by checking the scan cache & through signal
poll command. But these mechanisms doesn't work if framework
scan cache is not updated with the connected AP information
(For example in case of roaming and force connection without scan).
To fix this modified supplicant state change interface
and included the frequency of the connected channel in the
state change event.

Bug: 240299862
Test: atest vts
Test: Manual - Tested STA - AP connection and verfied the data
      from debug logs.
Change-Id: I936bd3256420de38cdfee740e43972bc262ec4b8
2022-12-13 21:46:22 +00:00
Sunil Ravi
5fdc39c077 Merge "wifi: Send channel change event to framework" 2022-12-13 21:18:53 +00:00
TreeHugger Robot
db45b01064 Merge "Add setDtimMultiplier() and its implementation." 2022-12-13 00:45:32 +00:00
Sunil Ravi
4855621726 wifi: Legacy HAL support to get concurrent TDLS session count
Added a new field in chip capabilities to get the
maximum number of concurrent TDLS sessions supported
by the chip

Bug: 240247868
Test: Manual - STA connect/disconnect
Change-Id: I62fcd2d4a562b088cdeb4b04f72cfe55ed61241c
2022-12-12 20:20:38 +00:00
Sunil Ravi
dbd11bdd41 wifi: AIDL support to get concurrent TDLS session count
Added a new field in chip capabilities to get the
maximum number of concurrent TDLS sessions supported
by the chip

Bug: 240247868
Test: Manual - STA connect/disconnect
Test: m android.hardware.wifi-update-api
Change-Id: Ie2a4129241f40fc9eba28105b8ea3c06b27a8492
2022-12-12 20:20:35 +00:00
Mahesh KKV
c84d3770eb wifi: Add getWifiChipCapabilities() in shim layer
Bug: 231497844
Test: hardware/interfaces/wifi/aidl/default/tests/runtests.sh
Change-Id: Iba4f749999e9a2aa25455e09440a961188f049f9
2022-12-12 02:40:01 +00:00
Mahesh KKV
766953f20d wifi: Add AIDL support for getWifiChipCapabilities()
Define a new AIDL API to get capabilities from the vendor chip.
Bug: 231497844
Test: m android.hardware.wifi-update-api

Change-Id: I3c1cfce4df2101125a628f230b938b3be0f80311
2022-12-12 02:39:18 +00:00
Sunil Ravi
55651432be wifi: Send channel change event to framework
Added a new StaIfaceCallback method to indicate that
the operating frequency of the BSS is changed
due to channel switch announcement from the AP.

Bug: 195617184
Test: Manually triggered channel switch through peer AP hostapd command
      and verified the new frequency in STA logs.
Change-Id: I9dd59d7c5d4ddc5f3443f8b6786cfea9beec4f3c
2022-12-10 23:04:25 +00:00
TreeHugger Robot
9a05af80ae Merge "Notify the AT_PERMANENT_ID_REQ is denied from peer." 2022-12-10 05:21:42 +00:00
Kai Shi
6d02d408aa Add setDtimMultiplier() and its implementation.
Bug: 259554744
Test: compile
Change-Id: Ifda9d857e7dff83c8163503e62081e39952c53d7
2022-12-09 18:33:40 -08:00
Gabriel Biren
f2efc21d5d Merge changes from topic "switch-to-aidl-vendor-hal"
* changes:
  Update VTS test dependencies.
  Update Vendor HAL APEX to use the AIDL service.
2022-12-09 18:01:54 +00:00
Nate(Qiang) Jiang
f75666df29 Merge "Create a snapshot of the hardware_legacy" 2022-12-09 03:19:00 +00:00
Nate Jiang
7a7fd84ce2 Create a snapshot of the hardware_legacy
Create a snapshot of hardware_legacy for legacy HIDL, to avoid any build breakage due to new hardware_legacy for the new AIDL. Should be removed with the HIDL when we finish the switch

Bug: 205044134
Test: build and CtsWifiTest

Change-Id: Ib1068112f6c90f2a41b68e20027d959c95798120
2022-12-08 09:38:52 -08:00
Mahesh KKV
c18959820f wifi: Add Signal polling interface to AIDL
Bug: 260018485
Test: m android.hardware.wifi.supplicant-update-api
Change-Id: I8cfca1b2e17c153703b524a0d6dd13199c90cdd6
2022-12-08 08:41:52 -08: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
bfc9931975 Update Vendor HAL APEX to use the AIDL service.
Bug: 205044134
Test: Check that AIDL service is running on a
      Bluejay device.
Change-Id: I5a09fe1a68fee871e6ff8fa338f4482500e6cf48
2022-12-07 23:49:53 +00:00
Sunil Ravi
f521450b35 wifi: Send DPP connection status result
This change is for Enrollee to send the DPP connection status
result frame to configurator. The changes includes,
1. Modified the existing onDppSuccessConfigReceived callback function
to indicate that configurator has requested for the connection status
result frame.
2. New callback function to indicate that the connection status result
frame is sent.
3. Defined connection status code.

Bug: 235844564
Test: m android.hardware.wifi.supplicant-update-api
Test: Manual - Ran DPP tests and confirmed that
      connection status frame is processed correctly
Change-Id: I45866707971c874c9270e7316a7b86fe0953d95a
2022-12-07 07:30:58 +00:00
Mahesh KKV
7998e043fa Merge changes from topic "Wi-Fi 7: TID2Link & Link Removal"
* changes:
  wifi: Notify MLO Link status updates
  wifi: Add TID to link mapping support
2022-12-06 22:50:13 +00:00
Steven Liu
c276eafd3a Notify the AT_PERMANENT_ID_REQ is denied from peer.
Bug: 239710602
Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: Ib21d601cc980505d7cb60091ec1dd88a579d9738
2022-12-06 20:16:41 +00:00
TreeHugger Robot
b51f4c577b Merge "Add HAL API to support conservative mode for EAP-SIM/AKA/AKA'" 2022-12-06 01:26:52 +00:00
Mahesh KKV
9cb9424e1f wifi: Notify MLO Link status updates
Add a callback to notify MLO link status changes due to
- Multi-Link Reconfiguration (AP Removal)
- TID to link mapping updates

Bug: 247119055
Bug: 248289182
Test: mm -j

Change-Id: I1010cfb3ef608466a46d54e1ef2ae4e665504210
2022-12-02 14:02:50 -08:00
Mahesh KKV
f0bd8c223f wifi: Add TID to link mapping support
TID-to-link mapping, which is introduced in IEEE 802.11be standard
allows an Access Point and a Station to determine how uplink and
downlink QoS traffic corresponding to TID values between 0 and 7 will be
assigned to the setup multi links.

This commit adds an interface to TID-to-link mapping in existing MloLink
AIDL.

BUG: 247119055
Test: mm -j
Change-Id: I3ef6e37d9857606020a8e0580c82ca8ab1b8bf82
2022-12-02 14:02:50 -08: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
Steven Liu
9ff9db4635 Add HAL API to support conservative mode for EAP-SIM/AKA/AKA'
Bug: 239710602
Test: atest vts
Change-Id: Ic2d0d8453cff79c4242c1d701b36c482146a701f
2022-11-26 18:22:36 +00:00
TreeHugger Robot
1f5dec26ef Merge "wifi: new state change HAL callback with current used key management mask" 2022-11-22 18:50:09 +00:00
Jimmy Chen
d7ed5ae3f9 wifi: new state change HAL callback with current used key management mask
Bug: 230766005
Test: atest vts
Change-Id: I9a9d85df53fe615f89a448f8ece16c6cbfbf6dee
2022-11-16 13:36:34 +08:00
Jimmy Chen
67ebabc6ae wifi: EAP minimum TLS version API
Bug: 160819609
Test: atest VtsHalWifiSupplicantStaNetworkTargetTest
Change-Id: I33e8d2f36e63560d6e084a5dcc78e89077486c0c
2022-11-16 09:40:14 +08:00
Biswarup Pal
76514ebd34 Add HAL API to pass GO interface MAC address in GC from supplicant
The GO interface MAC address would be used to calculate the link-local
IPv6 address of the GO in the GC side.

Test: m
Bug: 233912758
Change-Id: I8cdae90a2703d446dafbdfba8f99c191b751f552
2022-11-15 09:55:00 +00:00
kensun
a7e0a83c0e Add HAL APIs to query cached scan results
Add HAL API to retrieve the on-chip scan results.

Bug: 232030878
Test: New API works fine
Change-Id: I159aec819959e4ad020ee0d44c8110fe34d451b0
2022-11-10 02:26:50 +00:00
Gabriel Biren
590248f68e Add a null pointer check for wifi_chip in am: 4e6349240e am: 26b625704e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2279026

Change-Id: I3a56d4c73b2c3c40dfb650a32cd431f414b4ba7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-05 07:13:36 +00:00
Gabriel Biren
26b625704e Add a null pointer check for wifi_chip in am: 4e6349240e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2279026

Change-Id: Ia67f4b0cca7ea6f5f55ce3857fd2c9df3169d4dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-05 06:45:11 +00:00
Jaewan Kim
7df5c1c345 Disable verbose nlinterceptor log
Test: No verbose log on Cloud Android with Wi-Fi is turned on
Bug: 256518068
Change-Id: I062e698b64114f139997cd24b16f90dd52048247
2022-11-01 08:34:56 +09:00
Gabriel Biren
4e6349240e Add a null pointer check for wifi_chip in
configureChipToSupportIfaceTypeInternal.

Bug: 253411345
Test: atest VtsHalHostapdTargetTest
Change-Id: Ieb6de7311de8d98742e302b35196bee7fa7661ed
(cherry picked from commit b1c2d07e4e)
2022-10-31 22:09:14 +00:00
Etan Cohen
742354a2a4 Merge "Coalesce OWNERS" am: c1c823a9c1 am: 01c4d7fc07 am: d84cfa698b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2260625

Change-Id: I6f97891fbf8069fdbe3f65be1f2848f6ec648ce3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-22 19:54:55 +00:00
Etan Cohen
b65ff31684 Coalesce OWNERS
Bug: N/A
Test: N/A
Change-Id: Ia603a0cc323e65903f8de6a04ce1dd82407f012d
2022-10-19 04:06:09 +00:00
Gabriel Biren
336c45c95d Merge "Add a null pointer check for wifi_chip in configureChipToSupportIfaceTypeInternal." am: 46417dd857 am: eb25ad2692 am: fc9f86a157
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2256003

Change-Id: I474e0c383db003edf0a046f41810bf1b5fb0f1de
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 18:30:12 +00:00
Gabriel Biren
b1c2d07e4e Add a null pointer check for wifi_chip in
configureChipToSupportIfaceTypeInternal.

Bug: 253411345
Test: atest VtsHalHostapdTargetTest
Change-Id: Ieb6de7311de8d98742e302b35196bee7fa7661ed
2022-10-17 16:25:07 +00:00
Kenn Frankel
22f5a24b17 Merge "AOSP counterpart of wifi hal apex" am: 2b49939f33 am: fad5dead0f am: 763c1896ab
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2239855

Change-Id: I35e09988ea1a8fceb6de20e31e731261e0d4c4c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-14 02:56:05 +00:00
Kenn Frankel
e85de1d957 AOSP counterpart of wifi hal apex
Bug: 247018693
Test: CtsWifiTestCases
Change-Id: I5deb95b4cc0c1075f65bc809ca256df91ce9a9bb
2022-10-07 22:13:38 +00:00
Treehugger Robot
ad4f2563a9 Merge "Disable some sanitizers on libnlinterceptor targets." am: 481337da0a am: 8f467b85c4 am: 1813415c3f am: a6fb0adec5 am: d80d2df338
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2239862

Change-Id: I708d62dd47a7be9b9b5a60992a568fd8264623ab
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-04 01:02:54 +00:00
Peter Collingbourne
f10ee08f84 Disable some sanitizers on libnlinterceptor targets.
ASan is not meant to be enabled in production binaries, and the fuzzer
"sanitizer" is only intended to be used with fuzz targets. So disable
both of them.

Change-Id: Ice7d8d3fd6621077d485b430d9e06fb3ba240e87
2022-09-30 18:08:28 -07:00
Les Lee
3ba02e052b wifi: Two AP instances use the same interface name
When device supports two AP interfaces (i.e. {AP, 2}. not a bridged case),
the AP interface name might be observed from the getPredefinedApIfaceNames.
Check if the interface name is used or not when creating a new interface.

Bug: 244387442
Test: Manual test by commands
adb shell cmd wifi start-softap tetheredAp open -b 2
adb shell cmd wifi start-lohs lohs open -b 5

Change-Id: I59b3796895ee09452a9650c4dc138ad9e143282e
2022-09-08 02:02:22 +00:00
Treehugger Robot
08f3ea9e97 Merge changes from topic "cp-libwifihal-soong"
* changes:
  Build libwifi-hal-* modules only for the first arch
  android.hardware.wifi@1.0-service in soong
2022-08-22 02:30:56 +00:00
donghongweng
3e559f9c05 Fix unqualified-std-cast-call compiler warning am: f533ccb14e am: e3b2140f84 am: 930c93ed76 am: 599f7c0175 am: fd470c4c62
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2184585

Change-Id: I37a50edec8e523ca4ed68e8b5534248670de72f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-19 07:45:20 +00:00
Xin Li
be8ea4d3a8 Merge android12L-tests-dev@8941410
Change-Id: I39565ad6a87b2fdd6172675441e012943f5376b1
2022-08-17 22:38:00 -07:00
donghongweng
f533ccb14e Fix unqualified-std-cast-call compiler warning
Test: m
Change-Id: I403ce701846a3d3582e1dfa5557fe981e86f2140
2022-08-17 15:49:59 +08:00
Jiyong Park
46afe63eaf Build libwifi-hal-* modules only for the first arch
Previously, the build rules assumed that the target supports both 64 and
32 bit architectures, which isn't true for 32-bit-only targets. That
caused build breakage on such targets. Fixing that by building the
modules only for the first architecture (64 on 64-only or 64/32 target,
and 32 on 32-only target).

Bug: 241916304
Test: build the 32-bit-only target
Merged-In: I5353ab1561622eae12e2dff87eb0f17b47c3773d
Change-Id: I5353ab1561622eae12e2dff87eb0f17b47c3773d
(cherry picked from commit 3ab5c90104)
2022-08-17 16:41:19 +09:00
Jooyung Han
1e6cdac0bc android.hardware.wifi@1.0-service in soong
As libwifi-hal is migrated to soong, the service is migrated to soong as
well.

Bug: 240099735
Test: CtsWifiTestCases
Merged-In: Ie5a4ec6658d5f6aa3d4902c9c3c4b3bef9ff1cde
Change-Id: Ie5a4ec6658d5f6aa3d4902c9c3c4b3bef9ff1cde
(cherry picked from commit c4ac3355a6)
2022-08-17 16:41:10 +09:00
Jiyong Park
3ab5c90104 Build libwifi-hal-* modules only for the first arch
Previously, the build rules assumed that the target supports both 64 and
32 bit architectures, which isn't true for 32-bit-only targets. That
caused build breakage on such targets. Fixing that by building the
modules only for the first architecture (64 on 64-only or 64/32 target,
and 32 on 32-only target).

Bug: 241916304
Test: build the 32-bit-only target
Change-Id: I5353ab1561622eae12e2dff87eb0f17b47c3773d
2022-08-12 13:42:56 +09:00
Jooyung Han
c4ac3355a6 android.hardware.wifi@1.0-service in soong
As libwifi-hal is migrated to soong, the service is migrated to soong as
well.

Bug: 240099735
Test: CtsWifiTestCases
Change-Id: Ie5a4ec6658d5f6aa3d4902c9c3c4b3bef9ff1cde
2022-07-25 17:53:35 +09:00
Gabriel Biren
23ffe48a55 Merge "Add WiFi Vendor HAL AIDL interface definitions." am: 1bdfe39266 am: c75dd7f4bb am: f657125ec7 am: 35d8198274 am: 3c1e51ebd3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2078202

Change-Id: Iced875c4506795405bcc5353def89711185c45b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 17:58:39 +00:00
Gabriel Biren
c75dd7f4bb Merge "Add WiFi Vendor HAL AIDL interface definitions." am: 1bdfe39266
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2078202

Change-Id: Icf2fb7abdd0cb0fe825e70ea03fcd51686bf2c09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 16:27:09 +00:00
Gabriel Biren
1ddc35a98f Merge "Add logic to the EnableMacRandomization VTS test to check whether mac randomization is enabled." 2022-07-14 16:12:02 +00:00
Gabriel Biren
1bdfe39266 Merge "Add WiFi Vendor HAL AIDL interface definitions." 2022-07-14 16:10:58 +00:00
Les Lee
73e015a761 Merge "wifi: create interface before running hostapd vts" into stage-aosp-tm-ts-dev 2022-07-12 03:04:29 +00:00
Gabriel Biren
910d5df56b Add WiFi Vendor HAL AIDL interface definitions.
Bug: 205044134
Test: mm -j
BYPASS_INCLUSIVE_LANGUAGE_REASON=HE refers to high-efficiency.

Change-Id: I757f36feca9f30ad5e04204b7b0fd4caee63cabc
2022-07-08 18:15:00 +00:00
Gabriel Biren
dd789ad9dc Update supplicant AIDL VTS tests to use the new
version of stopWifiFramework().

Bug: 234853504
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest # AIDL service
Change-Id: I9e06f025a5b6b44d6a6caf8362c64bd5a546e1ac
(cherry picked from commit 99bb148510)
Merged-In: I9e06f025a5b6b44d6a6caf8362c64bd5a546e1ac
2022-07-07 18:28:55 +00:00
Gabriel Biren
337406a5c2 Add logic to the EnableMacRandomization VTS test to
check whether mac randomization is enabled.

Bug: 235182238
Test: atest VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: I1b16da1ee07f98caf6b90ded1bae51b6b7cc8c1a
2022-07-07 18:00:32 +00:00
Les Lee
912469a468 wifi: create interface before running hostapd vts
Adding to support creating interface in hostapd vts.

cp from aosp/2116501

Bug: 230008250
Test: 1. setprop ro.vendor.wifi.sap.interface swlan0
2. vts-tradefed run commandAndExit vts
--skip-all-system-status-check --primary-abi-only
--skip-preconditions --module VtsHalWifiHostapdV1_2Target
-l INFO

Change-Id: I483671cb01b68bc6f5ac4840c61b10f4c31f10e4
Merged-In: I483671cb01b68bc6f5ac4840c61b10f4c31f10e4
2022-07-07 15:52:59 +00:00
Les Lee
ef173b29c2 resolve merge conflicts of 155f20a6cd to android12-tests-dev am: 559df942c8 am: a7ce9003ed am: 45263c60fa am: 2edd0e9db6 am: 830175321b am: 01b93be75c am: b520b3555f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2141153

Change-Id: I162bae22aa97e5096c00b7e3750896d401f1c645
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 06:45:58 +00:00
Les Lee
2edd0e9db6 resolve merge conflicts of 155f20a6cd to android12-tests-dev am: 559df942c8 am: a7ce9003ed am: 45263c60fa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2141153

Change-Id: I96b950e95d8e7295f6f8d65a8116eba8537d45f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 05:20:53 +00:00
Les Lee
45263c60fa resolve merge conflicts of 155f20a6cd to android12-tests-dev am: 559df942c8 am: a7ce9003ed
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2141153

Change-Id: Ia0adbb9811961ec400326a3e11a0cc0168e8e0c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 05:05:07 +00:00
Les Lee
a7ce9003ed resolve merge conflicts of 155f20a6cd to android12-tests-dev am: 559df942c8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2141153

Change-Id: Id18ad120af3812f613b9b14888b96e4e90b50cfc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-01 04:48:29 +00:00
Chris Ye
04b7d70609 Merge "Enable the tracing for Wifi supplicant and hostapd HAL." am: 235abdf23c am: 0fa30da096 am: 3b9f5d2553 am: 96f1efb831 am: e421a8e872
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2140840

Change-Id: I4838fb76ed9465b65299bf033266b11ad3a45205
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 19:07:03 +00:00
Chris Ye
0fa30da096 Merge "Enable the tracing for Wifi supplicant and hostapd HAL." am: 235abdf23c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2140840

Change-Id: I97d49a078c1ec0d811aa7a2ed438336d4fb1bf44
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-30 17:49:15 +00:00
Les Lee
559df942c8 resolve merge conflicts of 155f20a6cd to android12-tests-dev
Test: I solemnly swear I tested this conflict resolution.
Bug: 237593038
Change-Id: I6cce0869b6cce7b5e41b71c67991061e226bb305
2022-06-30 05:37:15 +00:00
Chris Ye
3a7840ba92 Enable the tracing for Wifi supplicant and hostapd HAL.
Bug: 237138934
Test: Manual test. Capture atrace with network tag turned on.
Change-Id: Ib982333ec31d4b9f2b6ec999823f08eeeb0ff587
2022-06-30 00:10:29 +00:00
Gabriel Biren
c33f1282d8 In supplicant VTS test setup, make sure that the
wifi hal is stopped before starting wifi.

Bug: 234853504
Test: atest VtsHalWifiSupplicantV1_0TargetTest # HIDL service
Change-Id: I413c3803a6607a72cc3aa8a5fa208551be1b1032
(cherry picked from commit bfe60cda4d)
Merged-In: I413c3803a6607a72cc3aa8a5fa208551be1b1032
2022-06-29 16:41:51 +00:00
Treehugger Robot
8656a87385 Merge "In supplicant VTS test setup, make sure that the wifi hal is stopped before starting wifi." into android12-tests-dev am: e6c80028af
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2128497

Change-Id: I9e39d4ed48c0dc653a9ee312021e6e80e351fe00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-29 03:08:47 +00:00
Jooyung Han
c3f8861bb8 Merge "Remove AIDL-libs from VNDK" 2022-06-20 01:15:09 +00:00
Gabriel Biren
9ea484ffc0 In supplicant VTS test setup, make sure that the
wifi hal is stopped before starting wifi.

Bug: 234853504
Test: atest VtsHalWifiSupplicantV1_0TargetTest # HIDL service
Change-Id: I413c3803a6607a72cc3aa8a5fa208551be1b1032
(cherry picked from commit bfe60cda4d)
2022-06-16 18:01:15 +00:00
Gabriel Biren
62671c90f1 Merge changes I9e06f025,I413c3803 am: 7b27d7bcc6 am: 380f7e1461 am: fcf7b3d82d am: d6c583fabb am: c315bdd501
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2126372

Change-Id: I63443f0f2dd770dc866fad4a5788bd7089faf1df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 17:59:08 +00:00
Gabriel Biren
fcf7b3d82d Merge changes I9e06f025,I413c3803 am: 7b27d7bcc6 am: 380f7e1461
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2126372

Change-Id: I8980679e592d921e136b1aedf64c88220fa711a0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 16:46:23 +00:00
Gabriel Biren
99bb148510 Update supplicant AIDL VTS tests to use the new
version of stopWifiFramework().

Bug: 234853504
Test: atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest # AIDL service
Change-Id: I9e06f025a5b6b44d6a6caf8362c64bd5a546e1ac
2022-06-15 00:04:50 +00:00
Gabriel Biren
bfe60cda4d In supplicant VTS test setup, make sure that the
wifi hal is stopped before starting wifi.

Bug: 234853504
Test: atest VtsHalWifiSupplicantV1_0TargetTest # HIDL service
Change-Id: I413c3803a6607a72cc3aa8a5fa208551be1b1032
2022-06-15 00:01:29 +00:00
Jooyung Han
d81d6a12be Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Bug: 234181591
Test: m
Merged-In: If999df9c78a20df931177da11742b1c5de19bc08
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
2022-06-14 16:42:42 +09:00
Jooyung Han
c0b24f4f13 Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Ignore-AOSP-First: some libs are still in internal master only.

Bug: 234181591
Test: m
Merged-In: If999df9c78a20df931177da11742b1c5de19bc08
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
(cherry picked from commit 5527adfd7f)
2022-06-14 14:08:59 +09:00
Les Lee
42147b7b5b wifi: create interface before running hostapd vts
Adding to support creating interface in hostapd vts.

Bug: 230008250
Test: 1. setprop ro.vendor.wifi.sap.interface swlan0
2. vts-tradefed run commandAndExit vts
--skip-all-system-status-check --primary-abi-only
--skip-preconditions --module VtsHalWifiHostapdV1_2Target
-l INFO

Change-Id: I483671cb01b68bc6f5ac4840c61b10f4c31f10e4
2022-06-07 10:17:30 +08:00
Jooyung Han
5527adfd7f Remove AIDL-libs from VNDK
Some are still in VNDK because they are used in other VNDK libs.

Ignore-AOSP-First: some libs are still in internal master only.

Bug: 234181591
Test: m
Change-Id: If999df9c78a20df931177da11742b1c5de19bc08
2022-06-02 17:43:19 +09:00
Sunil Ravi
20022e6e0e Merge "wifi: Clear ring bufffers on detecting buffer corruption" into tm-dev am: 60931f8ec6 am: 78ce85df3b am: 74a83dc69e am: d7f5e9d111
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/18451407

Change-Id: Ieccb0de85deb38ccc1bfa269467113d9861234a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-24 06:13:37 +00:00
Sunil Ravi
07ef191b5a wifi: Clear ring bufffers on detecting buffer corruption
While appending the newly received buffer to ring buffer list,
check the size of the first buffer in the ring buffer list.
If it is invalid(zero size or exceeding the max allowed size),
return failure & clear all the ring buffers.

Bug: 232477451
Test: vts test - 1.6/default/tests/runtests.sh
Test: Manual - Ran basic wifi tests & checked bugreports

Change-Id: Iaa41262f534914b971fe178053f1974248a46e70
2022-05-23 11:20:57 -07:00
TreeHugger Robot
feb228ea96 Merge "Check and catch the callback transaction error" into tm-dev am: 1fd86d9b89 am: b6a3ac316d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17945762

Change-Id: I31432aa39b3b82b7133d97cc8c4bf4770a44250e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-28 03:27:28 +00:00
TreeHugger Robot
1fd86d9b89 Merge "Check and catch the callback transaction error" into tm-dev 2022-04-28 02:10:35 +00:00
Isaac Chiou
a184fed8c5 Merge "Add HAL APIs for TX power limits" into tm-dev am: 59878fddc9 am: fae09234ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/17219203

Change-Id: I6110b3c7454e528f8e3c06c9d5972913dcb791d1
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-26 07:26:33 +00:00
Isaac Chiou
59878fddc9 Merge "Add HAL APIs for TX power limits" into tm-dev 2022-04-26 06:32:30 +00:00
Nate Jiang
95939ed300 Check and catch the callback transaction error
Bug: 230277359
Test: vts VtsHalWifiRttV1_6TargetTest
Change-Id: Ibcccd0d60d6907c95cfa95c0e55501248bc65e4b
2022-04-25 13:08:38 -07:00
Isaac Chiou
52afeb68e3 Add HAL APIs for TX power limits
To lower the instantaneous battery current draw of WiFi, we provide
a way to allow PowerManager to enable/disable Tx power limits.
In the legacy HAL, we call the API in Broadcom HAL to
enable/disable WiFi TX power limits.

Bug: 215193418
Test: New APIs work fine
Change-Id: I1fbe71c3380514e2eba96adc5902d2028a55e006
2022-04-21 11:20:44 +08:00