Commit graph

197 commits

Author SHA1 Message Date
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
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
Steven Moreland
7f4e21adda Merge "Update makefies: no 'types'" am: 4ee5ec1469 am: bab622f6a6
am: 7224bc9bcf

Change-Id: I434939e0770afa436c532a945542fce30a71ef7d
2019-03-04 16:05:59 -08:00
Steven Moreland
b91ac5c6a0 Update makefies: no 'types' internal
Bug: 123976090
Test: N/A
Change-Id: I84b659b163b63d39535b462a3df8a9c19f680976
2019-03-04 14:09:25 -08:00
Steven Moreland
a878aee9ab Update makefies: no 'types'
Bug: 123976090
Test: N/A
Change-Id: I30fb04c81889b62775e1b764b965fdb0f893de17
2019-03-04 11:27:17 -08:00
Hai Shalom
6398207a8c [DPP] Replace HAL interface onSuccess with onSuccessConfigSent
Following ANAPIC Review:
onSuccess callback was returning only a single status code, CONFIGURATION_SENT.
Renamed the callback to onSuccessConfigSent and eliminated the status code.

Bug: 124459312
Test: atest DppManagerTest
Test: atest SupplicantStaIfaceHalTest
Test: act.py -c ../WifiDppConfig.json -tc WifiDppTest
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantV1_2Host
Change-Id: I4d7c5732ded55902b1f235d40d3babe3be372bf7
2019-02-15 11:02:13 -08:00
Steven Moreland
f8a47b7f01 Update makefiles.
Bug: 123976090
Test: N/A
Change-Id: I5fb6c126a090a3fe0fa4829ea9224564133dc1ae
2019-02-11 21:14:16 -08:00
Jimmy Chen
d87a0ee2f5 p2p: add HAL method to enable P2P random MAC address feature
There are compatibility issue with driver for P2P random MAC.
The framework needs to check driver capability first before enabling
P2P random MAC address feature.

Bug: 118904478
Test: vts - atest VtsHalWifiSupplicantP2pV1_2TargetTest
Test: manual test
      * Enter WiFI Direct Page
      * check the feature is enabled in logcat
        * WifiP2pService: Supported feature: P2P MAC randomization
      * check p2p0 MAC address is randomized.

Change-Id: I28e226e7d51e3d5e3e6013d3772e643c1df1ab54
2019-01-18 17:50:36 +08:00
Daichi Ueura
03eccd4799 wifi/supplicant: Add SHA256 key management definition
This patch adds SHA256 key management definition
to be able to use more robust algorithm.

Test: Build with dependent CLs
Bug: 68787540
Signed-off-by: Daichi Ueura <daichi.ueura@sony.com>
Change-Id: I2233b9cb04488f6703f8fc3e6bb3a9188ed53ddc
(cherry-picked from commit 1a431a9e7c3ace89aabc738d9a19de2bb2aa57a5
2019-01-15 14:32:51 -08:00
Hai Shalom
37715240f4 [DPP] Add "Not supported" failure code for DPP.
Add "Not supported" failure code for DPP.

Bug: 122851551
Test: atest DppManagerTest
Test: act.py -c ../WifiDppConfig.json -tc WifiDppTest
Change-Id: I3b0e9b0726387696c476b35f7e83ea9f0a921432
2019-01-14 15:43:21 -08:00
Hai Shalom
998d7369e3 [DPP] Added VTS tests for supplicant HAL v1.2
Added VTS tests for supplicant HAL v1.2.

Bug: 118733176
Test: vts-tradefed run commandAndExit vts --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantV1_2Host
Change-Id: Ic68865493debb8c63ce005c7136ed5176a589b09
2019-01-14 13:12:52 -08:00
Jimmy Chen
1e0485b1f3 Merge "p2p: add vts for addGroup_1_2" 2019-01-11 05:41:58 +00:00
Jimmy Chen
a772e8bcd1 p2p: add vts for addGroup_1_2
Bug: 64695709
Test: build - make vts
Test: atest VtsHalWifiSupplicantP2pV1_2TargetTest
Test: vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check \
      --primary-abi-only --skip-preconditions --module \
      VtsHalWifiSupplicantP2pV1_2Target -l INFO

Change-Id: I679fbc7e55aea4a5b6baf3f4bf6f2b04fe7b7f7f
2019-01-09 11:50:08 +08:00
Hai Shalom
92c3cc4075 [DPP] Add DPP key management capability API
Add DPP key management capability API.

Bug: 112197021
Test: atest SupplicantStaIfaceHalTest
Change-Id: Ie92ac574aead59bed7ac51f599ca1eb36ac5251f
2018-12-27 15:43:17 -08:00
Hai Shalom
e6f614c2e0 [DPP] Added new DPP API and new callbacks
Added new DPP API for initiator mode, and new callback interface for DPP
events.

Bug: 112197021
Test: tbd
Change-Id: I1dc8fbdf65b3670c5eefe7d0677a1958dcf6d990
2018-12-21 13:28:24 -08:00
Keun Soo YIM
68ae05dd2d pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Merged-In: I363450d205868f900e4925ccff1430e2a569f2a4
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-12-07 10:49:56 -08:00
Jimmy Chen
ee8663de0e Merge "p2p: add groupAdd method accepts the group configuration" 2018-11-30 06:19:22 +00:00
Keun Soo YIM
ff84c37bc1 pack VTS cc_test binaries as general-tests
Test: make general-tests
Bug: 120093339
Change-Id: I363450d205868f900e4925ccff1430e2a569f2a4
2018-11-27 16:11:41 -08:00
TreeHugger Robot
8ae68433e1 Merge "wifi(vts): Separate P2P specific tests" 2018-11-21 01:36:20 +00:00
Jimmy Chen
6c207ed3d6 p2p: add groupAdd method accepts the group configuration
New WiFi Direct APIs needs to support passing group configuration to
create a group or join a group without negotiation and WPS.

Bug: 64695709
Test: Group creation
      * create a group with a configuration.
      * join it as new Group Client.
      * join it as legacy Wi-Fi STAs.
Test: Group joining
      * create a group with configuration.
      * join above group without negotiation and WPS.

Change-Id: I26f9627199869637fe9e9e5b78f0bf30f02501c3
2018-11-20 00:50:53 +08:00
Roshan Pius
61c8ea596a wifi(vts): Separate P2P specific tests
Similar to how NAN specific tests were separated from wifi HAL VTS
test suite, separate out P2P specific tests in wpa_supplicant HAL VTS test
suite.
Changes in the CL:
a) Use the |gEnv->isP2pOn| flag to skip P2P tests in SupplicantHidlTest.
b) Seprare SupplicantP2pIfaceHidlTest into a new test module.

