Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ec42b40 authored by Chris Ye's avatar Chris Ye Committed by Presubmit Automerger Backend
Browse files

[automerge] Change the expected AP iface index when dual STAs supported. 2p: 89b3de71

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16993920

Bug: 220338166
Change-Id: Id54ccdd7f6fea5c849622cdf73439b298fe35fa8
parents 374c80a6 89b3de71
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -846,13 +846,15 @@ TEST_F(WifiChip_MultiIfaceTest, CreateStaWithCustomAltNames) {
}

TEST_F(WifiChip_MultiIfaceTest, CreateApStartsWithIdx1) {
    // WifiChip_MultiIfaceTest iface combo: STAx3 + APx1
    // When the HAL support dual STAs, AP should start with idx 2.
    findModeAndConfigureForIfaceType(IfaceConcurrencyType::STA);
    // First AP will be slotted to wlan1.
    ASSERT_EQ(createIface(IfaceType::AP), "wlan1");
    ASSERT_EQ(createIface(IfaceType::AP), "wlan2");
    // First STA will be slotted to wlan0.
    ASSERT_EQ(createIface(IfaceType::STA), "wlan0");
    // All further STA will be slotted to the remaining free indices.
    ASSERT_EQ(createIface(IfaceType::STA), "wlan2");
    ASSERT_EQ(createIface(IfaceType::STA), "wlan1");
    ASSERT_EQ(createIface(IfaceType::STA), "wlan3");
}
}  // namespace implementation