Commit graph

1134 commits

Author SHA1 Message Date
Treehugger Robot
c418575f39 Merge "wifi: Added capability check in RTT tests" am: 08c0142b21 am: cabeb6149b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1428450

Change-Id: I1b36177052e1bb33def059b75b90ef4240e040a3
2020-09-17 07:37:14 +00:00
Treehugger Robot
08c0142b21 Merge "wifi: Added capability check in RTT tests" 2020-09-17 06:13:34 +00:00
lesl
0a43f6dc11 wifi: Call terminate in VTS teardown
When OEM register different hostapd instance without update the StopHostapd.
It will cause VTS clean fail because hostapd process name is the new
one.
Call terminate to request clean HAL state.

Bug: 161682236
Bug: 167636313
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: If56e5b5351abd31865150bdf97d27674dbbc4257
2020-09-17 00:57:17 +00:00
Les Lee
19cc21ea41 Merge "vts: Fix incorrect instance name in Teardown" 2020-09-17 00:56:50 +00:00
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
Jimmy Chen
a8ae5ac2fa wifi: add 60GHz STA support
Extend the PairwiseCipherMask and GroupCipherMask enums with GCMP_128
as WiGig doesn't support GCMP_256.
Add a flag for enabling EDMG (802.11ay, 60GHz channel bonding) for STA.

Bug: 147495507
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest

Change-Id: I008955c3f6960b888271a679a5ba10ae2f9a9ad1
2020-09-16 10:40:54 +08:00
lesl
bc86698c89 vts: Fix incorrect instance name in Teardown
The stopHostapd uses vendor HAL HIDL interface.
The interface name should use wifi_instance.

Bug: 161682236
Test: atest VtsHalWifiHostapdV1_2TargetTest
Change-Id: I8215cba3e2a36f48863f57e199684c7446e20692
Merged-In: I8215cba3e2a36f48863f57e199684c7446e20692
2020-09-16 09:38:21 +08:00
Dan Shi
8b3d1f32a5 Merge "Suppress gtest error for tests without any instance" am: de3f15adc0 am: acfabe652f am: 6086e20a02 am: ecbff25e71
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425889

Change-Id: Id004165914d469c01113091081d120f7cd68ec26
2020-09-16 00:23:41 +00:00
Dan Shi
6086e20a02 Merge "Suppress gtest error for tests without any instance" am: de3f15adc0 am: acfabe652f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1425889

Change-Id: I8b25839bef2f81a02590357dc7c3658ea4499f76
2020-09-15 23:06:07 +00:00
Jimmy Chen
e29dd0090b wifi: remove wifi instance name string check
When wifi instance name is empty, HAL should still be started normally.

Bug: 161951052
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: I2d848501ba3e7d4128b07d8ac858e5ebd31c6452
2020-09-15 18:04:31 +08:00
Jimmy Chen
5e4daa8d9a wifi: wait for the framework to be ready before checking features
supplicant vts will stop and then start the framework, it is too
slow to allow next test checking necessary features.

This change also create a base class, SupplicantHidlTestBase, to do the
common initialization for all vts tests.

Bug: 167230822
Test: atest VtsHalWifiSupplicantV1_0TargetTest \
            VtsHalWifiSupplicantP2pV1_0TargetTest \
            VtsHalWifiSupplicantV1_1TargetTest \
            VtsHalWifiSupplicantV1_2TargetTest \
            VtsHalWifiSupplicantP2pV1_2TargetTest \
            VtsHalWifiSupplicantV1_3TargetTest \
            VtsHalWifiSupplicantV1_4TargetTest
Change-Id: Ice25c6d2198f719fc964a17515e66146a0a8ace2
2020-09-14 08:29:28 +00:00
Dan Shi
ac9cf4482b Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I627d6790aa08aa9c6e3c5b8bdc533213ee08de21
Merged-In: I627d6790aa08aa9c6e3c5b8bdc533213ee08de21
2020-09-11 11:02:25 -07:00
lesl
0d23292225 wifi: Report mac address of apIfaceInstance in callback
Test: Manuel Test. Hotspot works normally & mac address is correct to
show in framework.
Test: atest VtsHalWifiHostapdV1_0TargetTest
Test: atest VtsHalWifiHostapdV1_1TargetTest
Test: atest VtsHalWifiHostapdV1_2TargetTest

