src/connectivity/wlan/drivers/third_party/broadcom/brcmfmac/sim/test/mfg_test.cc
// Check to make sure only one IF can be active at anytime with MFG FW.
Check to make sure only one IF can be active at anytime with MFG FW.
Check to make sure only one IF can be active at anytime with MFG FW .
TEST_F(MfgTest, BasicTest) {
  Init();
  ASSERT_EQ(StartInterface(WLAN_INFO_MAC_ROLE_CLIENT, &client_ifc_), ZX_OK);
  ASSERT_NE(StartInterface(WLAN_INFO_MAC_ROLE_AP, &softap_ifc_, std::nullopt, kDefaultBssid),
            ZX_OK);
  DeleteInterface(client_ifc_);
  EXPECT_EQ(DeviceCount(), 1U);
  ASSERT_EQ(StartInterface(WLAN_INFO_MAC_ROLE_AP, &softap_ifc_, std::nullopt, kDefaultBssid),
            ZX_OK);
  ASSERT_NE(StartInterface(WLAN_INFO_MAC_ROLE_CLIENT, &client_ifc_), ZX_OK);
  DeleteInterface(softap_ifc_);
}
TEST_F ( MfgTest , BasicTest ) { Init ( ) ; ASSERT_EQ ( StartInterface ( WLAN_INFO_MAC_ROLE_CLIENT , & client_ifc_ ) , ZX_OK ) ; ASSERT_NE ( StartInterface ( WLAN_INFO_MAC_ROLE_AP , & softap_ifc_ , std :: nullopt , kDefaultBssid ) , ZX_OK ) ; DeleteInterface ( client_ifc_ ) ; EXPECT_EQ ( DeviceCount ( ) , 1U ) ; ASSERT_EQ ( StartInterface ( WLAN_INFO_MAC_ROLE_AP , & softap_ifc_ , std :: nullopt , kDefaultBssid ) , ZX_OK ) ; ASSERT_NE ( StartInterface ( WLAN_INFO_MAC_ROLE_CLIENT , & client_ifc_ ) , ZX_OK ) ; DeleteInterface ( softap_ifc_ ) ; }
Check to make sure only one IF can be active at anytime with MFG FW.
Check to make sure only one IF can be active at anytime with MFG FW .
// SoftAP If creation should fail as Client IF has already been created. // Now delete the Client IF and SoftAP creation should pass // Now that SoftAP IF is created, Client IF creation should fail