Commit graph

27 commits

Author SHA1 Message Date
Sunil Ravi
bd5a47d5dd wifi: Added capability check in RTT tests
Added test for 2 sided RTT.
Added RTT measurement type capability check in range request tests.

Bug: 163327074
Test: vts test - VtsHalWifiRttV1_4TargetTest
Change-Id: I546806605b6b3ecd124068fc81b9fb275b745f45
(cherry picked from commit d85edb7f66)
2020-09-16 10:09:41 -07:00
Nate Jiang
400d9fa0a9 [VTS] Use primary channel to enable RTT responder
Bug: 160109667
Test: atest VtsHalWifiRttV1_4TargetTest
Change-Id: I9bbe5cdaf9656503acb87e2888856e0f199dc45f
2020-07-08 10:56:26 -07:00
Nate Jiang
8c0fec12ec Skip test when NAN or RTT feature not supported
Bug: 155372761
Test: atest VtsHalWifiApV1_4TargetTest, VtsHalWifiNanV1_4TargetTest, VtsHalWifiRttV1_4TargetTest
SingleDeviceTest
Merged-In: I04bfffe9dc587e3f7209601c3712422b6e2d165c
Change-Id: I04bfffe9dc587e3f7209601c3712422b6e2d165c
2020-05-19 20:29:07 +00:00
Nate Jiang
9ecaa48a02 [VTS] Seperate Nan and Rtt from Sap test
Bug: 155372761
Test: atest VtsHalWifiApV1_4TargetTest, VtsHalWifiNanV1_4TargetTest, VtsHalWifiRttV1_4TargetTest
Change-Id: I0af11c01e9d87c0837f45b733010c96b5ba94f04
2020-05-12 23:53:58 -07:00
Jimmy Chen
c578a91356 wifi: skip tests if RTT is not supported
Bug: 153418156
Test: atest VtsHalWifiApV1_4TargetTest

Change-Id: I2aa58c501f44a9b32c1a7ebf48aa8fcbfb08b046
2020-04-21 07:54:11 +00:00
Dan Shi
aad51fa000 Rename vts-core to vts
Bug: 151896491
Test: local build
Exempt-From-Owner-Approval: This CL update suite name vts-core to vts as
the suite name is updated. This CL won't change test logic or behavior.

Change-Id: I562b4dc50765e953800a814a8fd84a01c1b9352b
Merged-In: I562b4dc50765e953800a814a8fd84a01c1b9352b
2020-04-07 16:37:40 -07:00
Nate Jiang
eb9d19960e Make VTS test use the highest supported preamble
VTS should use the highest supported preamble.
If preamble is not support by device, LOWI will return unknow error.

Bug: 152440187
Test: atest VtsHalWifiApV1_4TargetTest
Change-Id: I972377a526c5d62a733878df5fd80d4af17e37ff
2020-04-06 23:32:34 -07:00
Dan Shi
86b285465f Remove dependency on VtsHalHidlTargetTestEnvBase
Bug: 143892896
Test: atest VtsHalWifiApV1_0TargetTest \
  VtsHalWifiNanV1_0TargetTest \
  VtsHalWifiV1_0TargetTest \
  VtsHalWifiV1_1TargetTest \
  VtsHalWifiV1_2TargetTest \
  VtsHalWifiNanV1_2TargetTest \
  VtsHalWifiV1_3TargetTest \
  VtsHalWifiApV1_4TargetTest \
  VtsHalWifiHostapdV1_0TargetTest \
  VtsHalWifiHostapdV1_1TargetTest \
  VtsHalWifiHostapdV1_2TargetTest \
  VtsHalWifiSupplicantV1_0TargetTest \
  VtsHalWifiSupplicantP2pV1_0TargetTest \
  VtsHalWifiSupplicantV1_1TargetTest \
  VtsHalWifiSupplicantV1_2TargetTest \
  VtsHalWifiSupplicantP2pV1_2TargetTest

Change-Id: I8a18f18f3aaa497642f380fea43517ec14554993
2020-03-31 11:34:32 -07:00
Nate Jiang
6c2e21ff55 Merge "Fix nan Vts test" 2020-02-20 05:51:52 +00:00
Nate(Qiang) Jiang
a075122fca Fix nan Vts test
count shoule be initialize to 0 before test.