Change-Id: I33f4548257d51fc06fa85af00a92637345364820
2020-09-11 23:37:17 +08:00
Dan Shi
d4b249725b Merge "Suppress gtest error for tests without any instance" 2020-09-08 23:33:38 +00:00
Les Lee
c5e6608a68 Merge "wifi: Add Mobile Hotspot(MHS) info callback" 2020-09-08 21:52:54 +00:00
Dan Shi
6b0fd062bb Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I627d6790aa08aa9c6e3c5b8bdc533213ee08de21
2020-09-08 10:42:38 -07:00
Xin Li
3211c41054 Merge RP1A.200720.011
Bug: 167588565
Merged-In: If6721904a50f164626d30460a2b13c59ffd2814f
Change-Id: I254b5fef3368a656c3f67cdab85623deb5399c88
2020-09-02 11:55:34 -07:00
lesl
4aee25fa69 wifi: Add Mobile Hotspot(MHS) info callback
The info includes AP's frequency, bandwidth
and generation(operational mode).

Bug: 163288112
Test: Manuel Test. Hotspot works normally.
Test: atest VtsHalWifiHostapdV1_0TargetTest
Test: atest VtsHalWifiHostapdV1_1TargetTest
Test: atest VtsHalWifiHostapdV1_2TargetTest
Change-Id: I5ff640169f10178fac196d17cadbfeedd2787fc0
2020-09-02 18:14:52 +08:00
Jimmy Chen
5cbf6276f5 Wifi: support 60GHz (Wigig) band
Update WifiBand enum with new bands to support 60GHz band:
BAND_60GHZ - 60GHz band
BAND_24GHZ_5GHZ_6GHZ_60GHZ -
  2.4 GHz + 5 GHz (no DFS) + 6GHz + 60GHz
BAND_24GHZ_5GHZ_WITH_DFS_6GHZ_60GHZ -
  2.4 GHz + 5 GHz with DFS + 6GHz + 60GHz

Bug: 147495506
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: I7c7cc514b88b999cc33e9573ac65910c0c53417a
2020-09-02 10:56:56 +08:00
Jimmy Chen
1bdf1a79f4 Wifi: add new chip capability WIGIG
Add a new chip capability WIGIG, for chips that
can operate on the 60GHz band. This capability is
mapped to the vendor HAL feature WIFI_FEATURE_INFRA_60G.

Bug: 147522435
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: I37b1121c62acadb621dca5e38671c78817f592e1
2020-09-02 10:56:56 +08:00
TreeHugger Robot
30f8aa988b Merge "Make wifi hidl interfaces available to the platform" 2020-08-29 19:22:48 +00:00
Colin Cross
81dec9cfc4 Make wifi hidl interfaces available to the platform
The wifi hidl interfaces need apex_available: ["com.android.wifi"]
because the generated java interfaces are needed by the
com.android.wifi apex, but that causes the C interfaces to not
be available to the platform.  The unavailability was hidden
by b/154888298.  Explicitly mark them with "//apex_available:platform".

Bug: 154888298
Test: m checkbuild
Change-Id: I8959ec1454cce6817802bcc1785a34ba56adc99c
2020-08-28 15:05:59 -07:00
Xin Li
36dcf1a404 Merge Android R (rvc-dev-plus-aosp-without-vendor@6692709)
Bug: 166295507
Merged-In: I6502829205ede2de914b27e6c2c5c42916af2b39
Change-Id: I7cb06511e43bd1fffd5f80a11dbdf5b1314cfe8e
2020-08-28 13:05:04 -07:00
Nate Jiang
adce22ea9d resolve merge conflicts of 0bb061f863 to master
Change-Id: I0b13f3fc6edcfb2d5982ec13728753906f158c30
2020-08-27 20:46:32 +00:00
Nate Jiang
0bb061f863 WifiNanIface: Validate interface before cleanup. am: 674b27abc3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12464566

