Merge changes from topic "presubmit-am-449268fd2d8f40eb8f329fe53374868e"

* changes:
  [automerge] Change the expected AP iface index when dual STAs supported. 2p: 89b3de718d 2p: 6ec42b402c
  [automerge] Change the expected AP iface index when dual STAs supported. 2p: 89b3de718d
  Change the expected AP iface index when dual STAs supported.
This commit is contained in:
TreeHugger Robot 2022-02-25 04:15:47 +00:00 committed by Android (Google) Code Review
commit 55e97e5bef

View file

@ -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