Commit graph

1134 commits

Author SHA1 Message Date
Oscar Shu
95ddd00d03 Merge "VTS - avoid same MAC for AP and STA" 2020-11-10 21:40:10 +00:00
xshu
a45dd5802a VTS - avoid same MAC for AP and STA
Having the AP and STA set the same MAC address in tests could cause
unintended failures when WifiApIfaceHidlTest and WifiStaIfaceHidlTest
are executed back to back.

Bug: 172528120
Test: atest VtsHalWifiApV1_4TargetTest VtsHalWifiV1_2TargetTest

Change-Id: I336d21cd896c46b064f16ecfa184a26dab67deaa
2020-11-09 18:37:36 -08:00
TreeHugger Robot
ccf7517de7 Merge "wifi: add enable SAE PK only mode API" 2020-11-06 20:04:15 +00:00
Roshan Pius
734be98c77 Merge "wifi: Add STA + STA HIDL API's" 2020-11-06 19:57:44 +00:00
Roshan Pius
e9d1e7d384 wifi: Add STA + STA HIDL API's
Add the HIDL API's + shim + VTS tests.

Bug: 170305665
Test: atest VtsHalWifiV1_3TargetTest VtsHalWifiV1_5TargetTest
Change-Id: I26ada11aebfe8082bfda251cf7e6990e0aa08a06
2020-11-06 11:54:51 -08:00
Jimmy Chen
7e792611bb wifi: add enable SAE PK only mode API
Bug: 160642415
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I9e9fe69bf5ebc1127085b568f02f44a2ab1b08af
2020-11-06 11:04:53 +08:00
Hai Shalom
8bdc3db2d3 Merge "Add HAL support for Passpoint venue URL" 2020-11-05 22:57:36 +00:00
Hai Shalom
349bc58cb4 Add HAL support for Passpoint venue URL
Bug: 162783305
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I46e8e6a97c860236129d6761a11946a174985787
2020-11-04 18:51:04 -08:00
TreeHugger Robot
8a8eb6e5c3 Merge "wifi: Create 1.3::IfaceParams to support dual bands (AP+AP Part 1)" 2020-11-05 01:29:33 +00:00
TreeHugger Robot
67f6c1b71f Merge "wifi: add new status code for unsupported cases" 2020-11-04 18:40:11 +00:00
Jimmy Chen
52861d4cb4 Merge "wifi: fix old vts failure due to deprecated API" 2020-11-04 06:56:23 +00:00
Jimmy Chen
4d9f1eed0f wifi: add new status code for unsupported cases
Bug: 160642415
Test: atest VtsHalWifiSupplicantV1_4TargetTest \
            VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I6eac4646df4a3e595f5dd0c359660420b71d444c
2020-11-03 15:51:35 +08:00
Hai Shalom
bcdf1b9418 Merge "HAL changes for Passpoint T&C" 2020-11-03 02:51:39 +00:00
lesl
65caf76788 wifi: Create 1.3::IfaceParams to support dual bands (AP+AP Part 1)
1. Add new 1.3::IfaceParams to support AP+AP.
2. Fix vts to match use the 1.3::IfaceParams

But the test on dual APs mode needs to add after vendor Hal ready to
create two interfaces.

AP+AP Part 1 includes:
1. HIDL: Hostapd support dual bands/channels configuration
2. Framework: HostapdHal support only
3. Hostapd deamon:
a. Support briged interface query
b. Support config dual bands/channel
c. Callback use bridge interface in dual APs mode.

Bug: 162686273
Test: atest -c VtsHalWifiHostapdV1_3TargetTest
Test: atest -c VtsHalWifiHostapdV1_2TargetTest
Test: atest -c VtsHalWifiHostapdV1_1TargetTest
Test: atest -c VtsHalWifiHostapdV1_0TargetTest
Change-Id: I621b303c1e1f36996ca9b7720242f134bbe5fd75
2020-11-02 16:29:19 +08:00
Jimmy Chen
72e0239ed6 wifi: fix old vts failure due to deprecated API
Bug: 160643860
Test: atest VtsHalWifiSupplicantV1_0TargetTest
Change-Id: If47c92981e9a13323bfe5be58e288a77b5adb722
2020-11-02 13:34:02 +08:00
Hai Shalom
1cc3ba235c HAL changes for Passpoint T&C
Add SupplicantStaIfaceCallback v1.4 with support for the new
Passpoint T&C notification callback.

Bug: 171928337
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I14f88427a6112b6a097d168c00ece3e36a7bd82f
2020-10-30 09:41:28 -07:00
Jimmy Chen
61ef86b625 wifi: add enable SAE H2E only mode API
Bug: 160642700
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: Ic40d8435d35917a7eb722b102de3c2b7640c1aac
2020-10-23 18:47:00 +08:00
Jimmy Chen
77f2c0780c wifi: add transition disable callback API
Bug: 160643860
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: I66839d6766b39483c78919aaa42d42db032f87a7
2020-10-23 18:47:00 +08:00
Nate Jiang
77d3ff366d Merge "[AWARE] Add support for instant communication mode" 2020-10-20 16:19:02 +00:00
Jimmy Chen
2abc352787 wifi: add 60GHz Wi-Fi P2P support
Bug: 14749550
Test: atest VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I9ad8afa194999409c55e3606510ef6ed43f4960e
2020-10-16 12:00:46 +08:00
Nate Jiang
3ec6781c35 [AWARE] Add support for instant communication mode
Bug: 160725208
Test: atest WifiNanIfaceTest,VtsHalWifiNanV1_0TargetTest, VtsHalWifiNanV1_2TargetTest, VtsHalWifiNanV1_4TargetTest, VtsHalWifiNanV1_5TargetTest

Change-Id: I66c8532dcd50d5702edbcd89005b9e7373659594
2020-10-15 17:15:46 -07:00
TreeHugger Robot
df17ab2f52 Merge "wifi: check all possible returning codes for connect/cancelConnect" 2020-10-09 01:04:24 +00:00
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
Jimmy Chen
d459e4eecd wifi: check all possible returning codes for connect/cancelConnect
Before R, those two calls are not going to work with fake values.
After enabling auto-join, it will success always.

Bug: 169890122
Test: atest VtsHalWifiSupplicantP2pV1_0TargetTest
Change-Id: I7d94e797e140520a5df33bba854d5cb2b015eacf
2020-10-08 10:24:17 +08: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