Commit graph

239 commits

Author SHA1 Message Date
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
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
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
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
Dan Shi
fdbc494c69 Remove references of VtsHalHidlTargetTestBase
Bug: 147894326
Test: build
Change-Id: If847cc3aa5bb17682b92266f5460efe9d3fadfab
2020-04-13 23:15:50 -07: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
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
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
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
TreeHugger Robot
79899f080f Merge "Remove reference of VtsHalHidlTargetTestBase" 2020-02-04 05:05:34 +00:00
Dan Shi
ea83307a5e Remove reference of VtsHalHidlTargetTestBase
Bug: 147894326
Test: m -j VtsHalCasV1_1TargetTest \
  VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I9a45a522edd03b6aba3ab5772a259fad7b706a23
2020-02-04 03:30:15 +00:00
Sunil Ravi
8d343bdfc0 wifi: Fix for VtsHalWifiSupplicantV1_2TargetTest failures
Check the return value of deprecated APIs and if it's
FAILURE_UNKNOWN, don't proceed and consider it as pass.

Bug: 147434122
Test: atest VtsHalWifiSupplicantV1_2TargetTest
Change-Id: Ib6cfb70c514f10faa54ca11011657528374175e6
2020-02-03 13:20:15 -08:00
Kai Shi
5e12b9635d Wifi: add 3 new fields to ConnectionCapabilities.
Add channel bandwidth, max number of Rx spatial streams, max number of
Tx spatial streams to connectionCapabilitie() which is derived from
association request and response frames after a new association.

bug: 147390882
Test: VTS test
Test: manual test with various phones and APs.
Change-Id: Iaeb5e0419887b766ec1a4cb13843494539aa3ddd
2020-01-19 10:26:03 -08:00
Vamsi Krishna
2f82923cfa wifi: Add required API to connect to FILS enabled APs
Add support to configure FILS key_mgmt types while adding
configurations for FILS enabled APs. FILS defines two different
AKM suites, one based on SHA256 and the other based on SHA384.
Also add API to enable ERP keys generation while connecting FILS
enabled APs. Once generated, the ERP keys can be used to make faster
connections to the FILS enabled APs which are within the same realm
as that of the AP with which the ERP keys are generated.

FILS also provides provision to exchange Higher Layer Packets(HLPs)
along with association request and association response frames. Add
API to configure HLP packets that can be sent with Association
request while connecting to FILS enabled APs. Also add API to flush the
HLP packets that were already configured during previous connection
requests.

Bug: 143259898
Test: WiFi basic sanity test
Test: VTS test
Change-Id: If5cb0c112d46fa8695b4517f42cb7c6706970751
2020-01-17 17:24:11 -08:00
Isaac Chiou
0f97764f22 Wifi: create new callback to deliver eap error code
Create new callback to deliver eap error code
from supplicant to framework

Bug: 139880103
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I6604356672899d7a0933af6fb20879bb91871efd
2020-01-14 21:26:03 +08:00
Dan Shi
79e804d6fb Convert VtsHalWifiSupplicantV1_3TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I85a064b05439776c3083f8cf9762d5f2a994b959
2020-01-10 16:11:22 -08:00
Dan Shi
26ca8f9384 Merge "Convert VtsHalWifiSupplicantV1_*TargetTest to be parameterized test" 2020-01-10 20:19:11 +00:00
Dan Shi
d64367312e Convert VtsHalWifiSupplicantV1_*TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalWifiSupplicantV1_1TargetTest \
  VtsHalWifiSupplicantV1_2TargetTest \
  VtsHalWifiSupplicantP2pV1_2TargetTest

Change-Id: I14a3e94d0b3681c5a3ebd17435dc36d279790c79
2020-01-09 09:48:03 -08:00
Hai Shalom
08b70226f3 [SAE] Add support to add SAE Authentication algorithm
Add support to add SAE Authentication algorithm in the
framework (public API), and in the Supplicant HAL.

Bug: 147253259
Test: Manual connection to SAE, PSK, OWE and Open APs
Test: atest WifiConfigurationTest
Change-Id: I853e816be1ba618d61ac0fcb4b116879baba4be2
2020-01-06 16:31:36 -08:00
Sunil Ravi
ae33929ac9 Wifi: DPP test cases failing in VTS test
call  1_3 version of GetKeyMgmtCapabilities() from isDppSupported() method.

Bug: 146804291
Test: atest -c VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Ib0bfe2e48b8cbe3d04e73f65bd926ab1992a4bae
2019-12-23 15:09:10 -08:00
Sunil Ravi
c6489a5641 Wifi: MBO-OCE feature support (phase 3)
Added hidl call back function to notify framework about
bss transition request frame handling status.
Also fixed few code style issues by running hidl-gen -Lformat.

