Commit graph

982 commits

Author SHA1 Message Date
Roshan Pius
2329bba9fe wifi(vts): Use blocking getService to wait for service to come up
Switch away from using wifi's custom implementation to block for
supplicant/hostapd daemon to come up.

Bug: 161682236
Test:
vts-tradefed run commandAndExit vts --module VtsHalWifiHostapdV1_0Target
vts-tradefed run commandAndExit vts --module VtsHalWifiSupplicantV1_0Host

Change-Id: Ia05f93ba4a28c036315558edbba30f19c2e6ac95
Merged-In: Ia05f93ba4a28c036315558edbba30f19c2e6ac95
(cherry picked from commit 6d0af445ee)
2020-07-29 23:44:51 +00:00
Sunil Ravi
1eaaa3918e wifi: Fix for DPP VTS test failures on 5GHz only devices
Pass one 2.4GHz channel (1) and one 5GHz channel(40) in
URI channel-list, so that devices which support only one band
can initiate Authentication.

Bug: 161331637
Test: VtsHalWifiSupplicantV1_2TargetTest
Test: VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Ic2677c5f2c2bebe632f823f0472da0a5ae404c0d
(cherry picked from commit 6b75eeb045)
2020-07-23 19:33:07 +00:00
Xin Li
e3ed4a6e34 Merge ab/12162526 into stage-aosp-rvc-ts-dev
Bug: 148878042
Change-Id: I0ea1d53b0813228b3cfc7820acbdbba0d86d8ae8
2020-07-15 17:55:13 -07:00
Oleh Cherpak
31c434b96c vts: supplicant: Remove optional service registration
Wifi VendorHAL is optional for STA mode to function.
Tests should be runnable even on devices without VendorHAL.

Bug: 148883970
Bug: 158343746
Test: run vts -m VtsHalWifiSupplicantV1_0Host

Signed-off-by: Oleh Cherpak <oleh.cherpak@globallogic.com>
Change-Id: Ife6e09e41ccfd6c3ccbdc19394175d17986d310d
Merged-In: Ife6e09e41ccfd6c3ccbdc19394175d17986d310d
2020-07-11 08:38:30 -07:00
Oleh Cherpak
09f373d6c1 vts: hostapd: Remove optional service registration
Wifi VendorHAL is optional for Soft AP mode to function.
Tests should be runnable even on devices without VendorHAL.

Test: run vts -m VtsHalWifiHostapdV1_1Target
Bug: 148907288
Bug: 158343986

Signed-off-by: Oleh Cherpak <oleh.cherpak@globallogic.com>
Change-Id: Id65d09d39d93e540a24e58fda233fd2faf8c3258
Merged-In: Id65d09d39d93e540a24e58fda233fd2faf8c3258
2020-07-11 08:38:27 -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
63f34eda73 Fix NAN validate interface existence
Bug: 156879576
Test: atest android.hardware.wifi@1.0-service-tests

Change-Id: I8505e343f5b2ea5ea522cbb2ea344ff8914aea3d
2020-05-21 00:01:51 -07:00
TreeHugger Robot
32c900b64e Merge "Disable framework for test VtsHalWifiSupplicantV1_3TargetTest" into rvc-dev 2020-05-20 05:02:05 +00:00
TreeHugger Robot
ecec92b7fd Merge "IWifi: Validate dedicated NAN discovery interface." into rvc-dev 2020-05-20 03:14:36 +00: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
4ad7daa925 IWifi: Validate dedicated NAN discovery interface.
Bug: 156879576
Test: atest android.hardware.wifi@1.0-service-tests
Change-Id: I9150b683ceb5631139eab6e0c6c8edb4209c9493
2020-05-19 20:20:10 +00:00
Dan Shi
c09c353e52 Disable framework for test VtsHalWifiSupplicantV1_3TargetTest
Bug: 156268286
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I8208cbf6ca26655615ecb6c0a39c50e6b62e8f6e
2020-05-19 13:05:09 -07:00
Nate Jiang
7f304d738b Merge "[VTS] Seperate Nan and Rtt from Sap test" into rvc-dev 2020-05-13 20:18:00 +00:00
TreeHugger Robot
caaa36bce0 Merge "wifi: check device capaiblities before running vts tests" into rvc-dev 2020-05-13 07:02:05 +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
8587b8870e wifi: check device capaiblities before running vts tests
Wi-Fi Direct might not be supported, the test runner should
check it first before running tests.

Bug: 155372909
Test: * atest VtsHalWifiSupplicantP2pV1_2TargetTest
      * remove Wi-Fi Direct support in device.mk
        atest VtsHalWifiSupplicantP2pV1_2TargetTest
