mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 15:58:43 +00:00
Merge "VTS: fix test LinkLayerStatsCollection"
This commit is contained in:
@@ -45,6 +45,8 @@ cc_test {
|
||||
static_libs: [
|
||||
"VtsHalWifiV1_0TargetTestUtil",
|
||||
"android.hardware.wifi@1.0",
|
||||
"android.hardware.wifi@1.2",
|
||||
"android.hardware.wifi@1.3",
|
||||
],
|
||||
}
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <android-base/logging.h>
|
||||
|
||||
#include <android/hardware/wifi/1.0/IWifiStaIface.h>
|
||||
#include <android/hardware/wifi/1.3/IWifiStaIface.h>
|
||||
|
||||
#include <VtsHalHidlTargetTestBase.h>
|
||||
|
||||
@@ -143,6 +144,14 @@ TEST_F(WifiStaIfaceHidlTest, LinkLayerStatsCollection) {
|
||||
return;
|
||||
}
|
||||
|
||||
sp<::android::hardware::wifi::V1_3::IWifiStaIface> iface_converted =
|
||||
::android::hardware::wifi::V1_3::IWifiStaIface::castFrom(
|
||||
wifi_sta_iface_);
|
||||
if (iface_converted != nullptr) {
|
||||
// Skip this test since this API is deprecated in this newer HAL version
|
||||
return;
|
||||
}
|
||||
|
||||
// Enable link layer stats collection.
|
||||
EXPECT_EQ(WifiStatusCode::SUCCESS,
|
||||
HIDL_INVOKE(wifi_sta_iface_, enableLinkLayerStatsCollection, true)
|
||||
|
||||
Reference in New Issue
Block a user