Commit graph

157 commits

Author SHA1 Message Date
Les Lee
af860de0fc vts: Add vts to test setVoipMode
Bug: 295885471
Test: atest -c VtsHalWifiChipTargetTest
Change-Id: I976f80006aeb88bde2ae34ca4f9be72cea727d9e
2023-12-14 10:59:19 +00:00
Gabriel Biren
214578d9e6 Add list of OuiKeyedData to ApInfo.
Data will be passed to the framework
in the onApInstanceInfoChanged callback.

Bug: 296069900
Test: m
Change-Id: I69eac9a0b92916be9b80e844d6287545454fa203
2023-11-23 01:18:15 +00:00
Gabriel Biren
66bab48e20 Add list of OuiKeyedData to the Hostapd
AIDL IfaceParams type.

Requires update to the latest compatibility
matrix to upgrade the Hostapd HAL to V2.

Bug: 296069900
Test: m
Change-Id: I125937857fbc5fee0815369532e502da4c454a53
2023-11-21 00:55:09 +00:00
Gabriel Biren
369df82b89 Merge "Disable Wi-Fi framework during VTS" into main am: bddf425784 am: 93ce27b837
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2728874

Change-Id: Idad98c56ad219fd26f7e26e4b1c66df90d35646c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-26 00:37:32 +00:00
Gabriel Biren
93ce27b837 Merge "Disable Wi-Fi framework during VTS" into main am: bddf425784
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2728874

Change-Id: Idf7f13190d2e731afa4633b7bc31437ae2ed0ed3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-25 23:41:06 +00:00
Gabriel Biren
ff914778ef Rename toggleWifiFramework in the Hostapd
AIDL test utils in order to avoid having
an ambigous function call.

aosp/2728874 adds a method of the same
name, which is causing pre-submit issues.

Bug: 297820612
Test: atest VtsHalHostapdTargetTest
Change-Id: Ie4da0a0037e7411e7908401f021b48246ea227bd
Merged-In: Ie4da0a0037e7411e7908401f021b48246ea227bd
(cherry picked from commit 94950dc20d)
2023-09-15 16:59:29 +00:00
Ye Jiao
46538346af Disable Wi-Fi framework during VTS
When VTS case kills supplicant in SetUp, Wi-Fi framework will trigger
recovery process and causes races between VTS and Wi-Fi framework.

Disable Wi-Fi framework using 'cmd wifi' in SetUp.

Bug: 297820612
Test: run vts -m VtsHalWifiHostapdV1_0TargetTest with new case
Change-Id: I5ea7f00cfebf79021185f66766454d053c973b31
2023-09-14 01:19:47 +00:00
Gabriel Biren
c6cacf6149 Use the hostapd_test_utils helper methods in
the Hostapd AIDL VTS tests.

At the beginning of each test, we now:
 1. Disable the Wifi framework, Hostapd, and Vendor HAL.
 2. Enable the Hostapd and Vendor HAL.

At the end of each test, we now:
 1. Disable the Hostapd and Vendor HAL.
 2. Enable the Wifi framework.

Bug: 283402709
Test: atest VtsHalHostapdTargetTest --iterations 10
       # Tested on both an Android T and U device.
       # All tests passed in both cases.
Change-Id: I8b5e24ad44d13fad09d84f1b212e60ca8df3aa7e
2023-08-30 19:11:00 +00:00
Gabriel Biren
3454ce179a Add hostapd_test_utils helper methods for the
Hostapd AIDL VTS tests.

Main purpose will be to enable/disable the
HALs and Wifi framework before and after
each test.

Bug: 283402709
Test: atest VtsHalHostapdTargetTest
Change-Id: Ib3ceca4ad25f472e1b75fa95661235c880a489fd
2023-08-30 19:09:30 +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
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
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
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
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
e80aabbc1d Revert "Remove dependencies on the HIDL Vendor HAL from"
This reverts commit fc6bd8c564.

Reason for revert: Blocking Wembley team

Bug: 261042084
Test: Local test as in 261042084#comment8
Change-Id: I9103fa8bdcdea48648574f034c51ea8f2b9c25cc
2022-12-02 15:46:26 +00:00
Gabriel Biren
fc6bd8c564 Remove dependencies on the HIDL Vendor HAL from
the hostapd and supplicant VTS tests.

