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)
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)
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
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
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
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
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)
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)
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
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
The first test would always fail because it tries to
use system-initiating supplicant process.
Bug: 155257934
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: I79b69ec04faab5e8f2af0e5e3a9b1cc4c3aa0c36
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