Commit graph

943 commits

Author SHA1 Message Date
Ahmed ElArabawy
5a3e81c7fb Fix vts test VtsHalWifiV1_2TargetTest
VTS test for WifiChipHidlTest#registerEventCallback_1_2 was failing
on the default implementation of the 1.4 HAL. This is because
registerEventCallback_1_2() is no longer supported due to the upgrade
to registerEventCallback_1_4().

This commit fixes this VTS test error by allowing ERROR_NOT_SUPPORTED
as a valid test output.

Bug: 146020950
Test: atest VtsHalWifiV1_2TargetTest

Change-Id: Ia58b0dad5ed753c22d620b0fad6904d634e01e72
2019-12-29 21:56:13 -08:00
Roger Wang
9e00293747 hostapd: Add debug level control
Add new API: setDebugParams

Bug: 129111866
Test: manual test
Test: atest VtsHalWifiHostapdV1_2TargetTest

Change-Id: I0e61db3d029c89380b687ecddd38a00aafcff0cc
2019-12-30 13:07: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
Kumar Anand
913d5604ee wifi: Legacy HAL Thermal API stub
Add the stub implementation for Wifi thermal API

Bug: 140311866
Test: Manual, on device
Change-Id: I401bf7a38fa52d160ae45cd519a225c07360cd3c
2019-12-20 16:40:37 -08: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
29caaf770c Merge "Wifi: WAPI constants and methods" 2019-12-19 09:28:52 +00:00
Automerger Merge Worker
2406c41f21 Merge "Wifi: fix p2p vts failure on no p2p support devices" am: 189894129c am: 96643ab05c
Change-Id: I4134c6c97d1a8338fc0ba8c0cf0973e3479523ab
2019-12-19 02:39:27 +00:00
Automerger Merge Worker
d719d5726e [AWARE] Protect string copy against buffer overflow am: 5039b6099e
Change-Id: If36fa8b7de6f0b9092e9c7c7f50f6fd8111f6cb3
2019-12-19 01:38:38 +00:00
Etan Cohen
5039b6099e [AWARE] Protect string copy against buffer overflow
Fixes: 143789898
Test: (Unit) atest com.android.server.wifi
Test: ACTS ThroughputTest:test_iperf_single_ndp_aware_only_ib
Test: (VTS) atest VtsHalWifiApV1_4TargetTest
Change-Id: I5b8aa1d9a6388fe20cb7e1cd6a76d5e59e14d099
2019-12-18 15:08:00 -08: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
Ahmed ElArabawy
c828cff678 Wifi-hostapd: Add 6GHz impacts to softAP
This commit adds changes needed to support the 6GHz band to
SoftAP.

Bug: 139354972
Test: Manual
Test: VTS test
Change-Id: Ib4e14facc7cbb54ba89ecf07e75df8dceacb361f
2019-12-17 14:58:55 -08: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
Nate(Qiang) Jiang
18b38eb441 Fix 6GHz support for NAN
add NAN 6Ghz support in 1.4, size of bandSpecificConfig should be 3.

Bug: 146062988
Test: unit test
Test: acts AttachTest DiscoveryTest DataPathTest

Change-Id: I3bd0a4f32d804eae848bc15d9813d5ccb3e5fc62
2019-12-12 18:51:37 +00:00
Ahmed ElArabawy
f72f955b4a Merge changes from topic "hostapd_1_2"
* changes:
  Freeze wifi hostapd 1.2 HAL
  IHostapd: Add hostapd 1.2
2019-12-10 19:01:40 +00:00
lesl
0bad28f064 IHostapd: Add hostapd 1.2
Add new API: forceClientDisconnect

Bug:142752869
Test: Manual Test
Test: VTS: VtsHalWifiHostapdV1_2Target
Change-Id: Ia05ec993815c16731aa9be1f257f941eacf1575f
2019-12-10 17:55:27 +08:00
Ahmed ElArabawy
46b5698a33 Fix format for android.hardware.wifi@1.4
This commit includes the format changes when running the command:
hidl-gen -Lformat android.hardware.wifi@1.4 -randroid.hardware:hardware/interfaces