Change-Id: Ibc123ac00b48485c9f319d8ec304221e427cd989
2020-08-27 19:54:40 +00:00
Nate Jiang
674b27abc3 WifiNanIface: Validate interface before cleanup.
Calling invalidate() API twice would lead to fatal error. This
commit is to check if interface isValid() before doing other operations
in invalidate() API.

Bug: 166412651
Test: atest VtsHalWifiNanV1_4TargetTest WifiNanIfaceTest
Change-Id: Ia3fc48bb3d98660705bba9a32b7a5845ff7af79f
2020-08-26 16:38:19 -07:00
lesl
7140c0bd18 vts: Fix incorrect instance name in Teardown am: a6cc5825e9 am: 9ce5301add am: 676d1b13dc am: 726ad5373b am: c36041d0e3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12422070

Change-Id: Ic4f1e56a1d03186814ab0405c263390895853b7d
2020-08-26 16:25:38 +00:00
lesl
c36041d0e3 vts: Fix incorrect instance name in Teardown am: a6cc5825e9 am: 9ce5301add am: 676d1b13dc am: 726ad5373b
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12422070

Change-Id: I5218babac3d87d748dffeb928fee77d425280e6e
2020-08-26 15:41:44 +00:00
lesl
355eb41cd7 vts: Fix incorrect instance name in Teardown am: a6cc5825e9 am: 9ce5301add am: 676d1b13dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12422070

Change-Id: I5bb711148ae6ba355b6c0af62a0100718eb0a0f7
2020-08-26 15:19:34 +00:00
lesl
726ad5373b vts: Fix incorrect instance name in Teardown am: a6cc5825e9 am: 9ce5301add am: 676d1b13dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12422070

Change-Id: I53cc1eb272c5d529e3882d334895a73496044911
2020-08-26 15:18:42 +00:00
lesl
04d7e84c6e vts: Fix incorrect instance name in Teardown am: a6cc5825e9 am: 9ce5301add
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12422070

Change-Id: I783c3bd78d5adee5ceee8c4bc55c380b80434949
2020-08-26 14:45:07 +00:00
lesl
9ce5301add vts: Fix incorrect instance name in Teardown am: a6cc5825e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12422070

Change-Id: I80345159ccb101a3fe6bc96bcb3b8e10ed4efdab
2020-08-26 13:58:04 +00:00
Kai Shi
224b0b70d0 Merge "wifi: Support 11b only mode" 2020-08-26 00:23:13 +00:00
Les Lee
a715a9b890 Merge "wifi: Add client connected callback" 2020-08-25 02:47:29 +00:00
Kai Shi
5118e4f043 wifi: Support 11b only mode
upgrade @1.4::ConnectionCapabilities to include legacyMode, update
corresponding 1.3 VTS test and add new 1.4 VTS test files

Bug: 163912712
Test: atest VtsHalWifiSupplicantV1_0TargetTest \
            VtsHalWifiSupplicantV1_1TargetTest \
	    VtsHalWifiSupplicantV1_2TargetTest \
	    VtsHalWifiSupplicantV1_3TargetTest \
	    VtsHalWifiSupplicantV1_4TargetTest
Test: manual test with 11b only AP to confirm 11b mode is detected and
passed to throughput predictor correctly.

Change-Id: Id4fd567401289091a5d74a770e759eee326c3873
2020-08-24 12:55:18 -07:00
lesl
d91c540c17 wifi: Add client connected callback
Add client connected callback support on hostapd HIDL interface

Bug: 163288112
Test: Manuel Test. Hotspot works normally.
Test: atest VtsHalWifiHostapdV1_0TargetTest
Test: atest VtsHalWifiHostapdV1_1TargetTest
Test: atest VtsHalWifiHostapdV1_2TargetTest
Change-Id: Ib0a41b3ef4a46c7c4bf1ed6e01b31ce3a334a213
2020-08-24 11:27:19 +08:00
lesl
a6cc5825e9 vts: Fix incorrect instance name in Teardown
The stopHostapd uses vendor HAL HIDL interface.
The interface name should use wifi_instance.