Bug: 139474288
Test: Manual
Test: VTS test
Change-Id: I00760f14d81a59e63042b1a5be9f9e3f74ff3a83
2019-12-21 01:37:17 +00:00
Hai Shalom
a94e59a387 [DPP R2] Update VTS test for supplicant 1.2
Update VTS test for supplicant 1.2 to skip the DPP tests
if the underyling HAL is 1.3. The reason is because 1.3
HAL uses different callbacks.

Bug: 139381558
Test: atest VtsHalWifiSupplicantV1_2Host
Change-Id: Ie9cd93e33bda3ca22ee2b5593d185f1918be847e
2019-12-20 14:31:56 -08:00
Hai Shalom
36768048c4 [DPP R2] Support for DPP R2
Added necessary types and enhanced the callbacks for DPP R2.
Added VTS tests for DPP R2 using HAL 1.3.

Bug: 139381558
Test: atest VtsHalWifiSupplicantV1_3Host
Change-Id: I18a58d6bd0e0b8260946f2186abda5bac93729c7
2019-12-20 09:19:23 -08:00
Automerger Merge Worker
5fc2c40179 Merge "Wifi: fix p2p vts failure on no p2p support devices" am: 189894129c am: 96643ab05c am: 2406c41f21
Change-Id: I406fca1dbafa54b28daf467de2272e8750793222
2019-12-19 17:10:18 +00:00
Jimmy Chen
87b62f142d Wifi: fix p2p vts failure on no p2p support devices
P2P vts tests should be omitted if p2p
is not supported.

Bug: 145315660
Test: atest VtsHalWifiSupplicantP2pV1_0TargetTest

Change-Id: Ia4cda22a2fce22335f8f230dbd7fd3418b1b3890
2019-12-18 15:43:05 +08:00
Jimmy Chen
e374a4a0a6 Wifi: WAPI constants and methods
This change includes two parts:
* Define WAPI proto, key management, and cipher constants.
* Expose WAPI HAL API for setting the certificate suite.

Bug: 139257562
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Id7a58b242776d641a091b9ede3f147b7d42003d1
2019-12-09 09:45:51 +08:00
Dan Shi
145c7f544a Merge "Convert VtsHalWifiSupplicantV1_0TargetTest to be parameterized test" am: b2193ac0d0 am: f12150b22e
am: 7a19785a76

Change-Id: I7c8eef3fef6bd5f6afc778fa1f6838f22eddf4e7
2019-11-15 16:07:17 -08:00
Dan Shi
59c749595f Convert VtsHalWifiSupplicantV1_0TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalWifiSupplicantV1_0TargetTest \
  VtsHalWifiSupplicantP2pV1_0TargetTest

Change-Id: I0cba2c29d90018d8248c583dec2354f9d3feba47
2019-11-13 14:33:25 -08:00
Sunil Ravi
aabb5ccb26 Merge "Wifi: MBO-OCE feature support (phase 1)" 2019-11-08 22:57:25 +00:00
Sunil Ravi
89157a4baa Wifi: MBO-OCE feature support (phase 1)
1. Added hidl API to return MBO and OCE feature capability.
2. Added hidl API to update the cellular data status.

Bug: 139474288
Test: Manual
Test: VTS test
Change-Id: I4fe1c2ff054f5cc7288e9ed234d29a8ffcca7456
2019-11-08 12:09:19 -08:00
zhibo.chang
0674965275 Merge "Fix the failed case for the VtsHalWifiSupplicantV1_2Host#SupplicantStaIfaceHidlTest.RegisterCallback_1_2" am: 528f91b055 am: 3a8199998c
am: b9868f9988

Change-Id: I6f4faf1b515025ff096b1159dd69173c24e5e999
2019-11-07 13:17:45 -08:00
zhibo.chang
a9e726e2c9 Fix the failed case for the VtsHalWifiSupplicantV1_2Host#SupplicantStaIfaceHidlTest.RegisterCallback_1_2
From the log and case logic,when assertTrue isSupplicantRunning is not the real wpa_supplicant status.
So occasionally there will be a timeout when waiting for a callback in the waitForHidlService method.
Because this is a low memory version and it is gsi image, we can't modify the image, so we can solve it by extending the time.

