diff options
| author | lesl <lesl@google.com> | 2019-04-17 16:43:36 +0800 |
|---|---|---|
| committer | lesl <lesl@google.com> | 2019-04-17 16:44:02 +0800 |
| commit | 72132c4feb7c2bb0f20d91445856af04dce1e7f7 (patch) | |
| tree | 4b07c39f3ccf3fae634017209aa1c72495ac138b /wifi | |
| parent | b1a144041e19765e6e1b1321a87a92dda21cff9c (diff) | |
| download | android_hardware_interfaces-72132c4feb7c2bb0f20d91445856af04dce1e7f7.tar.gz android_hardware_interfaces-72132c4feb7c2bb0f20d91445856af04dce1e7f7.tar.bz2 android_hardware_interfaces-72132c4feb7c2bb0f20d91445856af04dce1e7f7.zip | |
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
Diffstat (limited to 'wifi')
| -rw-r--r-- | wifi/supplicant/1.2/vts/functional/supplicant_p2p_iface_hidl_test.cpp | 6 |
1 files 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 924904548..36bde161c 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<uint8_t> ssid(kTestSsid, kTestSsid + sizeof(kTestSsid)); std::string passphrase = kTestPassphrase; - int freq = 5; + int freq = 0; std::array<uint8_t, 6> 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<uint8_t> ssid; std::string passphrase = kTestPassphrase; - int freq = 5; + int freq = 0; std::array<uint8_t, 6> 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<uint8_t> ssid(kTestSsid, kTestSsid + sizeof(kTestSsid)); std::string passphrase = "1234"; - int freq = 5; + int freq = 0; std::array<uint8_t, 6> zero_mac_addr; memcpy(zero_mac_addr.data(), kTestZeroMacAddr, zero_mac_addr.size()); bool persistent = false; |