Bug: 161682236
Test: atest VtsHalWifiHostapdV1_2TargetTest
Change-Id: I8215cba3e2a36f48863f57e199684c7446e20692
2020-08-21 19:08:17 +08:00
TF Huang
be76b65de5 wlan: add supported interfaces in rc file am: 65516ffff5 am: 1683c975fa
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12417249

Change-Id: I8d22a0d9519a4d7b0f38ca96f43d897da528cacb
2020-08-20 23:08:59 +00:00
TF Huang
a080c418be wlan: add supported interfaces in rc file am: 65516ffff5
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12417249

Change-Id: I050132d80dc687bec32d2b1f8b1fac04fb7c85b3
2020-08-20 22:55:40 +00:00
TF Huang
65516ffff5 wlan: add supported interfaces in rc file
Service vendor.wifi_hal_legacy should add all supported interface
into relevant .rc files.

Bug: 160377428
Test: Wifi presubmit tests
Change-Id: I68e8d3e7ddb1470a92c5ccd30f6d4d5f90ad9e37
Merged-In: I68e8d3e7ddb1470a92c5ccd30f6d4d5f90ad9e37
(cherry picked from commit ca7a8c9559)
2020-08-20 16:50:01 +00:00
Sunil Ravi
b779b00e26 Merge "wifi: Added capability check in RTT tests" 2020-08-19 15:36:52 +00:00
Oscar Shu
7f5630a638 Merge "Attach timestamp to ringbuffer generated files" 2020-08-18 20:03:18 +00:00
Roshan Pius
2287fa3ab4 supplicant(vts): Stop framework after querying package manager am: 2595661c0d am: 5fdc6b6469 am: 5b07a6bef3 am: 1eb933123b am: add611e8e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12351743

Change-Id: I5da209a4a2d44cde69ec74bf2fc7c62decaa9fca
2020-08-18 10:02:04 +00:00
Roshan Pius
add611e8e0 supplicant(vts): Stop framework after querying package manager am: 2595661c0d am: 5fdc6b6469 am: 5b07a6bef3 am: 1eb933123b
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12351743

Change-Id: I9cef38e6c9c86fadb47046e20ba0c65e77559a74
2020-08-18 09:55:54 +00:00
Roshan Pius
1eb933123b supplicant(vts): Stop framework after querying package manager am: 2595661c0d am: 5fdc6b6469 am: 5b07a6bef3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12351743

Change-Id: I11ffe54dd44c2a50629ae70d87e4318ed10cf3fb
2020-08-18 09:42:14 +00:00
Roshan Pius
c29036dec1 supplicant(vts): Stop framework after querying package manager am: 2595661c0d am: 5fdc6b6469 am: 5b07a6bef3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12351743

Change-Id: Ie41e22964192d5cc012a5f6ac1db15ce0234602f
2020-08-18 09:41:56 +00:00
Roshan Pius
e91f0dfc8b supplicant(vts): Stop framework after querying package manager am: 2595661c0d am: 5fdc6b6469
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12351743

Change-Id: I7a01ac081a8057b7186cd75d9606bd29bfd96ddd
2020-08-18 09:28:39 +00:00
Paul Chen
70edf3aa19 Merge "resolve merge conflicts of c9b0df94dd to master" 2020-08-18 04:57:10 +00:00
Sunil Ravi
d85edb7f66 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
2020-08-17 19:16:41 -07:00
xshu
f392fb4688 Attach timestamp to ringbuffer generated files
The file last modified time expressed in seconds from epoch is
attached to only the archived version of the file that is passed
to dumpstate.
Files stored on the device will still have no timestamp in their name.