Bug: 205044134
Test: atest VtsHalHostapdTargetTest
      atest VtsHalWifiSupplicantStaIfaceTargetTest \
            VtsHalWifiSupplicantStaNetworkTargetTest \
	    VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: Ibdc5ea1f482a5c886029e5048d884ac15ac4d56e
2022-11-28 18:29:23 +00:00
Etan Cohen
b65ff31684 Coalesce OWNERS
Bug: N/A
Test: N/A
Change-Id: Ia603a0cc323e65903f8de6a04ce1dd82407f012d
2022-10-19 04:06:09 +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
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
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
Jiyong Park
70f5837e1f Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: I61eb51c0334eb99489c6f1570110d7e18c350c99
2022-04-16 07:03:24 +09:00
Chris Ye
c04af1c235 Fixed HostApd VTS test failure.
Add filed in hwModeParams.maximumChannelBandwidth for Non-ACS AP
interface.
Use HAL AP iface name instead of hardcoding constant.

Bug: 226872346
Test: atest VtsHalHostApdTargetTest
Change-Id: Ic5eacb99659a27cb18536a1c11f9027c13281862
2022-03-28 18:45:14 -07:00
Chih-hung Hsieh
34593d4e2a Merge "Add timed out test files to tidy_timeout_srcs" am: ff54f73b4f am: fa83970b3a am: 581616e658
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1992232

Change-Id: I2eac13fe3b5ab0b4f15d6ceadf376e5e74124a81
2022-02-24 01:32:09 +00:00
Chih-Hung Hsieh
ad1bf31b78 Add timed out test files to tidy_timeout_srcs
* Timed out runs do not show any warning messages.
* These test files cannot finish clang-tidy runs with
  the following settings:
    TIDY_TIMEOUT=90
    WITH_TIDY=1
    CLANG_ANALYZER_CHECKS=1
* When TIDY_TIMEOUT is set, in Android continuous builds,
  tidy_timeout_srcs files will not be compiled by clang-tidy.
  When developers build locally without TIDY_TIMEOUT,
  tidy_timeout_srcs files will be compiled.
* Some of these test modules may be split into smaller ones,
  or disable some time consuming checks, and then
  enable clang-tidy to run within limited time.

Bug: 201099167
Test: make droid tidy-hardware-interfaces_subset
Change-Id: I1de28f1572fff368f67eab512fffec9f2e5c2a9b
2022-02-18 17:25:41 -08:00
Gabriel Biren
fea031e81d Reorder the hostapd Generation enum to list
the WiFi generations chronologically.

Bug: 213475388
Test: Build the interface (mm -j)
Change-Id: I9f501c021956a376c03884dadade473ab0953bd3
(cherry picked from commit 04deb64be1)
2022-02-18 16:53:03 +00:00
Ahmed ElArabawy
7f620e3a86 Wifi: add maximum channel bandwidth limit to softAp
This commit adds the maximum bandwidth limit on softAp connection.

Bug: 215120219
Test: VTS test
Change-Id: Ic364ad13ec2787080f99479e00bce5aacf88022d
2022-02-08 13:31:15 -08:00
Ahmed ElArabawy
f815455af5 IHostapd: Add support for OWE security encryption type.
This commit is to add the EncryptionType:WPA3_OWE  to allow setup of OWE Soft-AP.

Bug: 217669241
Test: VTS tests
Change-Id: Ib862ba014eacaf4429bd3e44def3f7394643f98e
2022-02-04 15:31:10 -08:00
Ahmed ElArabawy
4b5e558389 Merge "IHostapd: Add support for OWE_TRANSITION security encryption type." 2022-01-28 19:01:41 +00:00
Purushottam Kushwaha
e13c7b20e2 IHostapd: Add support for OWE_TRANSITION security encryption type.
This commit is to add the EncryptionType:OWE_TRANSITION to allow setup
of OWE-Transition Soft-AP.

Bug: 181736011
Test: VTS tests
Change-Id: Ibfcadfc6fd9c4d0d88755f6d07de72c78efc5968
Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
2022-01-26 09:45:39 -08:00
Chris Ye
02c7bb3df9 Get bridged AP interface name from Wifi HAL.
In bridged AP VTS test, need to get the interface name from bridged AP
from Wifi HAL.
As Wifi HAL is still in HIDL interface, need to use HIDL API to obtain
the bridged AP interface name.