Bug: 145961722
Test: Build successful
Change-Id: I59b3c4e3f12389ff2660a563b6eb0454a637c35e
2019-12-09 22:08:55 -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
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
TreeHugger Robot
e1ed33bd98 Merge "hal(wifi): Set HAL logd severity based on ringbuffer verbosity" 2019-12-02 10:49:43 +00:00
Etan Cohen
1cefaf6241 [AWARE] Protect string copy against buffer overflow
Fixes: 143789898
Test: (Unit) atest com.android.server.wifi
Test: ACTS ThroughputTest:test_iperf_single_ndp_aware_only_ib
Test: (VTS) atest VtsHalWifiApV1_4TargetTest
Change-Id: I5b8aa1d9a6388fe20cb7e1cd6a76d5e59e14d099
2019-11-26 12:35:49 -08:00
Roshan Pius
a63b53f9a8 hal(wifi): Set HAL logd severity based on ringbuffer verbosity
This avoid the framework from setting the HAL daemon's log severity when
verbose logging is enabled by the user.

Bug: 144695435
Test: Manually verified log level change
Change-Id: I71777bb5f7cb8216bc0ecee27fbaa410c39a6a16
2019-11-18 11:03:13 -08:00
Dan Shi
3550f9a90c Merge "Convert VtsHalWifiV1_*Target to be parameterized test" 2019-11-18 17:06:21 +00: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
b2193ac0d0 Merge "Convert VtsHalWifiSupplicantV1_0TargetTest to be parameterized test" 2019-11-15 23:37:19 +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
13f630ee0f Merge "Bug fix in wifi_hidl_test_utils" am: 2bba1b3211 am: 438d2791cc
am: bc598f54b3

Change-Id: I2dd09b6a722a1636ac2406258e11bf92a8ede8de
2019-11-14 19:24:19 -08:00
Treehugger Robot
2bba1b3211 Merge "Bug fix in wifi_hidl_test_utils" 2019-11-15 03:03:11 +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
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
Roshan Pius
958dee87b8 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
Merged-In: I0958d720411258761f4ac5bcccc823b06a55d518
2019-11-13 12:55:53 -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
Dan Shi
beddeb4dc4 Bug fix in wifi_hidl_test_utils
Bug: 142397658
Test: atest VtsHalWifiSupplicantV1_0TargetTest
Change-Id: Idc1560fa83471f79a2302746815117ff60c46c77
2019-11-12 22:22:48 -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
Sunil Ravi
aabb5ccb26 Merge "Wifi: MBO-OCE feature support (phase 1)" 2019-11-08 22:57:25 +00:00
Dan Shi
5625bc7907 Merge "Convert VtsHalWifiHostapdV1_*TargetTest to be parameterized test" am: 9361c70c9b am: b392aa109f
am: b3f534dd20

Change-Id: I2eb28d9b053cd5be5559068fd1d7c75f5b1b1269
2019-11-08 14:39:58 -08:00
Dan Shi
9361c70c9b Merge "Convert VtsHalWifiHostapdV1_*TargetTest to be parameterized test" 2019-11-08 22:21:51 +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
Les Lee
dab90bdb08 Merge "hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1" 2019-11-08 08:30:38 +00:00
lesl
c8a2e136ea hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1
If driver doesn't support the hotspot ACS feature.
It will cause ACS relate vts testcase failure.
Temp disable the vts test case and file b/140172237 to fix in R.

Bug: 135975451
Test: build - make vts
Test: atest VtsHalWifiHostapdV1_1Target / atest VtsHalWifiHostapdV1_0Target
Test: vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check \
      --primary-abi-only --skip-preconditions --module \
      VtsHalWifiHostapdV1_0Target -l INFO
      vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check \
      --primary-abi-only --skip-preconditions --module \
      VtsHalWifiHostapdV1_1Target -l INFO

Change-Id: I489d5f5c54f37f3603128e127a6c8b1ee62390d3
2019-11-08 11:49:55 +08:00
Dan Shi
3d4d496078 Convert VtsHalWifiHostapdV1_*TargetTest to be parameterized test
Bug: 142397658
Test: atest VtsHalWifiHostapdV1_0TargetTest \
VtsHalWifiHostapdV1_1TargetTest
Change-Id: I37ae0369daf145731eb6b00078b396e1a4415d3f
2019-11-07 14:41:16 -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
3a8199998c Merge "Fix the failed case for the VtsHalWifiSupplicantV1_2Host#SupplicantStaIfaceHidlTest.RegisterCallback_1_2"
am: 528f91b055

Change-Id: I802c059e8eb67ca01d90eeb6ade427c7559ebced
2019-11-07 13:06:39 -08:00
Ahmed ElArabawy
eeb53385b3 Wifi: Add 802.11ax support to RTT
This CL makes modidfication to support Wifi 802.11ax to RTT procedures.

