Commit graph

1007 commits

Author SHA1 Message Date
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
Oscar Shu
cb07b80c3c Merge "Ringbuffer stops logging after wifi toggle" into rvc-qpr-dev 2020-08-04 20:49:52 +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
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
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
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
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
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
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
Nate Jiang
400d9fa0a9 [VTS] Use primary channel to enable RTT responder
Bug: 160109667
Test: atest VtsHalWifiRttV1_4TargetTest
Change-Id: I9bbe5cdaf9656503acb87e2888856e0f199dc45f
2020-07-08 10:56:26 -07:00
Jooyung Han
d610435ac4 update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-07 16:22:36 +09:00
Jooyung Han
d18cba85fe update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-02 12:26:37 +09:00
Nate Jiang
63f34eda73 Fix NAN validate interface existence
Bug: 156879576
Test: atest android.hardware.wifi@1.0-service-tests

Change-Id: I8505e343f5b2ea5ea522cbb2ea344ff8914aea3d
2020-05-21 00:01:51 -07:00
TreeHugger Robot
32c900b64e Merge "Disable framework for test VtsHalWifiSupplicantV1_3TargetTest" into rvc-dev 2020-05-20 05:02:05 +00:00
TreeHugger Robot
ecec92b7fd Merge "IWifi: Validate dedicated NAN discovery interface." into rvc-dev 2020-05-20 03:14:36 +00:00
Nate Jiang
8c0fec12ec Skip test when NAN or RTT feature not supported
Bug: 155372761
Test: atest VtsHalWifiApV1_4TargetTest, VtsHalWifiNanV1_4TargetTest, VtsHalWifiRttV1_4TargetTest
SingleDeviceTest
Merged-In: I04bfffe9dc587e3f7209601c3712422b6e2d165c
Change-Id: I04bfffe9dc587e3f7209601c3712422b6e2d165c
2020-05-19 20:29:07 +00:00
Nate Jiang
4ad7daa925 IWifi: Validate dedicated NAN discovery interface.
Bug: 156879576
Test: atest android.hardware.wifi@1.0-service-tests
Change-Id: I9150b683ceb5631139eab6e0c6c8edb4209c9493
2020-05-19 20:20:10 +00:00
Dan Shi
c09c353e52 Disable framework for test VtsHalWifiSupplicantV1_3TargetTest
Bug: 156268286
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I8208cbf6ca26655615ecb6c0a39c50e6b62e8f6e
2020-05-19 13:05:09 -07:00
Nate Jiang
7f304d738b Merge "[VTS] Seperate Nan and Rtt from Sap test" into rvc-dev 2020-05-13 20:18:00 +00:00
TreeHugger Robot
caaa36bce0 Merge "wifi: check device capaiblities before running vts tests" into rvc-dev 2020-05-13 07:02:05 +00:00
Nate Jiang
9ecaa48a02 [VTS] Seperate Nan and Rtt from Sap test
Bug: 155372761
Test: atest VtsHalWifiApV1_4TargetTest, VtsHalWifiNanV1_4TargetTest, VtsHalWifiRttV1_4TargetTest
Change-Id: I0af11c01e9d87c0837f45b733010c96b5ba94f04
2020-05-12 23:53:58 -07:00
Jimmy Chen
8587b8870e wifi: check device capaiblities before running vts tests
Wi-Fi Direct might not be supported, the test runner should
check it first before running tests.

Bug: 155372909
Test: * atest VtsHalWifiSupplicantP2pV1_2TargetTest
      * remove Wi-Fi Direct support in device.mk
        atest VtsHalWifiSupplicantP2pV1_2TargetTest
Change-Id: Ie32b5fb831eebba818b83a9b9855e8a66b929e3d
2020-05-13 10:49:47 +08:00
kumachang
d6bd3cf761 wifi: skip nan vts tests if nan is not supported
Bug: 155372909
Test: atest VtsHalWifiNanV1_0TargetTest
Change-Id: I20c90509395788a72999cd6029573502004d1815
2020-05-12 19:46:49 +08:00
Jimmy Chen
9003d20916 vts: test setting WAPI psk hex
Bug: 139257562
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Id7b181f7d9280926c441ac6fbf7420f17a857c02
2020-05-08 02:56:46 +08:00
Jimmy Chen
503f786f11 Merge "wifi: stop running supplicant before tests" into rvc-dev 2020-05-02 04:41:28 +00:00
Ahmed ElArabawy
c4c9da2f0b Merge "Wifi: Optionally avoid interface down/up when doing setMacAddress" into rvc-dev 2020-05-01 01:41:39 +00:00
Ahmed ElArabawy
3ee519be3a Wifi: Optionally avoid interface down/up when doing setMacAddress
Some vendors implementation will reset wifi chip when doing interface
down.
Accordingly, We need to avoid the interface down/up when doing
setMacAddress to avoid loss of sync between framework and firmware.

This commit uses a BOARD_WIFI_AVOID_IFACE_RESET_MAC_CHANGE macro to
check if it is needed to avoid interface down/up at setMacAddress.

Bug: 153771961
Test: VTS Test
Test: atest VtsHalWifiV1_2TargetTest
Change-Id: I971764f1c272ebfd245959974fa0d1b10ba7c39b
2020-04-30 15:07:58 -07:00
Roshan Pius
78cb59913a Allow tethering name config
Test: manual

Bug: 155110247
Test: Compiles
Test: Verified that SAP is working

Change-Id: I6f0fd5b891dd6e6c2f0ceab05f6830b56f6474b1
2020-04-30 21:43:29 +00:00
Jimmy Chen
c633302a86 wifi: stop running supplicant before tests
The first test would always fail because it tries to
use system-initiating supplicant process.

Bug: 155257934
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I79b69ec04faab5e8f2af0e5e3a9b1cc4c3aa0c36
2020-04-30 15:37:29 +08:00
Jimmy Chen
c578a91356 wifi: skip tests if RTT is not supported
Bug: 153418156
Test: atest VtsHalWifiApV1_4TargetTest

Change-Id: I2aa58c501f44a9b32c1a7ebf48aa8fcbfb08b046
2020-04-21 07:54:11 +00:00
Roshan Pius
d234d8b1d6 Merge "wifi_sta_iface: Deprecate setScanningMacOui" into rvc-dev 2020-04-17 06:12:32 +00:00
Roshan Pius
322677a172 wifi_sta_iface: Deprecate setScanningMacOui
Bug: 154267383
Test: Device boots up and connects to wifi networks.
Change-Id: I70206e2c25d90ebd5ac35938af9ca2ebffefa318
2020-04-16 16:53:02 -07:00
Veerendranath Jakkam
25b3a6f0a4 Synchronize on_ring_buffer_data_callback and writeRingbufferFiles
on_ring_buffer_data_callback callback is invoked on getting the
corresponding driver/firmware ringbuffer logs. This callback further
stores the ringbuffer data locally in cur_buffer. While the data is
getting updated through this callback, writeRingbufferFilesInternal
can get triggered from a different context which accesses the same buffer
-cur_buffer.
Synchronization is missing between these two contexts while accessing the
buffer and this commit attempts the same.

Bug: 153970986
Test: Manual - collect the bugreport and check the ring buffer logs.
Change-Id: Id99a517f4d72872b84b48c3df75dd29743f3e9b2
2020-04-15 21:53:48 -07:00