Bug: 149709834
Test: atest VtsHalWifiApV1_4TargetTest
Change-Id: I47c43571bc3ff91f389a4c9f41e050cc13c104a2
2020-02-19 17:34:29 -08:00
Ahmed ElArabawy
98eab1d10c Add VTS tests to RTT impact of support of 11ax
This commit adds missing VTS tests for the support of 80211ax and its
impact to RTT.

Bug: 139354972
Test: atest VtsHalWifiApV1_4TargetTest
Change-Id: Ib13b65b5b76d1d940ac784a4a3b4899af88e541a
2020-02-17 23:00:46 -08:00
Ahmed ElArabawy
82e3c6bb60 Add missing instantiation code for Vts tests
Instantiation script is missing from the
wifi/1.4/vts/functional/wifi_nan_iface_hidl_test.cpp
wifi/1.4/vts/functional/wifi_chip_hidl_test.cpp

Bug: 149709807
Test: atest VtsHalWifiApV1_4TargetTest
Change-Id: Ifd4ac0adbdffa77381a60f48f830ebccb6535dfe
2020-02-17 16:23:20 -08:00
Ahmed ElArabawy
dcfab61c9b Wifi: Make sure that VTS tests start with a clean state
In current code base, The SetUp() method in wifi VTS tests does not
reset Wifi state. Hence the first Wifi test runs with unspecified state.
Following test cases are not impacted due to that TearDown() takes care
of resetting the Wifi state.

This commit adds the stopWifi() method to the SetUp() so all test cases
start from the same Wifi state.

Bug: 145312303
Test: Run all wifi VTS tests
Test: atest <VTS test module name>
Change-Id: I63d7c0d27f4ceb713dda3804786a199dc2274be5
2020-01-08 03:51:43 +00:00
Ahmed ElArabawy
b23485ddc5 Remove 6GHz capability query through HAL
It was decided to perform the check on the device support of 6GHz
through overlay configs instead of through HAL.
This commit removes the Hidl API changes that were used for that
check.

Bug: 145936758
Bug: 139354972
Test: Manual
Test: VTS test
Test: Unit test: hardware/interfaces/wifi/1.4/default/tests/runtests.sh
Change-Id: I81fdf603a668a71e3e875211367111fffee20e54
2019-12-12 16:37:36 -08:00
Ahmed ElArabawy
83baffdac2 Wifi: Add 6GHz band to NAN structures and methods
This commit adds 6GHz band to NAN related structures and methods.

Bug: 139354972
Test: Manual
Test: VTS test
Test: Unit test:
Test: ./hardware/interfaces/wifi/1.4/default/tests/runtests.sh
Change-Id: I33f63fde67d5a839678076fdb7c76d5eb8645131
2019-12-06 08:57:24 -08:00
Ahmed ElArabawy
fd809fcdfc Wifi: Add 6GHz bands to WifiBand
This commit adds 6GHz band to WifiBand and update the impacted
structures and methods in Wifi HAL.
Note that Background scar related HAL API will not be using the
new band, and will continue with the legacy set of bands.

Bug: 139354972
Test: Manual
Test: VTS test
Test: Unit test: ./hardware/interfaces/wifi/1.4/default/tests/runtests.sh
Change-Id: I54662251034806338ad64d4622ade259ca260a79
2019-12-04 18:36:59 -08:00
Dan Shi
3550f9a90c Merge "Convert VtsHalWifiV1_*Target to be parameterized test" 2019-11-18 17:06:21 +00:00
Ahmed ElArabawy
a6b217d3e3 Merge "Revert "Revert "Wifi: Support check on device capability for 6GHZ""" 2019-11-15 22:27:04 +00:00
Ahmed ElArabawy
95e36b7035 Revert "Revert "Wifi: Support check on device capability for 6GHZ""
This reverts commit ad2b44760d.

Reason for revert: Fix is ready

Change-Id: I16e30afe843e048429eae430a82aa5e90e591c2e
2019-11-15 21:24:53 +00:00
Zongheng Wang
964a1a67d8 Merge "Revert "Wifi: Support check on device capability for 6GHZ"" 2019-11-15 21:04:29 +00:00
Zongheng Wang
ad2b44760d Revert "Wifi: Support check on device capability for 6GHZ"
This reverts commit 046257fd2e.