Change-Id: Ie32b5fb831eebba818b83a9b9855e8a66b929e3d
2020-05-13 10:49:47 +08:00
kumachang
d6bd3cf761 wifi: skip nan vts tests if nan is not supported
Bug: 155372909
Test: atest VtsHalWifiNanV1_0TargetTest
Change-Id: I20c90509395788a72999cd6029573502004d1815
2020-05-12 19:46:49 +08:00
Jimmy Chen
9003d20916 vts: test setting WAPI psk hex
Bug: 139257562
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Id7b181f7d9280926c441ac6fbf7420f17a857c02
2020-05-08 02:56:46 +08:00
Jimmy Chen
503f786f11 Merge "wifi: stop running supplicant before tests" into rvc-dev 2020-05-02 04:41:28 +00:00
Ahmed ElArabawy
c4c9da2f0b Merge "Wifi: Optionally avoid interface down/up when doing setMacAddress" into rvc-dev 2020-05-01 01:41:39 +00:00
Ahmed ElArabawy
3ee519be3a Wifi: Optionally avoid interface down/up when doing setMacAddress
Some vendors implementation will reset wifi chip when doing interface
down.
Accordingly, We need to avoid the interface down/up when doing
setMacAddress to avoid loss of sync between framework and firmware.

This commit uses a BOARD_WIFI_AVOID_IFACE_RESET_MAC_CHANGE macro to
check if it is needed to avoid interface down/up at setMacAddress.

Bug: 153771961
Test: VTS Test
Test: atest VtsHalWifiV1_2TargetTest
Change-Id: I971764f1c272ebfd245959974fa0d1b10ba7c39b
2020-04-30 15:07:58 -07:00
Roshan Pius
78cb59913a Allow tethering name config
Test: manual

Bug: 155110247
Test: Compiles
Test: Verified that SAP is working

Change-Id: I6f0fd5b891dd6e6c2f0ceab05f6830b56f6474b1
2020-04-30 21:43:29 +00:00
Jimmy Chen
c633302a86 wifi: stop running supplicant before tests
The first test would always fail because it tries to
use system-initiating supplicant process.

Bug: 155257934
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I79b69ec04faab5e8f2af0e5e3a9b1cc4c3aa0c36
2020-04-30 15:37:29 +08: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
Roshan Pius
d234d8b1d6 Merge "wifi_sta_iface: Deprecate setScanningMacOui" into rvc-dev 2020-04-17 06:12:32 +00:00
Roshan Pius
322677a172 wifi_sta_iface: Deprecate setScanningMacOui
Bug: 154267383
Test: Device boots up and connects to wifi networks.
Change-Id: I70206e2c25d90ebd5ac35938af9ca2ebffefa318
2020-04-16 16:53:02 -07:00
Veerendranath Jakkam
25b3a6f0a4 Synchronize on_ring_buffer_data_callback and writeRingbufferFiles
on_ring_buffer_data_callback callback is invoked on getting the
corresponding driver/firmware ringbuffer logs. This callback further
stores the ringbuffer data locally in cur_buffer. While the data is
getting updated through this callback, writeRingbufferFilesInternal
can get triggered from a different context which accesses the same buffer
-cur_buffer.
Synchronization is missing between these two contexts while accessing the
buffer and this commit attempts the same.

Bug: 153970986
Test: Manual - collect the bugreport and check the ring buffer logs.
Change-Id: Id99a517f4d72872b84b48c3df75dd29743f3e9b2
2020-04-15 21:53:48 -07:00
Roshan Pius
acf79bfacf Merge "Use additional interface for the WiFi Aware Discovery operations." into rvc-dev 2020-04-15 04:51:44 +00:00
Roshan Pius
5ba0a90cac Use additional interface for the WiFi Aware Discovery operations.
NAN operations are currently done on the STA interface.This resulted
in the NAN sessions getting terminated in all the instances where the
STA interface is restarted (IFF DOWN/UP), due to connected MAC
randomization.
Hence, remove the dependency of NAN over STA interface. This change
expects the driver to create a dedicated interface for the
NAN operations. The iface name needs to be set in "wifi.aware.interface"
property.

Bug: 1636219
Test: HAL unit tests
Test: Device boots up and connects to wifi network.
Change-Id: I1b6d64eb94334172a8cd621d0b15ed8c8dc87f91
2020-04-14 13:47:42 -07:00
Dan Shi
fdbc494c69 Remove references of VtsHalHidlTargetTestBase
Bug: 147894326
Test: build
Change-Id: If847cc3aa5bb17682b92266f5460efe9d3fadfab
2020-04-13 23:15:50 -07:00
Daniel Norman
ecb16248c9 Adds IWifi 1.3 and 1.4 as interfaces provided by vendor.wifi_hal_legacy.
Bug: 150474819
Bug: 152173671
Test: vts_ibase_test
Change-Id: Ie5462d41177ec6dd56e6de266157e7d4ac28b388
Merged-In: Ie5462d41177ec6dd56e6de266157e7d4ac28b388

