Commit graph

1111 commits

Author SHA1 Message Date
Blair Prescott
28833592b3 wifi: Fix VTS error for non-p2p devices am: 230e96521d am: bd7b0bceee am: 3f4660cec8 am: 2b6cf192a1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1453396

Change-Id: I5352dd40433b5073aa1525119d5760b9a23d8440
2020-10-08 23:13:58 +00:00
Blair Prescott
2b6cf192a1 wifi: Fix VTS error for non-p2p devices am: 230e96521d am: bd7b0bceee am: 3f4660cec8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1453396

Change-Id: Ibdb539dab2f1fcd461bbe3e462ea6c780c0a55a1
2020-10-08 23:07:20 +00:00
Blair Prescott
3f4660cec8 wifi: Fix VTS error for non-p2p devices am: 230e96521d am: bd7b0bceee
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1453396

Change-Id: I7d4eef43b8a8eecf4ca6ad11fb6658359b734123
2020-10-08 22:45:34 +00:00
Blair Prescott
230e96521d wifi: Fix VTS error for non-p2p devices
Fix VtsHalWifiSupplicantP2pV1_0TargetTest to skip tests
in such a way that VTS reports the module as complete on
devices that don't support Wifi Direct.

Bug: 170326147
Test: run vts -m VtsHalWifiSupplicantP2pV1_0TargetTest
Change-Id: Ia418c4bb72f4772422d724636453395c4ba9fb2d
2020-10-07 19:54:39 +00:00
Les Lee
df227a3b11 Merge "wifi: Add vts 1.3 for hostapd hidl 1.3" 2020-09-30 16:52:38 +00:00
Les Lee
d6b8e4ab1d Merge "wifi: ignore addAccessPoint_1_2 test if current hidl is 1_3" 2020-09-29 00:29:00 +00:00
Roshan Pius
d3dcea5f11 supplicant(vts): Stop adding empty instance for vendor HAL am: b9ddf021d3 am: 8a4e68b788 am: 329fe1ca18 am: a8cec5d5ce
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1438028

Change-Id: I332a0a820f480104557d9fd69657dcc401b2da0b
2020-09-28 19:04:08 +00:00
Roshan Pius
329fe1ca18 supplicant(vts): Stop adding empty instance for vendor HAL am: b9ddf021d3 am: 8a4e68b788
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1438028

Change-Id: I0549c24594969ae37c71d8a71b585fcd588c88df
2020-09-28 18:38:16 +00:00
Roshan Pius
b9ddf021d3 supplicant(vts): Stop adding empty instance for vendor HAL
We don't need to test supplicant in the presence of vendor HAL & without
it. For a given device, this behavior is fixed.

Bug: 161951052
Test: atest VtsHalWifiSupplicantV1_1TargetTest
Merged-In: I71097c3afef1765ca514abf2c350c423e3999020
Change-Id: I71097c3afef1765ca514abf2c350c423e3999020
(cherry picked from commit 984b6e0607)
2020-09-28 16:42:47 +00:00
lesl
9b85a78e71 wifi: Add vts 1.3 for hostapd hidl 1.3
Duplicate from 1.2 and add
1. Call setDebugParams for debugging
2. Add metered indication in NetworkParams (default is true)
3. Add non metered test case

Bug: 151189102
Test: atest -c VtsHalWifiHostapdV1_3TargetTest --rebuild-module-info
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: Ie425e14a08a71cfe4eb8a6b67cd837afd6da4dbe
2020-09-28 11:55:23 +08:00
lesl
f910d10d23 wifi: ignore addAccessPoint_1_2 test if current hidl is 1_3
Bug: 169385303
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: I4be366be0e733b2ad00c64036a0f8be4e391228c
2020-09-28 11:29:31 +08:00
Roshan Pius
4cbd355b25 Merge changes I71097c3a,I872a1b3e
* changes:
  supplicant(vts): Stop adding empty instance for vendor HAL
  Revert "wifi: remove wifi instance name string check"
2020-09-25 21:51:16 +00:00
Roshan Pius
133389711d supplicant(vts): Stop adding empty instance for vendor HAL
We don't need to test supplicant in the presence of vendor HAL & without
it. For a given device, this behavior is fixed.

Bug: 161951052
Test: atest VtsHalWifiSupplicantV1_1TargetTest
Merged-In: I71097c3afef1765ca514abf2c350c423e3999020
Change-Id: I71097c3afef1765ca514abf2c350c423e3999020
2020-09-25 19:14:13 +00:00
Roshan Pius
f00ab8b77b Revert "wifi: remove wifi instance name string check"
This reverts commit 1c50a59eae.