Bug: 73306751
Test: Ran VTS tests
vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantV1_0Host -l INFO
vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantV1_1Host -l INFO
vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantP2pV1_0Target -l INFO

Change-Id: I65de3ff5cde023bfba2ac3a6c38ff9ad680de8bc
2018-11-16 14:46:19 +08:00
Hai Shalom
2b546f3aa5 [WPA3] Move KeyMgmt capability API from StaNetwork to StaIface
Move KeyMgmt capability API from StaNetwork to StaIface, uprev
ISupplicant and ISupplicantStaIface to v1.2.

Bug: 112195778
Test: atest SupplicantStaIfaceHalTest SupplicantStaNetworkHalTest
Change-Id: Ia249c51faca528d420180e8e569aebb0d0a022ee
2018-11-12 15:10:22 -08:00
Hai Shalom
dbcb2c6321 [WPA3] Added setGroupMgmtCipher and getGroupMgmtCipher for Suite-B
Added setGroupMgmtCipher and getGroupMgmtCipher required for
WPA3-Enterprise Suite-B. Valid options are BIP_GMAC_128, BIP_GMAC_256
and BIP_CMAC_256.

Bug: 112195778
Test: atest com.android.server.wifi
Change-Id: I1d8d1d44e269c59ce5731a4e6af30fa9e4351fbc
2018-10-30 15:23:01 -07:00
Hai Shalom
fcc8fa0d15 wifi/supplicant: Create version 1.2 and add support for SAE and OWE
Create version 1.2. and add new interfaces for SAE and OWE, including
new key management types and API.

Bug: 112195778
Test: Unit tested
Change-Id: I9895d3a12c5b8953a04c6f1ebb24e06503e0ff9b
2018-10-22 14:26:39 -07:00
Ahmed ElArabawy
c173cbb5cd WiFi: Add vts tests for ISupplicantStaIface 1.1
This Commit adds the tests for the ISupplicantStaIface for V1.1

Bug: 64612561
Test: Manual

Change-Id: Id5608d0f985004a22954f368ac0fa19886f7421d
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-03-27 11:12:42 -07:00
Ahmed ElArabawy
8b837b313b WiFi: supplicant HAL: Modify onEapFailure Callback
This commit modifies the onEapFailure call back to include the error code.
This enables the framework to react on the different errors reported by
the EAP methods.

Bug: 64612561
Test: Manual

Change-Id: I793b61b898df63f07dc2e40798a6d6761d8e259d
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-03-27 11:12:42 -07:00
Roshan Pius
b887dedf99 supplicant/hostapd(vts): Test for terminate
This HIDL API is meant to terminate the HIDL service. On Pixel devices,
terminate will trigger the death of the corresponding daemon.
But, other OEM's may choose to do something else.

Bug: 71613595
Bug: 71613528
Test: Ran the VTS tests
Change-Id: I737458b5c49ecd5545be0dc7033092db9a35b089
2018-03-06 15:46:00 -08:00
Roshan Pius
f20f66a6ab Merge "supplicant 1.0 (vts): Add ifaces at init for 1.1 HAL service" 2018-02-28 17:59:26 +00:00
Roshan Pius
8f7074c832 supplicant 1.0 (vts): Add ifaces at init for 1.1 HAL service
This was previously present in the .rc files for the 1.0 HAL. For
devices running the 1.1 HAL, we'll now add the interfaces at init for
testing the 1.0 functionality.

Bug: 65711261
Test: make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantV1_0Target
-l INFO

