diff options
| author | Etan Cohen <etancohen@google.com> | 2018-10-30 15:05:19 -0700 |
|---|---|---|
| committer | Etan Cohen <etancohen@google.com> | 2018-10-30 15:05:19 -0700 |
| commit | b7df5e9c361d46280bcbc1dd7ffe70afd39b1c02 (patch) | |
| tree | 9c7bcaf8134c353519db1cfdc27ff28cbd0cbb5b /wifi/1.0/vts | |
| parent | 76a428e98526a7588f7bc6474ddd0ebfde7c4436 (diff) | |
| download | android_hardware_interfaces-b7df5e9c361d46280bcbc1dd7ffe70afd39b1c02.tar.gz android_hardware_interfaces-b7df5e9c361d46280bcbc1dd7ffe70afd39b1c02.tar.bz2 android_hardware_interfaces-b7df5e9c361d46280bcbc1dd7ffe70afd39b1c02.zip | |
[VTS][RTT] Fix CreateRtt test case: use STA instead of AP
The CreateRtt test case verifies that an RTT controller can be
created (once at least one other interface is created - an AP
in the original test case).
However, recent code change clarified the actual behavior which ties
the RTT controller to the existence (real or potential) of a STA
interface (not an AP interface). This caused test failures with
the original AP mechanism in non-DBS mode (in DBS mode an AP+STA
could exist and so the test passes).
Fix the test by using a STA as the control.
Bug: 118439379
Test: vts-tradefed run commandAndExit vts --module WifiChipHidlTest on
both DBS and non-DBG devices.
Change-Id: I5a1bfc9a3b54c480ba7a514f90bc48f1fbe7af7d
Diffstat (limited to 'wifi/1.0/vts')
| -rw-r--r-- | wifi/1.0/vts/functional/wifi_chip_hidl_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wifi/1.0/vts/functional/wifi_chip_hidl_test.cpp b/wifi/1.0/vts/functional/wifi_chip_hidl_test.cpp index d16f1e777..a3fdf2725 100644 --- a/wifi/1.0/vts/functional/wifi_chip_hidl_test.cpp +++ b/wifi/1.0/vts/functional/wifi_chip_hidl_test.cpp @@ -735,10 +735,10 @@ TEST_F(WifiChipHidlTest, RemoveStaIface) { * CreateRttController */ TEST_F(WifiChipHidlTest, CreateRttController) { - configureChipForIfaceType(IfaceType::AP, true); + configureChipForIfaceType(IfaceType::STA, true); - sp<IWifiApIface> iface; - EXPECT_EQ(WifiStatusCode::SUCCESS, createApIface(&iface)); + sp<IWifiStaIface> iface; + EXPECT_EQ(WifiStatusCode::SUCCESS, createStaIface(&iface)); EXPECT_NE(nullptr, iface.get()); const auto& status_and_rtt_controller = |