Reason for revert: This was not needed. Does not fix the issue at hand.
Bug: 161951052
Merged-In: I872a1b3e87f17a43eb3c22c930e916c7e5e2d2a6
Change-Id: I872a1b3e87f17a43eb3c22c930e916c7e5e2d2a6
2020-09-25 19:13:45 +00:00
Treehugger Robot
224824b2dc Merge "vts: Use global hostapd_ since teardown will call terminate function" am: 77c3b52888 am: 7ce0280a4d am: c663e086fd am: 45de416230 am: bd3a9bae8a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1436771

Change-Id: I367f68fb2cd380085bc1423be4feea7118bd83f1
2020-09-25 07:50:03 +00:00
Treehugger Robot
bd3a9bae8a Merge "vts: Use global hostapd_ since teardown will call terminate function" am: 77c3b52888 am: 7ce0280a4d am: c663e086fd am: 45de416230
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1436771

Change-Id: If17caa26b7dde0f77320ea9e5431b44f74c964ab
2020-09-25 07:35:03 +00:00
Treehugger Robot
c663e086fd Merge "vts: Use global hostapd_ since teardown will call terminate function" am: 77c3b52888 am: 7ce0280a4d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1436771

Change-Id: I46da75297a7d58c4db18831a7aba491e3801c400
2020-09-25 07:07:34 +00:00
lesl
b688ea7e73 vts: Use global hostapd_ since teardown will call terminate function
aosp/1427815 add invoke terminate function in teardown function.
It will cause Create Test case fail since Create killed global hostapd_
service to re-generate the local one.
Use global hostapd_ to replace local variable to make teardown function
work normally.

Bug: 169248773
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: I6300a626db76e68873bbc34c489a9a8ee2d55e7a
2020-09-24 08:17:34 +00:00
lesl
c9d109fe06 wifi: Add access network type support
The access network type can be used to indicate network metered state.
Add access network type support when create access point.

Test: Manual Test, check client scan IE to show correct interworking
value. see: b/137879206#comment14
Test: atest VtsHalWifiHostapdV1_0TargetTest
Test: atest VtsHalWifiHostapdV1_1TargetTest
Test: atest VtsHalWifiHostapdV1_2TargetTest
Bug: 137879206

Change-Id: I74213bd763f865f26781313b00e1b1cfeee93086
2020-09-22 20:46:24 +08:00
Jimmy Chen
d3e28b91a9 Merge "wifi: add 60GHz STA support" 2020-09-18 07:21:22 +00:00
Les Lee
4ed9a8494c Merge "wifi: Report mac address of apIfaceInstance in callback" 2020-09-18 02:34:57 +00:00
TreeHugger Robot
b504944278 Merge "wifi: wait for the framework to be ready before checking features" 2020-09-18 02:11:37 +00:00
Treehugger Robot
d6db131281 Merge "wifi: Call terminate in VTS teardown" am: 226727ca88 am: 188a7b6bbf am: 6718df8902 am: e9089d18ef am: 7ba81ef68d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1427815

Change-Id: I42a0b019d75ef40bc78de605eaa31c2a0194efdd
2020-09-17 14:54:27 +00:00
Treehugger Robot
7ba81ef68d Merge "wifi: Call terminate in VTS teardown" am: 226727ca88 am: 188a7b6bbf am: 6718df8902 am: e9089d18ef
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1427815

Change-Id: I9bdab0d4e0d36b2f1920c808fea63623d3982db6
2020-09-17 14:14:11 +00:00
Treehugger Robot
9392a18cc6 Merge "wifi: Added capability check in RTT tests" am: 08c0142b21 am: cabeb6149b am: c418575f39 am: bb913aa46f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1428450

Change-Id: Icd8172ffcfd340852eeba681c76abaf1b28c5f05
2020-09-17 14:12:47 +00:00
Treehugger Robot
6718df8902 Merge "wifi: Call terminate in VTS teardown" am: 226727ca88 am: 188a7b6bbf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1427815

Change-Id: I6c449c10f8200c66df4f183df348d7744cba3865
2020-09-17 10:00:21 +00:00
Treehugger Robot
226727ca88 Merge "wifi: Call terminate in VTS teardown" 2020-09-17 08:28:14 +00:00
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