From 72132c4feb7c2bb0f20d91445856af04dce1e7f7 Mon Sep 17 00:00:00 2001 From: lesl Date: Wed, 17 Apr 2019 16:43:36 +0800 Subject: [PATCH] p2p: fix vts fail due to 5g go init fail with 00 country code The force 5GHz Go will cause fail when country code is 00 or chip doesn't support 5GHz. Change test parameter to force 0 which means driver decide GO channel. Bug: 130208180 Test: vts-tradefed run commandAndExit vts-hal --skip-all-system-status-check --primary-abi-only --skip-preconditions --module VtsHalWifiSupplicantP2pV1_2Target -l INFO Change-Id: I0d2a8fcba4ece616ddeccbae36146329e9043157 --- .../1.2/vts/functional/supplicant_p2p_iface_hidl_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wifi/supplicant/1.2/vts/functional/supplicant_p2p_iface_hidl_test.cpp b/wifi/supplicant/1.2/vts/functional/supplicant_p2p_iface_hidl_test.cpp index 9249045483..36bde161c1 100644 --- a/wifi/supplicant/1.2/vts/functional/supplicant_p2p_iface_hidl_test.cpp +++ b/wifi/supplicant/1.2/vts/functional/supplicant_p2p_iface_hidl_test.cpp @@ -57,7 +57,7 @@ class SupplicantP2pIfaceHidlTest : public ::testing::VtsHalHidlTargetTestBase { TEST_F(SupplicantP2pIfaceHidlTest, AddGroup_1_2_Success) { std::vector ssid(kTestSsid, kTestSsid + sizeof(kTestSsid)); std::string passphrase = kTestPassphrase; - int freq = 5; + int freq = 0; std::array zero_mac_addr; memcpy(zero_mac_addr.data(), kTestZeroMacAddr, zero_mac_addr.size()); bool persistent = false; @@ -76,7 +76,7 @@ TEST_F(SupplicantP2pIfaceHidlTest, AddGroup_1_2_Success) { TEST_F(SupplicantP2pIfaceHidlTest, AddGroup_1_2_FailureInvalidSsid) { std::vector ssid; std::string passphrase = kTestPassphrase; - int freq = 5; + int freq = 0; std::array zero_mac_addr; memcpy(zero_mac_addr.data(), kTestZeroMacAddr, zero_mac_addr.size()); bool persistent = false; @@ -95,7 +95,7 @@ TEST_F(SupplicantP2pIfaceHidlTest, AddGroup_1_2_FailureInvalidSsid) { TEST_F(SupplicantP2pIfaceHidlTest, AddGroup_1_2_FailureInvalidPassphrase) { std::vector ssid(kTestSsid, kTestSsid + sizeof(kTestSsid)); std::string passphrase = "1234"; - int freq = 5; + int freq = 0; std::array zero_mac_addr; memcpy(zero_mac_addr.data(), kTestZeroMacAddr, zero_mac_addr.size()); bool persistent = false;