Commit graph

1531 commits

Author SHA1 Message Date
Sunil Ravi
2079fbcd04 wifi: set join to true in p2p connect tests am: 858665687d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2743883

Change-Id: I961f6a8cc9569ad401a1df41f252325f94392350
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-07 02:41:10 +00:00
Sunil Ravi
858665687d 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: 298310537
Bug: 268236829
Bug: 218608010
Test: atest VtsHalWifiSupplicantP2pIfaceTargetTest
Change-Id: Id5baa0f599d11a3563780aae15ff3cea0407060c
Merged-In: Id5baa0f599d11a3563780aae15ff3cea0407060c
2023-09-06 23:30:32 +00:00
Nethaji B
37fb2fe77d Skip wifi AP tests, if AP feature is not supported am: 6eab68a9e6 am: 7d5727bf65
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2740896

Change-Id: I4eade72a9c5fa16035382a52ed1d6be69edd67e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 18:00:56 +00:00
Nethaji B
7d5727bf65 Skip wifi AP tests, if AP feature is not supported am: 6eab68a9e6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2740896

Change-Id: I653411aa1c02a8025c145444b6ee1f749116ee39
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06 17:17:15 +00:00
Nethaji B
6eab68a9e6 Skip wifi AP tests, if AP feature is not supported
- Added API to check wifi chip supports AP interface
- Check AP support as a precondition for AP related TCs

Bug: 284925541
Test: atest VtsHalWifiApV1_5TargetTest
Change-Id: I1121d7b787ed972980bab0e05a52f3ca2f3d0a24
2023-09-05 19:56:15 +00:00
Jaewan Kim
5b454f372e Disable verbose nlinterceptor log
Test: No verbose log on Cloud Android with Wi-Fi is turned on
Bug: 256518068
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7df5c1c34538d1e051dc3df63fcba563e40713c8)
Merged-In: I062e698b64114f139997cd24b16f90dd52048247
Change-Id: I062e698b64114f139997cd24b16f90dd52048247
2023-08-10 18:03:56 +00:00
Gabriel Biren
b354c89236 Merge "Add a new utility class wifi_hidl_test_utils_1_6 for the Wifi VTS tests." 2023-06-07 15:49:51 +00:00
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
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
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
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
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
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
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
b65ff31684 Coalesce OWNERS
Bug: N/A
Test: N/A
Change-Id: Ia603a0cc323e65903f8de6a04ce1dd82407f012d
2022-10-19 04:06:09 +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
e85de1d957 AOSP counterpart of wifi hal apex
Bug: 247018693
Test: CtsWifiTestCases
Change-Id: I5deb95b4cc0c1075f65bc809ca256df91ce9a9bb
2022-10-07 22:13:38 +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
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
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
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
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
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
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
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
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
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