Bug: 139354972
Test: vts test
Change-Id: I79fba504e7c7380a254a0b8c175a13e8b993fc8e
2019-11-06 18:31:16 -08:00
Xin Li
ab68d3750b DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: I8933ff57906fffacf1d48d606451533ec5b79fa2
2019-10-30 11:49:26 -07: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
Xin Li
69879436a5 Merge "Merge Coral/Flame into AOSP master" 2019-10-27 04:44:29 +00:00
Dan Shi
cb0529a5f8 Merge "Convert VtsHalWifiOffloadV1_0TargetTest to be parameterized test" am: 6c4ab0203b am: ea8639e604 am: 7d5220b3d7
am: 4d328005b1

Change-Id: Ic017653bdacd8921244c15f39ecdaf18aa10a440
2019-10-25 21:25:58 -07:00
Dan Shi
7d5220b3d7 Merge "Convert VtsHalWifiOffloadV1_0TargetTest to be parameterized test" am: 6c4ab0203b
am: ea8639e604

Change-Id: I380bf17e5edf0414dc13e83df49808158b0f685a
2019-10-25 21:13:52 -07:00
Dan Shi
ea8639e604 Merge "Convert VtsHalWifiOffloadV1_0TargetTest to be parameterized test"
am: 6c4ab0203b

Change-Id: Idab9d317a51097737b9985c037efe1282dcb8d0e
2019-10-25 21:07:54 -07:00
Ahmed ElArabawy
80feb3cdf0 Wifi: Handle invalid error values from vendor HAL
The HAL shim (default implementation) expects all vendor hal functions
to return valid wifi_error values. In case the vendor hal returning a
value outside this range of values, the HAL service crashes.

This commit is to handle this type of error by defaulting to
WIFI_ERROR_UNKNOWN.

Bug: 143317834
Test: Manual
Test: Pass an invalid error code, and make sure it is properly handled
Change-Id: Ifaba8a7e4e866a2be154c9dcaeb521cd758010ee
2019-10-24 19:22:17 -07:00
Dan Shi
2fb877b69e Convert VtsHalWifiOffloadV1_0TargetTest to be parameterized test
Bug: 142397658
Test: atest
Change-Id: I5480743b5384684a27036d2e0999d0de423a7c20
2019-10-24 15:15:14 -07: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
Patrik Fimml
6beae321c6 Wifi AP: Remove HAL-level MAC randomization
Randomization will be handled by framework code instead. This also means
WIFI_HIDL_FEATURE_DISABLE_AP_MAC_RANDOMIZATION is replaced with a
framework config option (config_wifi_ap_mac_randomization_supported),
which can be set from device overlays.

Bug: 142387520
Test: atest android.hardware.wifi@1.0-service-tests; adb shell LD_LIBRARY_PATH=:/system/lib64/vndk-R /data/local/tmp/android.hardware.wifi@1.0-service-tests/x86_64/android.hardware.wifi@1.0-service-tests
Test: vts-tradefed run vts --primary-abi-only --skip-device-info -l DEBUG --include-filter VtsHalWifiApV1_4Target
Test: lunch hawk-userdebug; m  (uses DISABLE_AP_MAC_RANDOMIZATION)
Change-Id: I2dbf1158368ce3c39980501f892c6de1ffb3f748
2019-10-16 16:46:55 +02:00
Nick Desaulniers
4125722db4 Merge "[hardware][interfaces][wifi] fix -Wreorder-init-list" am: d1785cb7f6 am: 7d36ef505c am: d654bac57d
am: d7b13d4f69

Change-Id: I836a4beefc5117cb4c8c019ce00e56a02665a41b
2019-10-15 22:30:52 -07:00
Nick Desaulniers
d654bac57d Merge "[hardware][interfaces][wifi] fix -Wreorder-init-list" am: d1785cb7f6
am: 7d36ef505c

Change-Id: I40c82222ddb2798ab35d136e96fd2e5aa9827746
2019-10-15 22:14:29 -07:00
Nick Desaulniers
7d36ef505c Merge "[hardware][interfaces][wifi] fix -Wreorder-init-list"
am: d1785cb7f6

Change-Id: I43a36565bd9eb428e16384f5639328ac895ac71a
2019-10-15 22:05:23 -07:00
Nick Desaulniers
f5b16f32f5 [hardware][interfaces][wifi] fix -Wreorder-init-list
C++20 will require members in a designated initializer to be in order
unlike C99.

