Commit graph

1059 commits

Author SHA1 Message Date
Roshan Pius
3e6084c05d Merge "wifi: Prevent returning an invalid factory MAC address" am: 6119f16921
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1496341

Change-Id: Ic8ad496bdee5d96f46bf3de63e1131bf84ee7581
2020-12-03 20:05:19 +00:00
Roshan Pius
6119f16921 Merge "wifi: Prevent returning an invalid factory MAC address" 2020-12-03 18:51:08 +00:00
Xin Li
8ac301f5f1 Merge "Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855" into stage-aosp-master 2020-12-03 03:19:13 +00:00
Ye Jiao
bf8f310071 DO NOT MERGE: Tune up kMaxStopCompleteWaitMs to fix NE
On a low-end device which does not support STA-SAP concurrency, if STA
is currently enabled and user/app tries to enable SAP, then Wi-Fi needs
to reconfigure and stop Wi-Fi HAL first. Among other stopping actions,
HAL needs to set global_handle_ to nullptr and send "Exit" to
wifi_event_loop then waits no more than kMaxStopCompleteWaitMs. If the
wait times out, then reconfiguration fails and causes Wi-Fi controller
returns to STA mode and creates new STA iface indirectly. In this
process, HAL needs to access global_handle_, but since it was cleared,
we can only get a Native Exception.

Because there is no proper error recovery for UNKNOWN errors, I suggest
to simply set kMaxStopCompleteWaitMs to a higher value to circumvent
this timing issue.

Bug: 173760638
Change-Id: I1b5a0a7a554409704c017ffaf52a767b9424c61e
2020-12-02 17:44:49 +00:00
Xin Li
c026d3a0b6 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: If5afd00334e8b09250df1ae97dec9285e39ad930
Change-Id: Ic66bb1389f1bbecfdaa641e1fcdbf79044f55d23
2020-12-02 00:32:27 -08:00
Jerry Wong
a0e13d6060 supplicant(vts): Skip p2p tests on non-p2p devices as intended
The logic to skip the p2p tests on non-p2p devices appear to have
inadventently flipped since d6436731.

Bug: 173134041
Test: atest VtsHalWifiSupplicantV1_1TargetTest
Change-Id: I7945950e8483241e47e308a2c5ad97571d74a769
2020-11-12 15:01:24 -08:00
Alessandro Astone
40e57ca717 wifi: Prevent returning an invalid factory MAC address
This is the same error checking already done in wifi_ap_iface.cpp

Change-Id: I2183e6ec13a15141dc638dc8d68fda6b3afa5aa4
2020-11-11 18:41:35 +01:00
Xin Li
50393137ed Merge ab/6749736 in stage.
Bug: 167233921
Merged-In: I6756cad681e4cfa01868450214da0d7b2d5261e4
Change-Id: Ia529ecf4f48248d5af63673f359916486f71bc35
2020-10-08 23:22:52 -07: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
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
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
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
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
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
Xin Li
3211c41054 Merge RP1A.200720.011
Bug: 167588565
Merged-In: If6721904a50f164626d30460a2b13c59ffd2814f
Change-Id: I254b5fef3368a656c3f67cdab85623deb5399c88
2020-09-02 11:55:34 -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
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
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
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
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
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
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
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