Bug: 159808285
Test: manual verification
adb root
adb shell lshal debug android.hardware.wifi@1.5::IWifi >> archive.cpio
cpio -iv < archive.cpio
Verify that a timestamp is attached to the filename at the end:
connectivity_events_rbhOVjYpDdNY-1597364258

Change-Id: Iee0c2b37fc1d27cb979ec9125461416cd2d02549
2020-08-13 17:39:37 -07:00
Paul Chen
c15cc159d1 resolve merge conflicts of c9b0df94dd to master
Change-Id: Ifa847c55bafb9f268df08f009688398670a800f7
2020-08-12 05:51:22 +00:00
TreeHugger Robot
c9b0df94dd Merge "wifi: Update wifi_wait_for_driver_ready return status handling" into rvc-qpr-dev am: f4b2a45056
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12124823

Change-Id: Ibe9edd99b964e6d7d560ac25938b36725a4c8a32
2020-08-12 05:16:34 +00:00
TreeHugger Robot
f4b2a45056 Merge "wifi: Update wifi_wait_for_driver_ready return status handling" into rvc-qpr-dev 2020-08-12 04:54:50 +00:00
Roshan Pius
2595661c0d supplicant(vts): Stop framework after querying package manager
Bug: 161951052
Test: atest VtsHalWifiSupplicantV1_0TargetTest VtsHalWifiSupplicantV1_1TargetTest
VtsHalWifiSupplicantV1_2TargetTest VtsHalWifiSupplicantV1_3TargetTest

Change-Id: Ic5f57ce77cae7c8f3e233065923877943460edee
2020-08-11 17:41:23 +00:00
Jimmy Chen
2dddd79e16 Wifi: support multiple WIFI chips
The WIFI HAL API has support for multiple WIFI chips
(IWifiChip instances) however the implementation
is hard-coded to support only a single WIFI chip.
This change reworks the implementation so multiple
WIFI chips will be supported.
Support for multiple chips is based on the concept
that each chip is represented by its own vendor HAL
library.
The implementation will look for descriptor
files for vendor HAL libraries under
/vendor/etc/wifi/vendor_hals. It will parse
descriptors, dynamically load vendor HAL libraries
and create WifiLegacyHal and WifiChip objects for
each loaded vendor HAL library.
One of the descriptors should be marked with "primary"
flag. The implementation will create the first WifiChip
object for this library. Typically it is the one
providing the best WIFI functionality, which was
previously used as the only WIFI chip.
Additional support is added inside WifiChip and
WifiLegacyHal for getting available chip modes
and concurrency combinations from the vendor HAL
if available, and allowing the chip to override
network interface name when creating interfaces.
The mechanism for getting chip capabilities is
improved to allow getting chip-global capabilities,
which are independent of any created interfaces.
For example, if the framework needs to start
a SoftAP on the 60GHz band, it needs to find a
chip which supports this band, but before creating
any interface on the chip. The new mechanism allows
this.

Bug: 146922967
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: Ibdff93ea56aff186d4b5361ac77f6f448a0dfd45
2020-08-11 14:58:07 +08:00
Jimmy Chen
7a82ad8c6a Wifi: fix bug during WIFI HAL stop
In WifiChip::invalidateAndRemoveDependencies, the
iterator was not implemented correctly as it was
deleting objects while iterating. This could cause
the entire WIFI HAL to be restarted when disabling
WIFI.

Bug: 146922967
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: Id86f1a662684467d3b86a79b271144ac3055d0a0
2020-08-11 14:18:59 +08:00
Les Lee
d4d6796bf5 Merge "wifi: Upgrade hostapd HIDL to 1.3" 2020-08-10 01:29:30 +00:00
Jimmy Chen
62b6c51b55 Merge "wifi: uprev supplicant interface to 1.4" 2020-08-09 01:24:53 +00:00
Jimmy Chen
1913fdbf3e wifi: uprev supplicant interface to 1.4
Bug: 162901316
Test: atest VtsHalWifiSupplicantV1_0TargetTest \
            VtsHalWifiSupplicantP2pV1_0TargetTest \
            VtsHalWifiSupplicantV1_1TargetTest \
            VtsHalWifiSupplicantV1_2TargetTest \
            VtsHalWifiSupplicantP2pV1_2TargetTest \
            VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Ic6292bb27e234f76013a341e62652dedf55f8490
