Skip to content

Commit

Permalink
Remove DeviceNetworkProvisioningDelegate interface to force vendor to…
Browse files Browse the repository at this point in the history
… use NetworkCommissioning interface… (project-chip#23391)

* Remove intermediate CRTP layer from DeviceNetworkProvisioningDelegate

* Remove DeviceNetworkProvisioningDelegate interface
  • Loading branch information
yufengwangca authored and pull[bot] committed Mar 22, 2023
1 parent 44e677e commit c9f35b4
Show file tree
Hide file tree
Showing 68 changed files with 3 additions and 2,165 deletions.
57 changes: 0 additions & 57 deletions src/include/platform/internal/DeviceNetworkProvisioning.h

This file was deleted.

This file was deleted.

12 changes: 3 additions & 9 deletions src/lib/shell/commands/WiFi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@
#include <platform/CHIPDeviceLayer.h>
#include <platform/ConnectivityManager.h>

// Include DeviceNetworkProvisioningDelegateImpl for WiFi provisioning.
// TODO: Enable wifi network should be done by ConnectivityManager. (Or other platform neutral interfaces)
#if defined(CHIP_DEVICE_LAYER_TARGET)
#define DEVICENETWORKPROVISIONING_HEADER <platform/CHIP_DEVICE_LAYER_TARGET/DeviceNetworkProvisioningDelegateImpl.h>
#include DEVICENETWORKPROVISIONING_HEADER
#endif

using chip::DeviceLayer::ConnectivityManager;
using chip::DeviceLayer::ConnectivityMgr;

Expand Down Expand Up @@ -115,8 +108,9 @@ static CHIP_ERROR WiFiConnectHandler(int argc, char ** argv)
{
return CHIP_ERROR_INVALID_ARGUMENT;
}
DeviceLayer::DeviceNetworkProvisioningDelegateImpl deviceDelegate;
return deviceDelegate.ProvisionWiFi(argv[0], argv[1]);

// TODO:Provision WiFi using WirelessDriver
return CHIP_ERROR_NOT_IMPLEMENTED;
}

static CHIP_ERROR WiFiDispatch(int argc, char ** argv)
Expand Down
2 changes: 0 additions & 2 deletions src/platform/Ameba/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ static_library("Ameba") {
"ConfigurationManagerImpl.h",
"ConnectivityManagerImpl.cpp",
"ConnectivityManagerImpl.h",
"DeviceNetworkProvisioningDelegateImpl.cpp",
"DeviceNetworkProvisioningDelegateImpl.h",
"DiagnosticDataProviderImpl.cpp",
"DiagnosticDataProviderImpl.h",
"FactoryDataProvider.cpp",
Expand Down
43 changes: 0 additions & 43 deletions src/platform/Ameba/DeviceNetworkProvisioningDelegateImpl.cpp

This file was deleted.

44 changes: 0 additions & 44 deletions src/platform/Ameba/DeviceNetworkProvisioningDelegateImpl.h

This file was deleted.

1 change: 0 additions & 1 deletion src/platform/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ if (chip_device_platform != "none") {
"../include/platform/internal/BLEManager.h",
"../include/platform/internal/CHIPDeviceLayerInternal.h",
"../include/platform/internal/DeviceNetworkInfo.h",
"../include/platform/internal/DeviceNetworkProvisioning.h",
"../include/platform/internal/EventLogging.h",
"../include/platform/internal/GenericConfigurationManagerImpl.h",
"../include/platform/internal/GenericConfigurationManagerImpl.ipp",
Expand Down
43 changes: 0 additions & 43 deletions src/platform/Darwin/DeviceNetworkProvisioningDelegateImpl.h

This file was deleted.

2 changes: 0 additions & 2 deletions src/platform/EFR32/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ static_library("EFR32") {
"ConfigurationManagerImpl.cpp",
"ConfigurationManagerImpl.h",
"ConnectivityManagerImpl.h",
"DeviceNetworkProvisioningDelegateImpl.cpp",
"DeviceNetworkProvisioningDelegateImpl.h",
"DiagnosticDataProviderImpl.cpp",
"DiagnosticDataProviderImpl.h",
"EFR32Config.cpp",
Expand Down
64 changes: 0 additions & 64 deletions src/platform/EFR32/DeviceNetworkProvisioningDelegateImpl.cpp

This file was deleted.

Loading

0 comments on commit c9f35b4

Please sign in to comment.