Bug: 139945549
Test: mm
Change-Id: If22be04df7d2d0aae9ed50fada53d0ccd4edc9d1
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-14 11:06:08 -07: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
Patrik Fimml
809249059c Wifi 1.3: Fix STA getFactoryMacAddress test.
It's valid for individual bytes in a MAC address to be zero as long as
they're not all zero.

Bug: 132705022
Bug: 141916952
Test: m -j32 vts && vts-tradefed run vts-hal --skip-preconditions --module VtsHalWifiV1_3Target
Change-Id: Ic33a3b80cce90eb4b031aca33aa66bf2a375dc16
2019-10-02 17:02:45 +02: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
Ahmed ElArabawy
0d653ad82c Wifi: Move LOCAL_VINTF_FRAGMENTS to executables
Current codebase has the LOCAL_VINTF_FRAGMENTS defined in the static
library definition in Android.mk. This line is skipped and does not take
effect, and hence the Wifi hal service does not start.

Moving the definition to the executable definitions, so it takes effect.

Bug: 141447327
Test: Verify that wifi starts at boot
Change-Id: I9e01483eec4017444689509ea90f761305ae471b
2019-09-23 16:40:50 -07:00
Ahmed ElArabawy
f501a98aad Wifi: Uprev Wifi HAL to 1.4
Move Wifi HAL from 1.3 to 1.4
This commit also include adding the VINTF fragment definition for IWifi
hal.

Bug: 138243400
Test: Builds and wifi works
Change-Id: I5ec9b21f8d6b7e1b5b5e47e26681dd4ed3ffcc2d
2019-09-19 10:37:29 -07:00
TreeHugger Robot
7b2e2fe15c Merge "Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master" into stage-aosp-master 2019-09-11 20:31:38 +00: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
Colin Cross
45cd136049 Remove unused libcrypto dependency. am: 5d81a5814b
am: 84633dea30

Change-Id: I660b0423d97e6402de84be904e0e84c6763518a3
2019-09-10 18:02:04 -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
Xin Li
15be13ea71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: Ia07db5c8afeed7fe22a2b18d867a38390f910a81
Merged-In: Ibbd540dbb5baee46360d3fe9469212cfd8f550ba
2019-09-08 13:06:54 -07:00
Steven Moreland
38c46d0b98 Merge "Remove libhwbinder/libhidltransport deps" am: 6b62c58a9a am: 8c22c3862f am: 6684ee8c36
am: 9a5ffa3196

Change-Id: I3a80895d10767fe68e90a907312a83ded976cbcc
2019-09-06 16:06:13 -07:00
Steven Moreland
6684ee8c36 Merge "Remove libhwbinder/libhidltransport deps" am: 6b62c58a9a
am: 8c22c3862f

Change-Id: Iaedfceb49f81387f7deaad434613b7c9f1c502a0
2019-09-06 14:28:04 -07:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
Robert Chou
6b7aab1d00 Merge "hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1" into qt-dev am: e9e4020560 am: 6059e56d92 am: ea58fdb650
am: cfe379e6c3

Change-Id: Iaa004df5b08c8b5dd5b607919e51cef0dd2bef5b
2019-09-05 14:12:13 -07:00
Robert Chou
cfe379e6c3 Merge "hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1" into qt-dev am: e9e4020560 am: 6059e56d92
am: ea58fdb650

Change-Id: Ib3a7f4aa3ced15843fc0ac2297e92407097b2343
2019-09-05 13:32:50 -07:00
Robert Chou
fe8248cfdb Merge "hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1" into qt-dev am: e9e4020560
am: 6059e56d92

Change-Id: If8c9aa3017825cdb8090d4d7504e39e4bca2f56e
2019-09-05 13:18:44 -07:00
lesl
6919cf1a70 hostapd: Ignore ACS relate vts testcase for hostapd 1.0 and hostapd 1.1
If driver doesn't support the hotspot ACS feature.
It will cause ACS relate vts testcase failure.
Temp disable the vts test case and file b/140172237 to fix in R.

Bug: 135975451
Test: build - make vts
Test: atest VtsHalWifiHostapdV1_1Target / atest VtsHalWifiHostapdV1_0Target
Test: vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check \
      --primary-abi-only --skip-preconditions --module \
      VtsHalWifiHostapdV1_0Target -l INFO
      vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check \
      --primary-abi-only --skip-preconditions --module \
      VtsHalWifiHostapdV1_1Target -l INFO

