src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/sim/test/dynamic_if_test.cc
// This test case verifies that starting an AP iface using the same MAC address as the existing
// client iface will return an error.
This test case verifies that starting an AP iface using the same MAC address as the existing
client iface will return an error.
This test case verifies that starting an AP iface using the same MAC address as the existing client iface will return an error .
TEST_F(DynamicIfTest, CreateAPwithSameMacAsClient) {
  Init();
  ASSERT_EQ(StartInterface(WLAN_INFO_MAC_ROLE_CLIENT, &client_ifc_), ZX_OK);
  common::MacAddr client_mac;
  client_ifc_.GetMacAddr(&client_mac);
  EXPECT_EQ(StartInterface(WLAN_INFO_MAC_ROLE_AP, &softap_ifc_, std::nullopt, client_mac),
            ZX_ERR_ALREADY_EXISTS);
  EXPECT_EQ(DeviceCount(), static_cast<size_t>(2));
  DeleteInterface(client_ifc_);
  EXPECT_EQ(DeviceCount(), static_cast<size_t>(1));
}
TEST_F ( DynamicIfTest , CreateAPwithSameMacAsClient ) { Init ( ) ; ASSERT_EQ ( StartInterface ( WLAN_INFO_MAC_ROLE_CLIENT , & client_ifc_ ) , ZX_OK ) ; common :: MacAddr client_mac ; client_ifc_ . GetMacAddr ( & client_mac ) ; EXPECT_EQ ( StartInterface ( WLAN_INFO_MAC_ROLE_AP , & softap_ifc_ , std :: nullopt , client_mac ) , ZX_ERR_ALREADY_EXISTS ) ; EXPECT_EQ ( DeviceCount ( ) , static_cast < size_t > ( 2 ) ) ; DeleteInterface ( client_ifc_ ) ; EXPECT_EQ ( DeviceCount ( ) , static_cast < size_t > ( 1 ) ) ; }
This test case verifies that starting an AP iface using the same MAC address as the existing
client iface will return an error.
This test case verifies that starting an AP iface using the same MAC address as the existing client iface will return an error .
// Create AP iface with the same mac addr.