2020-08-07 15:29:57 +08:00
Roshan Pius
8a3f8fcb4c Merge "wifi(vts): Use blocking getService to wait for service to come up" into rvc-dev am: 5afe29b247
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12204704

Change-Id: I9d71e54e4c4056a1c6adfde2542ece0a708f2cd1
2020-08-06 19:56:57 +00:00
Roshan Pius
ed990f6c7c Merge "wifi(vts): Use blocking getService to wait for service to come up" into rvc-dev am: 5afe29b247 am: 1bf88e14c3 am: fbefe7771f am: 044e655575
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12204704

Change-Id: Id047ea3e9f8bd480e15ce14a8fb22a95cdbd0fcf
2020-08-06 17:23:20 +00:00
Oscar Shu
7a0bc12dd5 Merge "Ringbuffer stops logging after wifi toggle" into rvc-qpr-dev am: cb07b80c3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12257415

Change-Id: I01871d3967f95e0baf10941162bf3b2a9f7a5204
2020-08-06 16:59:26 +00:00
Roshan Pius
044e655575 Merge "wifi(vts): Use blocking getService to wait for service to come up" into rvc-dev am: 5afe29b247 am: 1bf88e14c3 am: fbefe7771f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12204704

Change-Id: I150778514aab18844d9801a43b6b756b54b83e6c
2020-08-06 16:57:13 +00:00
Roshan Pius
fbefe7771f Merge "wifi(vts): Use blocking getService to wait for service to come up" into rvc-dev am: 5afe29b247 am: 1bf88e14c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12204704

Change-Id: Id89eaf690c180afc631b0f34c74b1e5609dfb39f
2020-08-06 16:47:57 +00:00
lesl
df75bc1dfb wifi: Upgrade hostapd HIDL to 1.3
1. Upgrade hostapd HIDL to 1.3
2. Add new callback register in 1.3
3. Update 1.1 vts to ignore register callback test
4. Add Wifi generation define.
sinca 1.3 support the new callback

Test: Manuel Test. Hotspot works normally.
Test: atest VtsHalWifiHostapdV1_0TargetTest
Test: atest VtsHalWifiHostapdV1_1TargetTest
Test: atest VtsHalWifiHostapdV1_2TargetTest
Bug: 151189102
Change-Id: I21b81ce21b8bd22b4ffe70c9b69d36810b1f925f
2020-08-05 11:41:36 +08:00
Oscar Shu
cb07b80c3c Merge "Ringbuffer stops logging after wifi toggle" into rvc-qpr-dev 2020-08-04 20:49:52 +00:00
Roshan Pius
ba3b87b6aa 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
(cherry picked from commit 6d0af445ee)
2020-07-30 17:47:22 +00:00
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
Roshan Pius
3f0e9f7c76 Merge "wifi(vts): Use blocking getService to wait for service to come up" into rvc-dev am: 5afe29b247 am: 1bf88e14c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12204704

Change-Id: I480f527cef71fbfe349129d95f94ac8507e8df2e
2020-07-29 20:56:18 +00:00
xshu
a46114dfb9 Ringbuffer stops logging after wifi toggle
Forces ringbuffer updates before writing zipped files to bugreport.
Also properly resets the ringbuffer callback when it's deregistered.