(cherry picked from commit f58ff069ee)

Change-Id: Ie5462d41177ec6dd56e6de266157e7d4ac28b388
2020-04-08 21:39:24 +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
Ahmed ElArabawy
7f817f5e23 Wifi: Fix vts tests error handling
In current code, VTS tests checks on null pointer using EXPECT_NE
then proceed with using the variable. This causes a null pointer
exception when the test fails.
This commit replaces the EXPECT_NE with ASSERT_NE to exit the test
on failure.

Bug: 152576797
Test: atest VtsHalWifiV1_0TargetTest
Change-Id: I5e54634020216f91144a234caf2b990de5706d8c
2020-03-27 00:08:58 -07:00
Jimmy Chen
54cae11b79 Wifi: omit FILS related vts tests if not supported
Supplicant FILS operation is independent from driver key management
driver support, i.e. even FILS is not supported in driver,
these APIs still could be used. These APIs are controlled by supplicant
CONFIG_FILS directly. To avoid inconsistent capability check, omit FILS
vts tests if any of driver and supplicant does not support it.

Bug: 149042449
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Ia0cdaac282f9ec6e9450d72795ed6461433bdf3b
2020-03-03 14:12:10 +08:00
Ahmed ElArabawy
c4ae073b9a Merge "Wifi: Add support for mapping DSCP to Wifi AC" 2020-02-21 00:23:06 +00: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
a1d1365ed3 Wifi: Add support for mapping DSCP to Wifi AC
This commit adds the needed enum and methods to handle the mapping
of DSCP into wifi access categories.

Bug: 141500691
Bug: 141550272
Test: Builds successfully
Change-Id: I3a85c211057907c2363f7f349d0075e6b4a1b152
2020-02-19 16:48:41 -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
Sunil Ravi
2797c113c8 Merge "wifi: Improve documentation of hidl APIs." 2020-02-13 17:25:29 +00:00
Sunil Ravi
c8c0064e99 wifi: Improve documentation of hidl APIs.
Added changes as per ANAPIC review to improve
documentation of few hidl APIs.

Bug: 148617258
Test: Not tested as there is no code change.
Change-Id: I3f91c6b8aad3f34807534a3fbc3cf5a3c3233cd7
2020-02-12 18:22:01 -08:00
Sunil Ravi
2350a89e78 Merge "wifi: Fix for VtsHalWifiSupplicantV1_0TargetTest failures" 2020-02-12 23:17:13 +00:00
Sunil Ravi
6e58a649e8 wifi: Fix for VtsHalWifiSupplicantV1_0TargetTest failures
Since some of the APIs are overridden by an upgraded API in newer HAL,
Check the return value of such deprecated APIs and if it's
FAILURE_UNKNOWN, don't proceed and consider it as pass.

Bug: 147821406
Bug: 146991831
Bug: 149045565
Test: atest VtsHalWifiSupplicantV1_0TargetTest
Test: atest VtsHalWifiSupplicantV1_1TargetTest
Test: atest VtsHalWifiSupplicantV1_2TargetTest
Change-Id: I28c4431bfeaaa7a628be71f41f8299a85fed7eed
2020-02-12 10:46:46 -08:00
Jimmy Chen
cd92c8328e wifi: skip p2p vts tests if p2p is not supported
Bug: 149053982
Test: * remove wifi direct featuer in device.mk
      * flash build
      * atest VtsHalWifiSupplicantP2pV1_2Target

Change-Id: I9d8a41e4d1f2cde9d311481d285be448583b8d9e
2020-02-11 10:57:59 +08:00
Jimmy Chen
019164c4b9 wifi: fix uninitialized variable
Bug: 149042449
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Ie583d1db3697891c96c9186526ae47f40751b822
2020-02-07 09:59:50 +08:00
Les Lee
c124b39f9e Merge "vts: Use shell command to get softap feature" 2020-02-05 07:08:49 +00:00
lesl
9be5a79afe vts: Use shell command to get softap feature
We should only run the vts which claim is supported.

Bug: 140172237
Test: atest VtsHalWifiHostapdV1_2TargetTest
Change-Id: If0b1d9f0a73bd171621299dab7828a9caf928a7a
2020-02-05 11:12:19 +08:00