Skip to content

Commit

Permalink
Remove non-used field from WiFi commissioning driver (#21048)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq authored Jul 21, 2022
1 parent 33aecf8 commit 83deb47
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/include/platform/NetworkCommissioning.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class BaseDriver
public:
/**
* @brief Callback for the network driver pushing the event of network status change to the network commissioning cluster.
* The platforms is explected to push the status from operations such as autonomous connection after loss of connectivity or
* The platforms is expected to push the status from operations such as autonomous connection after loss of connectivity or
* during initial establishment.
*
* This function must be called in a thread-safe manner with CHIP stack.
Expand Down
1 change: 0 additions & 1 deletion src/platform/Ameba/NetworkCommissioningDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ class AmebaWiFiDriver final : public WiFiDriver
bool NetworkMatch(const WiFiNetwork & network, ByteSpan networkId);
CHIP_ERROR StartScanWiFiNetworks(ByteSpan ssid);

WiFiNetworkIterator mWiFiIterator = WiFiNetworkIterator(this);
WiFiNetwork mSavedNetwork;
WiFiNetwork mStagingNetwork;
ScanCallback * mpScanCallback;
Expand Down
5 changes: 2 additions & 3 deletions src/platform/EFR32/NetworkCommissioningWiFiDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,8 @@ class SlWiFiDriver final : public WiFiDriver
bool StartScanWiFiNetworks(ByteSpan ssid);
static void OnScanWiFiNetworkDone(wfx_wifi_scan_result_t * aScanResult);

WiFiNetworkIterator mWiFiIterator = WiFiNetworkIterator(this);
WiFiNetwork mSavedNetwork = {};
WiFiNetwork mStagingNetwork = {};
WiFiNetwork mSavedNetwork = {};
WiFiNetwork mStagingNetwork = {};
ScanCallback * mpScanCallback;
ConnectCallback * mpConnectCallback;
};
Expand Down
1 change: 0 additions & 1 deletion src/platform/ESP32/NetworkCommissioningDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ class ESPWiFiDriver final : public WiFiDriver
bool NetworkMatch(const WiFiNetwork & network, ByteSpan networkId);
CHIP_ERROR StartScanWiFiNetworks(ByteSpan ssid);

WiFiNetworkIterator mWiFiIterator = WiFiNetworkIterator(this);
WiFiNetwork mSavedNetwork;
WiFiNetwork mStagingNetwork;
ScanCallback * mpScanCallback;
Expand Down
3 changes: 1 addition & 2 deletions src/platform/Linux/NetworkCommissioningDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LinuxScanResponseIterator : public Iterator<T>

private:
size_t currentIterating = 0;
// Note: We cannot post a event in ScheduleLambda since std::vector is not trivial copiable.
// Note: We cannot post a event in ScheduleLambda since std::vector is not trivial copyable.
std::vector<T> * mpScanResponse;
};

Expand Down Expand Up @@ -102,7 +102,6 @@ class LinuxWiFiDriver final : public WiFiDriver
private:
bool NetworkMatch(const WiFiNetwork & network, ByteSpan networkId);

WiFiNetworkIterator mWiFiIterator = WiFiNetworkIterator(this);
WiFiNetwork mSavedNetwork;
WiFiNetwork mStagingNetwork;
Optional<Status> mScanStatus;
Expand Down
1 change: 0 additions & 1 deletion src/platform/P6/NetworkCommissioningDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ class P6WiFiDriver final : public WiFiDriver
bool NetworkMatch(const WiFiNetwork & network, ByteSpan networkId);
CHIP_ERROR StartScanWiFiNetworks(ByteSpan ssid);

WiFiNetworkIterator mWiFiIterator = WiFiNetworkIterator(this);
WiFiNetwork mSavedNetwork;
WiFiNetwork mStagingNetwork;
ScanCallback * mpScanCallback;
Expand Down
1 change: 0 additions & 1 deletion src/platform/Tizen/NetworkCommissioningDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ class TizenWiFiDriver final : public WiFiDriver
private:
bool NetworkMatch(const WiFiNetwork & network, ByteSpan networkId);

WiFiNetworkIterator mWiFiIterator = WiFiNetworkIterator(this);
WiFiNetwork mSavedNetwork;
WiFiNetwork mStagingNetwork;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ class BLWiFiDriver final : public WiFiDriver
bool NetworkMatch(const WiFiNetwork & network, ByteSpan networkId);
CHIP_ERROR StartScanWiFiNetworks(ByteSpan ssid);

WiFiNetworkIterator mWiFiIterator = WiFiNetworkIterator(this);
WiFiNetwork mSavedNetwork;
WiFiNetwork mStagingNetwork;
ScanCallback * mpScanCallback;
Expand Down
1 change: 0 additions & 1 deletion src/platform/mbed/NetworkCommissioningDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ class WiFiDriverImpl final : public WiFiDriver

chip::DeviceLayer::Internal::WiFiAuthSecurityType NsapiToNetworkSecurity(nsapi_security_t nsapi_security);

WiFiNetworkIterator mWiFiIterator = WiFiNetworkIterator(this);
WiFiNetwork mSavedNetwork;
WiFiNetwork mStagingNetwork;
ScanCallback * mScanCallback;
Expand Down
3 changes: 1 addition & 2 deletions src/platform/webos/NetworkCommissioningDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LinuxScanResponseIterator : public Iterator<T>

private:
size_t currentIterating = 0;
// Note: We cannot post a event in ScheduleLambda since std::vector is not trivial copiable.
// Note: We cannot post a event in ScheduleLambda since std::vector is not trivial copyable.
std::vector<T> * mpScanResponse;
};

Expand Down Expand Up @@ -102,7 +102,6 @@ class LinuxWiFiDriver final : public WiFiDriver
private:
bool NetworkMatch(const WiFiNetwork & network, ByteSpan networkId);

WiFiNetworkIterator mWiFiIterator = WiFiNetworkIterator(this);
WiFiNetwork mSavedNetwork;
WiFiNetwork mStagingNetwork;
Optional<Status> mScanStatus;
Expand Down

0 comments on commit 83deb47

Please sign in to comment.