Change-Id: I489d5f5c54f37f3603128e127a6c8b1ee62390d3
2019-08-29 11:01:50 +08:00
Peter Kalauskas
25e9c43276 Convert LazyServiceRegistrar usage to singleton am: caed24ba9b am: 05d36f94c2 am: 69f9aa86f0
am: 3452dbd078

Change-Id: I1023612e349b576fed331cb6285de13ae58d0304
2019-08-20 13:25:53 -07:00
Peter Kalauskas
05d36f94c2 Convert LazyServiceRegistrar usage to singleton
am: caed24ba9b

Change-Id: Id1a200b248b30209e8481a617bdfccefc5080134
2019-08-20 12:14:42 -07:00
Peter Kalauskas
caed24ba9b Convert LazyServiceRegistrar usage to singleton
Test: lshal
Bug: 139376253
Change-Id: I32cb803fb73aa15b52676847b6e7eb09b86657dc
2019-08-19 21:15:30 +00:00
Les Lee
47359e4929 Merge "WifiHal: Correct typo for code comment" am: 12ca95ccc4 am: 2ad166a35b am: 29a52adadc am: 470d88340f
am: 0d7919c784

Change-Id: I588805872f1443b25a9e4c50a30887d8a6b575e7
2019-08-13 01:59:25 -07:00
Les Lee
29a52adadc Merge "WifiHal: Correct typo for code comment" am: 12ca95ccc4
am: 2ad166a35b

Change-Id: I56f8779232716fa51f9d7c3d649712fa6f0afe32
2019-08-13 01:35:38 -07:00
Les Lee
2ad166a35b Merge "WifiHal: Correct typo for code comment"
am: 12ca95ccc4

Change-Id: I97adbb5087c950df99af8962ff400978d5ad64af
2019-08-13 01:28:57 -07:00
lesl
83530c7fe9 WifiHal: Correct typo for code comment
Test: full build
Change-Id: Ia457f39d1d68527c2bdfaa700d45ead3d2064a52
2019-08-06 12:03:28 +08: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
Roshan Pius
1021104532 hostapd(vts): Use the correct syntax for vendor prop am: 4335de4cac am: 583ea72d3e
am: 31b18ad1a6

Change-Id: I2e2462fe247bb6b0cd1c9d1c7ba2de773facaadd
2019-07-30 08:19:42 -07:00
Roshan Pius
39502371dd hostapd(vts): Use the correct syntax for vendor prop
am: 4335de4cac

Change-Id: I1e89831588dd3eec16e6e04cf2ac9446cac2ce65
2019-07-30 07:58:44 -07:00
Roshan Pius
4335de4cac hostapd(vts): Use the correct syntax for vendor prop
Change the prop to add "ro.vendor." prefix for the new vendor prop.

Bug: 136645414
Change-Id: I5edfdc98991068eac279975397b6a29313bf31da
2019-07-29 11:16:56 -07:00
Roshan Pius
3e01cbd710 Merge "hostapd(vts): Add a property for SAP interface" into qt-dev
am: 896c71a7d2

Change-Id: I6b1857fc92a3f42c5e82ed565f4fb38695934556
2019-07-18 18:18:57 -07:00
TreeHugger Robot
896c71a7d2 Merge "hostapd(vts): Add a property for SAP interface" into qt-dev 2019-07-19 00:57:14 +00:00
Roshan Pius
9a8538b4ee hostapd(vts): Add a property for SAP interface
Changes to the VTS test to support OEM's who use a separate
dedicated SAP interface.

Note: This is a VTS test change only. The default implementation does
not still support a dedicated SAP interface (OEM's can obviously
customize the default implementation for their devices).

Bug: 136645414
Test: None (verified by partner OEM)
Change-Id: I42b87bf90cfa90c7c218309164ab2b77f3685f9e
2019-07-18 14:38:41 +00:00
Xin Li
1942f9edaa DO NOT MERGE - Merge pie-platform-release (PPRL.190705.004) into master
Bug: 136196576
Change-Id: I58505f104075c7c210612eda8e266df9e3ecfeda
2019-07-09 15:22:03 -07:00
Felix
37298a7616 Merge "Add interface info to .rc files"
am: 98d0f4d52c

Change-Id: Ie6cfbacd523c4b09f77bee3369ec8e88b3fa0419
2019-07-08 12:22:23 -07:00