Bug: 161307741
Test: make vts -j64 && vts-tradefed run commandAndExit vts --module VtsHalWifiV1_0Target
Test: manual verification with triggering a bugreport
Test: manual verification with wifi toggles
Change-Id: I74deffda917054e20cfcf4f0dd90d778626c89d3
Merged-In: I74deffda917054e20cfcf4f0dd90d778626c89d3
(cherry picked from commit 0a0fe51a6a)
2020-07-29 20:45:03 +00:00
Roshan Pius
5afe29b247 Merge "wifi(vts): Use blocking getService to wait for service to come up" into rvc-dev 2020-07-29 20:19:16 +00:00
Dan Shi
ff985a85a8 Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I58bc808a82b2128bb8774f762f9b9fcecd2614fb
2020-07-29 09:46:36 -07:00
Dan Shi
9eaab747fe Suppress gtest error for tests without any instance am: ba4d532fee am: 73122cd284 am: e5c9b5e722 am: 1a52c0eb25 am: 1a3e0f86eb
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1374050

Change-Id: I6ddea2dcb636e3ba67ad11d53b9fe12c51314c7a
2020-07-29 06:36:31 +00:00
Dan Shi
1a3e0f86eb Suppress gtest error for tests without any instance am: ba4d532fee am: 73122cd284 am: e5c9b5e722 am: 1a52c0eb25
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1374050

Change-Id: I474b87b3697ea787c0f9be246c13a0d71248141f
2020-07-29 06:20:27 +00:00
Dan Shi
e5c9b5e722 Suppress gtest error for tests without any instance am: ba4d532fee am: 73122cd284
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1374050

Change-Id: Ie5e956d4613f5e947c36ba4f1048f0c3aa8944ba
2020-07-29 05:45:58 +00:00
Dan Shi
ba4d532fee Suppress gtest error for tests without any instance
Bug: 162052785
Test: m -j vts
Change-Id: I8c1a48e6fbd7c8161137902b5332911fa0d7b8b3
2020-07-28 15:12:32 -07:00
TreeHugger Robot
bdc16cba32 Merge "wifi: Fix for DPP VTS test failures on 5GHz only devices" into stage-aosp-rvc-ts-dev am: 80224805c5 am: 4b47ecaf5d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12219814

Change-Id: I2757c0e5bea86e34ea1cddda986f2fa5c2300376
2020-07-24 23:00:52 +00:00
Xin Li
99b0ded102 Merge stage-aosp-rvc-ts-dev into rvc-dev am: f73fe6b6bc am: e594b4db30
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12203367

Change-Id: I488ca631bb7be0193637f98ecc12491a2c0c33b9
2020-07-24 08:46:10 +00:00
Xin Li
2cda765afc Merge stage-aosp-rvc-ts-dev into rvc-dev am: f73fe6b6bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12203367

Change-Id: I74978fe2cd4eabf829d72ac7e9feee51fb3cd799
2020-07-24 08:26:19 +00:00
xshu
0a0fe51a6a Ringbuffer stops logging after wifi toggle
Forces ringbuffer updates before writing zipped files to bugreport.
Also properly resets the ringbuffer callback when it's deregistered.

Bug: 161307741
Test: make vts -j64 && vts-tradefed run commandAndExit vts --module VtsHalWifiV1_0Target
Test: manual verification with triggering a bugreport
Test: manual verification with wifi toggles
Change-Id: I74deffda917054e20cfcf4f0dd90d778626c89d3
2020-07-23 19:24:35 -07:00
Jimmy Chen
9801030dff Merge "wifi: upgrade wifi interface to 1.5" 2020-07-24 00:57:47 +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
Sunil Ravi
1868aa0cb2 wifi: Fix for DPP VTS test failures on 5GHz only devices am: 6b75eeb045 am: cbc091b4be
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12207216

Change-Id: Ib14c5ca62bccf711fb9472d4f976c7d014437764
2020-07-22 21:26:11 +00:00
Sunil Ravi
cbc091b4be wifi: Fix for DPP VTS test failures on 5GHz only devices am: 6b75eeb045
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12207216

Change-Id: Ia547f9673497b2b6cfe07a4d7710f4b3a4839fa9
2020-07-22 21:12:29 +00:00
Sunil Ravi
6b75eeb045 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
2020-07-21 22:59:37 -07:00
Jimmy Chen
d460df3f3b wifi: upgrade wifi interface to 1.5
Only a root interface is added and update relevant code.