Test: atest VtsHalHostapdTargetTest
Bug: 211073349
Change-Id: Ib594877899ff0fe3ef0a7f01fdb169204dff6a74
2022-01-25 19:15:15 +00:00
Ahmed ElArabawy
c552b141e3 WiFi: Basic support for 11be to Hostapd HAL
In this commit, basic support for 11be is added to HostApd HAL.
That includes:
1. Adding 320MHz bandwidth channels
2. Adding 11be to list of standards
3. Add a flag to enable/disable 11be for SoftAp

Bug: 198746544
Test: Pass VTS tests, and presubmit tests
Change-Id: I14e1bd8ab00692e743a3a49096fbd66aca806730
2022-01-18 17:29:03 -08:00
Gabriel Biren
0d1d1a7d58 Merge "Allow VTS tests to pass on devices without Hostapd AIDL." am: f97801a1c5 am: 81271949c0 am: 72c29327b7 am: a0cfeae37a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1947696

Change-Id: Ic3a17a86f4b0eb1f4aa64676b51b4845f059c65c
2022-01-13 17:34:27 +00:00
Gabriel Biren
962d5dfa99 Allow VTS tests to pass on devices without Hostapd AIDL.
Bug: 214298597
Test: Run VTS tests on an AOSP build (since AOSP
       is still using the HIDL interface).
Change-Id: I4bd005b5c96570694477a4b45fa5cc790c45be8f
2022-01-12 23:15:17 +00:00
Serik Beketayev
4d37f69678 [IHostapd] Support vendor-specific AP config elem
Bug: 139204496
Test: mma -j
Change-Id: I7caa7d3b27bca7898d8857bfb841b5466643644e
2022-01-11 10:55:47 -08:00
Les Lee
6645e9ea71 wifi: Extend onFailure callback for dual AP case
There are two AP instances when bridged AP is running.
Extend onFailure callback to support if there is a problem one of the instances,
The framework can handle the failure separately. (i.e. No need to
shutdown whole Soft Ap)

Bug: 188921389
Test: Test with test code, the callback works normally.
Change-Id: I0aba5f3c5bf21badd3cf925908c853e9285fa6aa
2021-12-17 15:04:51 +08:00
Gabriel Biren
b3eb504848 Switch hostapd VTS tests to NDK backend.
Bug: 204889679
Test: Make and run VtsHalHostapdTargetTest
      m vts -j
      vts-tradefed run commandAndExit vts \
          --module VtsHalHostapdTargetTest
Change-Id: I0fe97b18b83098df6c70a5057576704c4b1f7383
2021-11-03 19:45:39 +00:00
Treehugger Robot
40212f770e Merge "wifi: Add sleep 3 seconds to allow terminate processing in VTS tear down" into android11-tests-dev am: 7618b4cc8b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1554185

Change-Id: Ic922564dffbfdb96b30bcfe3fb9fe8a5934a9c17
2021-10-29 22:23:35 +00:00
Yiming Pan
507b4604bb Add a bug component for VtsHalWifiHostapd tests.
This is done for the following test modules:
VtsHalWifiHostapdV1_0TargetTest
VtsHalWifiHostapdV1_1TargetTest

Test: Tree Hugger
Bug: 143903671
Change-Id: I26b7981e340ac2fc9009f8741fc9e415d1a3c8f0
2021-10-13 15:18:51 -07:00
Treehugger Robot
09d0934bcb Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: 60ac26c3e0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1822478

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

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

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

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

Bug: 194806512
Test: m android.hardware.wifi.hostapd-update-api
Change-Id: I1035f8bc9171e59967448fa438f2cc79ad53c066
2021-09-01 23:17:16 -07:00
Ahmed ElArabawy
7e8409bb51 WiFi: Modify OWNERS files
Replace kumaranand@ with arabawy@ in OWNERS files

Bug: 191158491
Test: None
Change-Id: I585e95449e0aafdaa9687b363af0418032f41dfa
2021-06-15 10:20:29 -07:00
Roshan Pius
f10451b8fc hal(wifi): Replace rpius@ with kumaranand@ in OWNERS
Bug: 184966495
Test: N/A
Change-Id: Ib4cc2cc8479317b987edcdbcce0de4f699720cc3
2021-04-09 12:51:00 -07:00