Change-Id: I2137e9286c4496d7f8ddeb705c34b2d13b4ed3dc
2018-02-27 14:00:42 -08:00
Ecco Park
f2b8b82403 wpa_supplicant(sta_network): Support encrypted imsi identity API for EAP-AKA/SIM
Bug: 71613595
Test: VTS test
Change-Id: I1bded81d94531e63bbc351470955967281cc9f7a
Signed-off-by: Ecco Park <eccopark@google.com>
2018-02-26 18:46:43 -08:00
Zhuoyao Zhang
e768fb9cea Convert wifi hal test to use VtsHalHidlTargetTestEnvBase
Bug: 64203181
Test: make vts
      vts-tradefed run vts -m VtsHalWifiV1_0Host
      vts-tradefed run vts -m VtsHalWifiV1_1Target
      vts-tradefed run vts -m VtsHalWifiSupplicantV1_0Target
      vts-tradefed run vts -m VtsHalWifiSupplicantV1_1Target

Change-Id: I4ea9554829b75b73b600ab668885d57c94251a87
2018-02-12 15:45:22 -08:00
Roshan Pius
d0b0bc371a wpa/hostapd(interface): Add terminate method
These will be used to bring down the HIDL services (i.e kill the daemon)
when they're no longer needed.

Bug: 72394251
Test: ./hardware/interfaces/update-makefiles.sh
Change-Id: I99189efa6770ee5a1f1c8379598a9414d99bfe66
2018-02-01 19:41:38 -08:00
pkanwar
5a42197d39 HIDL changes to support Stadium Wifi.
Add ISupplicantStaNetwork to allow passing multiple identities to the
Supplicant.

Bug: 30988281
Test: compile
Change-Id: I849e21127be57f9ed6c6779bd97a6367984f6afb
2018-01-26 00:16:00 +00:00
Roshan Pius
1a424095bf supplicant(vts): Restart supplicant after all the test
Bug: 70346098
Test: `make vts -j30 BUILD_GOOGLE_VTS=true TARGET_PRODUCT=aosp_arm64 &&
vts-tradefed run commandAndExit vts --skip-all-system-status-check
--primary-abi-only --skip-preconditions --module
VtsHalWifiSupplicantV1_1Target -l INFO`

Change-Id: I0bf1a5b96a9e8aad71577f3247c306d4ccc8ae18
2018-01-08 12:52:01 -08:00
Roshan Pius
781d183aa9 wpa_supplicant(interface): Support add/remove interfaces
Add HIDL API's for adding/removing interfaces dynamically.

Bug: 65673678
Test: VTS tests
Test: Manual test modifying framework to add wlan0 dynamically.
Change-Id: Ifebfc9e8848e3388f5c4829bb225e3cb0bd82b05
2017-12-27 09:07:12 -08:00
Steven Moreland
8db261bc99 Updating makefiles for hidl_interface.
Bug: 64487114
Test: manual
Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
2017-11-13 10:00:18 -08:00
Steven Moreland
db3c6b747f Merge "Remove unnecessary Android.mk" am: 7052f3d45d am: 6993933fc6
am: 0d6bbbcc1e

Change-Id: I23bd6e6751db2aac43904e7aa0c0d9c6661a96d1
2017-11-02 04:26:19 +00:00
Steven Moreland
0d6bbbcc1e Merge "Remove unnecessary Android.mk" am: 7052f3d45d
am: 6993933fc6

Change-Id: Id4f1fcb632a25a7a44b04c44eacd3f089cd1e8ca
2017-11-02 04:24:48 +00:00
Steven Moreland
822c2e1809 Remove unnecessary Android.mk
Doesn't do anything. Just when I thought I get rid of them all.

Test: none
Change-Id: Iac559e41ea5557e99490fa439af9d720e2d9075a
2017-11-01 16:44:44 -07:00
Steven Moreland
f390f03aa4 Update for Soong-only makefiles.
Test: pass
Bug: 33420795
Change-Id: Ibec6d1e38939b9e7566a96381439be2aac3bf8ca
2017-10-11 18:30:28 +00:00
Steven Moreland
1d7374c5e1 Update for Soong java makefiles. am: c3e80fa01e am: 0fff75dee1 am: 6c811964a1
am: 116161d94e

Change-Id: I33643636e2511de77fdf7de57777eb67edee2e52
2017-10-11 16:39:21 +00:00
Steven Moreland
116161d94e Update for Soong java makefiles. am: c3e80fa01e am: 0fff75dee1
am: 6c811964a1

Change-Id: I85ccbb4a15cd18938607f5bca4e065b9d7e0182b
2017-10-11 16:31:07 +00:00
Steven Moreland
0fff75dee1 Update for Soong java makefiles.
am: c3e80fa01e

Change-Id: Ia8835f9c95bd98a96f5fd3aff11191e7d3726fb9
2017-10-11 16:23:54 +00:00
Steven Moreland
c3e80fa01e Update for Soong java makefiles.
Test: pass
Bug: 33420795
Change-Id: Id9b1919a19b8ff682738cfb0869a479b4dbb4293
2017-10-10 23:07:20 +00:00