Bug: 160834354
Test: atest VtsHalWifiV1_0TargetTest VtsHalWifiNanV1_0TargetTest VtsHalWifiApV1_0TargetTest \
            VtsHalWifiV1_1TargetTest \
            VtsHalWifiV1_2TargetTest VtsHalWifiNanV1_2TargetTest \
            VtsHalWifiV1_3TargetTest \
            VtsHalWifiApV1_4TargetTest VtsHalWifiNanV1_4TargetTest VtsHalWifiRttV1_4TargetTest
Change-Id: Ifdffa3a6996eca1d3c4b499258896cdfe5eb9c87
2020-07-22 13:20:39 +08:00
Roshan Pius
6d0af445ee 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
2020-07-21 14:28:28 -07:00
Sunil Ravi
f0d4ef79a8 Merge "wlan: add supported interfaces in rc file" into rvc-qpr-dev am: bd6ba06827
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12178405

Change-Id: I8e73af88fa55bb2a171bcbd656ea6d6d98a2290e
2020-07-20 03:59:40 +00:00
TF Huang
ca7a8c9559 wlan: add supported interfaces in rc file
Service vendor.wifi_hal_legacy should add all supported interface
into relevant .rc files.

Bug: 160377428
Test: Wifi presubmit tests
Change-Id: I68e8d3e7ddb1470a92c5ccd30f6d4d5f90ad9e37
Merged-In: I68e8d3e7ddb1470a92c5ccd30f6d4d5f90ad9e37
2020-07-17 20:51:36 +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
TF Huang
3f0c09583c wlan: add supported interfaces in rc file
Service vendor.wifi_hal_legacy should add all supported interface
into relevant .rc files.

Bug: 160377428
Test: Wifi presubmit tests
Change-Id: I68e8d3e7ddb1470a92c5ccd30f6d4d5f90ad9e37
2020-07-14 17:02:20 -07:00
Nate Jiang
96ea213f21 Merge "[VTS] Use primary channel to enable RTT responder" into rvc-dev am: cf95a2fe53 am: b80ceb1915 am: 98b203e9c3 am: 2a422466cf
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12109459

Change-Id: Ica5e5303d8c55f2e532e5cae0767abf69af1cdf3
2020-07-14 19:19:12 +00:00
Nate Jiang
2a422466cf Merge "[VTS] Use primary channel to enable RTT responder" into rvc-dev am: cf95a2fe53 am: b80ceb1915 am: 98b203e9c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12109459

Change-Id: Ia41dd76cc19952c783acdc25590ae7c71598ad7d
2020-07-14 18:59:14 +00:00
Nate Jiang
3acf2015e0 Merge "[VTS] Use primary channel to enable RTT responder" into rvc-dev am: cf95a2fe53
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12109459

Change-Id: Idcf73c3e6993a171958c34a3a8b581c1106b6c71
2020-07-14 18:36:46 +00:00
Oleh Cherpak
754d1d990a vts: supplicant: Remove optional service registration am: 31c434b96c am: 8f10e805c5 am: 574c7d7df4
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12131484

Change-Id: Ifdc655ac9ba405dd0423ac7e489297391b05c33e
2020-07-13 16:31:53 +00:00
Oleh Cherpak
cf8962bfa7 vts: hostapd: Remove optional service registration am: 09f373d6c1 am: 10a678b854 am: 5dc0eb2bc5
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12131483

Change-Id: Id63d9a429c87bdbf5b817f3fcac4d96d1583baa9
2020-07-13 16:31:50 +00:00
Oleh Cherpak
8f10e805c5 vts: supplicant: Remove optional service registration am: 31c434b96c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12131484

Change-Id: Ied1cb324d5c8a0c18f7d3d6cd9ea92474fffd93d
2020-07-13 16:02:57 +00:00
Oleh Cherpak
10a678b854 vts: hostapd: Remove optional service registration am: 09f373d6c1
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/12131483

Change-Id: Ib06679c51c94d8e86ea6ac81ceeb95ea04aa3ff4
2020-07-13 16:02:55 +00: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