Reason for revert: b/144576287 broke git_master 

Change-Id: I357df4a242a3ae22c793f8f4120199f04cbcdfa2
2019-11-15 20:40:33 +00:00
Ahmed ElArabawy
15e0759d7f Merge "Wifi: Support check on device capability for 6GHZ" 2019-11-15 18:17:13 +00:00
Dan Shi
336fe46ae5 Convert VtsHalWifiV1_*Target to be parameterized test
Bug: 142397658
Bug: 142304083
Test: atest \
  VtsHalWifiV1_0TargetTest \
  VtsHalWifiNanV1_0TargetTest \
  VtsHalWifiApV1_0TargetTest \
  VtsHalWifiV1_1TargetTest \
  VtsHalWifiV1_2TargetTest \
  VtsHalWifiNanV1_2TargetTest \
  VtsHalWifiV1_3TargetTest \
  VtsHalWifiApV1_4TargetTest

Change-Id: I05bf1c4cff378a99c015ac514eefb49debb8b1af
2019-11-14 09:27:55 -08:00
Roshan Pius
16c43fb4f8 wifi(vts): Set the iface up as a part of setup
Attempts to fix a VTS test failure reported by OEM's on devices
supporting concurrent AP iface.

Bug: 143096362
Test: make vts && vts-tradefed run commandAndExit vts --module VtsHalWifiV1_0Host
Test: Will need to ask OEM to verify the fix.
Change-Id: I0958d720411258761f4ac5bcccc823b06a55d518
2019-11-13 12:33:34 -08:00
Ahmed ElArabawy
046257fd2e Wifi: Support check on device capability for 6GHZ
This commit adds the HAL APIs and implementation to support checking
whether device supports 6GHz band or not.
VTS test has been added for the new api.

Bug: 139354972
Test: Manual: Make sure capability is read correctly.
Test: VTS test.
Change-Id: I03b0c6017666ffd3663d5979d6e6a2bd93043c48
2019-11-12 19:14:59 -08:00
Patrik Fimml
c37306ea65 Wifi VTS: use VTS-native feature detection
Previously, VTS would run VtsHalWifiV1_0HostTest, a python script on the
host that tries identify whether SoftAP and NAN should be supported by
the device. This is complex, prevents migration to pure gtests without
custom runners, and duplicates logic that has become available in VTS.

This switches to equivalent methods natively available in VTS:
- NAN: We can use "precondition-feature" to check for the
"android.hardware.wifi.aware" feature.
- SoftAP: We can use "precondition-lshal" to check whether the
"android.hardware.wifi.hostapd" HAL is declared in the device manifest
(should have the same semantics as the previous python check).

This splits out NAN- and SoftAP-dependent parts of IWifiChip tests so
that they can use this method, so some tests moved between these targets:
- VtsHalWifiV1_0TargetTest
- VtsHalWifiApV1_0TargetTest
- VtsHalWifiNanV1_0TargetTest

Bug: 142304083
Test: vts-tradefed run vts --primary-abi-only --skip-device-info -l DEBUG --include-filter VtsHalWifiV1_0Target --include-filter VtsHalWifiApV1_0Target --include-filter VtsHalWifiNanV1_0Target --include-filter VtsHalWifiV1_1Target --include-filter VtsHalWifiV1_2Target --include-filter VtsHalWifiV1_3Target --include-filter VtsHalWifiApV1_4Target
Change-Id: Ica0b58811a0aa152c1a6c3c9a35d577d6ae70160
2019-10-10 11:00:26 +02:00
Patrik Fimml
c919f9657e Add IWifiApIface@1.4 (configurable MAC address)
Mirrors the methods and tests introduced in IWifiStaIface@1.2 and @1.3.

Android.bp generated with
$ hidl-gen -o . -Landroidbp -randroid.hardware:hardware/interfaces android.hardware.wifi@1.4

Bug: 132705022
Test: make vts && vts-tradefed run vts-host --skip-preconditions --primary-abi-only --module VtsHalWifiV1_4Host
Change-Id: Iddacd2770c59522001673d10daafd3bbed3844f6
2019-10-08 13:12:18 +02:00