Bug:[142585026]
Test:run vts of the VtsHalWifiSupplicantV1_2Host.
Change-Id: Ideef032d310165d956c3ca0967b26bc3e3f44c3b
2019-10-30 08:38:31 +00:00
Ahmed ElArabawy
e56767d561 Wifi: Add getConnectionCapabilities API
This commit adds the API for getConnectionCapabilities() in
ISupplicantStaIface HAL. This is used to return the Wifi support
for the connection on this STA interface.

Bug: 138634524
Bug: 140168755
Test: Manual
Test: VTS test
Change-Id: I24ff3c16434067e41491298e41041bdfdf06452a
2019-10-18 21:07:07 +00:00
Jimmy Chen
1eb823636d wifi: add pmk cache interface
Bug: 36505680
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Test: connect EAP access point and verify PMK cache works correctly.
Change-Id: Iab3a8a69b5fd23bda209c4fa8cf1518c9a1602db
2019-09-25 10:05:51 +08:00
Colin Cross
48ebf35e72 Remove unused libcrypto dependency. am: 5d81a5814b am: 84633dea30 am: 45cd136049
am: 8e32fe8353

Change-Id: Iafcc1beff7a517712d4430d7efdd833707f8b6d7
2019-09-10 18:16:20 -07:00
Pete Bentley
d909580269 Remove unused libcrypto dependency.
libcrypto is unused, which causes problems when boringssl hash
injection is turned on as the code is all stripped and there is
nothing left to inject the hash into.

See http://r.android.com/1117291 for the AOSP change to related
modules.

Bug: 137267623
Test: croot hardware/interfaces/wifi && mma
Change-Id: I9d002c0b723cf9a04ee64641b5281e65912595c8
2019-09-10 17:21:04 +01:00
Colin Cross
5d81a5814b Remove unused libcrypto dependency.
libcrypto is unused, which causes problems when boringssl hash
injection is turned on as the code is all stripped and there is
nothing left to inject the hash into.

Bug: 137267623
Test: Ran the following together with the changes from
      http://r.android.com/q/topic:bug137267623_bsslselftest

      m VtsHalDrmV1_{0,1,2}TargetTest \
        VtsHalWifiHostapdV1_{0,1}TargetTest{,Util} \
        VtsHalWifiSupplicantV1_{0,1,2}TargetTest{,Util} \
        VtsHalWifiSupplicantP2pV1_{0,2}TargetTest

      (croot hardware/interfaces/confirmationui ; mma)
      (croot hardware/interfaces/drm ; mma)
      (croot hardware/interfaces/keymaster ; mma)

Change-Id: Ib0607671ef71d99becb483774f810aad9762f4f1
2019-09-10 00:05:33 +01:00
Jimmy Chen
0cb0aed337 ocsp: add getOcsp and setOcsp methods to control ocsp behavior
Bug: 136720092
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Ic4a4123cbf96a886e3403b7ff5b73aa6be8b0136
2019-08-05 22:24:05 +08:00
Jimmy Chen
d49f3424c5 Merge "p2p: skip MAC randomization vts test if not supported" into qt-dev
am: 33723f56b5

Change-Id: Ib6779515fb13d25b1f712f5bb32981a7980d79f4
2019-06-26 23:11:18 -07:00
Jimmy Chen
7af5384d2d p2p: skip MAC randomization vts test if not supported
Bug: 135247522
Test: atest VtsHalWifiSupplicantP2pV1_2TargetTest
Change-Id: I1aafcdbe88f93dbf73069d24ae90cad0d395df6e
2019-06-26 14:40:10 +08:00
Steven Moreland
99712c08cc Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I53e5bf67a0d314e1b10c0ba0c7172a7af358ddcc
2019-04-18 18:13:05 -07:00
Steven Moreland
6d494b2346 Merge "Update hidl makefiles for bpfmt" am: ff0bd741ca
am: 96f40f7b02

Change-Id: Idbf030e4993067bdb8181321bca2de00c9b6f7ef
2019-04-18 14:34:45 -07:00
Steven Moreland
1ae4615d9f Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I1f69d292bc23a7cc293a66110cb02d597e1019ad
2019-04-17 09:38:50 -07:00
lesl
72132c4feb p2p: fix vts fail due to 5g go init fail with 00 country code
The force 5GHz Go will cause fail when country code is 00 or chip
doesn't support 5GHz.
Change test parameter to force 0 which means driver decide GO channel.

Bug: 130208180
Test: vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantP2pV1_2Target -l INFO
Change-Id: I0d2a8fcba4ece616ddeccbae36146329e9043157
2019-04-17 16:44:02 +08:00
Steven Moreland
87f43604b9 Merge "Update makefies: no 'types' internal" 2019-03-05 17:40:03 +00:00