diff --git a/tests/unit/TestNetRemoteServiceClient.cxx b/tests/unit/TestNetRemoteServiceClient.cxx index 27c7d348..e8ae049f 100644 --- a/tests/unit/TestNetRemoteServiceClient.cxx +++ b/tests/unit/TestNetRemoteServiceClient.cxx @@ -128,8 +128,10 @@ TEST_CASE("WifiAccessPointSetPhyType API", "[basic][rpc][client][remote]") constexpr auto InterfaceName{ "TestWifiAccessPointSetPhyType" }; auto apManagerTest = std::make_shared(); - auto apFactoryTest = std::make_unique(); - auto apTest = apFactoryTest->Create(InterfaceName); + Ieee80211AccessPointCapabilities apCapabilities{ + .Protocols{ Ieee80211Protocol::B, Ieee80211Protocol::G, Ieee80211Protocol::N, Ieee80211Protocol::A, Ieee80211Protocol::AC, Ieee80211Protocol::AD, Ieee80211Protocol::AX, Ieee80211Protocol::AX } + }; + auto apTest = std::make_shared(InterfaceName, std::move(apCapabilities)); apManagerTest->AddAccessPoint(apTest); NetRemoteServerConfiguration Configuration{