Skip to content

Commit 438e050

Browse files
andy31415andreilitvinrestyled-commits
authored andcommitted
Fix typo: diagostics - diagNostics (project-chip#37689)
* Fix typo: diagostics - diagNostics * Restyled by clang-format * Fix more typos * Restyle * Restyled by clang-format --------- Co-authored-by: Andrei Litvin <andreilitvin@google.com> Co-authored-by: Restyled.io <commits@restyled.io>
1 parent 6d66abc commit 438e050

File tree

5 files changed

+58
-57
lines changed

5 files changed

+58
-57
lines changed

src/app/clusters/ethernet-network-diagnostics-server/ethernet-network-diagnostics-server.cpp

+9-9
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ using chip::DeviceLayer::DiagnosticDataProvider;
3636

3737
namespace {
3838

39-
class EthernetDiagosticsAttrAccess : public AttributeAccessInterface
39+
class EthernetDiagnosticsAttrAccess : public AttributeAccessInterface
4040
{
4141
public:
4242
// Register for the EthernetNetworkDiagnostics cluster on all endpoints.
43-
EthernetDiagosticsAttrAccess() : AttributeAccessInterface(Optional<EndpointId>::Missing(), EthernetNetworkDiagnostics::Id) {}
43+
EthernetDiagnosticsAttrAccess() : AttributeAccessInterface(Optional<EndpointId>::Missing(), EthernetNetworkDiagnostics::Id) {}
4444

4545
CHIP_ERROR Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder) override;
4646

@@ -54,8 +54,8 @@ class EthernetDiagosticsAttrAccess : public AttributeAccessInterface
5454
};
5555

5656
template <typename T>
57-
CHIP_ERROR EthernetDiagosticsAttrAccess::ReadIfSupported(CHIP_ERROR (DiagnosticDataProvider::*getter)(T &),
58-
AttributeValueEncoder & aEncoder)
57+
CHIP_ERROR EthernetDiagnosticsAttrAccess::ReadIfSupported(CHIP_ERROR (DiagnosticDataProvider::*getter)(T &),
58+
AttributeValueEncoder & aEncoder)
5959
{
6060
T data;
6161
CHIP_ERROR err = (DeviceLayer::GetDiagnosticDataProvider().*getter)(data);
@@ -71,7 +71,7 @@ CHIP_ERROR EthernetDiagosticsAttrAccess::ReadIfSupported(CHIP_ERROR (DiagnosticD
7171
return aEncoder.Encode(data);
7272
}
7373

74-
CHIP_ERROR EthernetDiagosticsAttrAccess::ReadPHYRate(AttributeValueEncoder & aEncoder)
74+
CHIP_ERROR EthernetDiagnosticsAttrAccess::ReadPHYRate(AttributeValueEncoder & aEncoder)
7575
{
7676
Attributes::PHYRate::TypeInfo::Type pHYRate;
7777
auto value = app::Clusters::EthernetNetworkDiagnostics::PHYRateEnum::kRate10M;
@@ -90,7 +90,7 @@ CHIP_ERROR EthernetDiagosticsAttrAccess::ReadPHYRate(AttributeValueEncoder & aEn
9090
return aEncoder.Encode(pHYRate);
9191
}
9292

93-
CHIP_ERROR EthernetDiagosticsAttrAccess::ReadFullDuplex(AttributeValueEncoder & aEncoder)
93+
CHIP_ERROR EthernetDiagnosticsAttrAccess::ReadFullDuplex(AttributeValueEncoder & aEncoder)
9494
{
9595
Attributes::FullDuplex::TypeInfo::Type fullDuplex;
9696
bool value = false;
@@ -108,7 +108,7 @@ CHIP_ERROR EthernetDiagosticsAttrAccess::ReadFullDuplex(AttributeValueEncoder &
108108
return aEncoder.Encode(fullDuplex);
109109
}
110110

111-
CHIP_ERROR EthernetDiagosticsAttrAccess::ReadCarrierDetect(AttributeValueEncoder & aEncoder)
111+
CHIP_ERROR EthernetDiagnosticsAttrAccess::ReadCarrierDetect(AttributeValueEncoder & aEncoder)
112112
{
113113
Attributes::CarrierDetect::TypeInfo::Type carrierDetect;
114114
bool value = false;
@@ -127,9 +127,9 @@ CHIP_ERROR EthernetDiagosticsAttrAccess::ReadCarrierDetect(AttributeValueEncoder
127127
return aEncoder.Encode(carrierDetect);
128128
}
129129

130-
EthernetDiagosticsAttrAccess gAttrAccess;
130+
EthernetDiagnosticsAttrAccess gAttrAccess;
131131

132-
CHIP_ERROR EthernetDiagosticsAttrAccess::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
132+
CHIP_ERROR EthernetDiagnosticsAttrAccess::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
133133
{
134134
if (aPath.mClusterId != EthernetNetworkDiagnostics::Id)
135135
{

src/app/clusters/general-diagnostics-server/general-diagnostics-server.cpp

+22-22
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
#include <app/util/config.h>
2424

25-
#include "app/server/Server.h"
2625
#include <app-common/zap-generated/attributes/Accessors.h>
2726
#include <app-common/zap-generated/cluster-objects.h>
2827
#include <app-common/zap-generated/ids/Attributes.h>
@@ -34,6 +33,7 @@
3433
#include <app/CommandHandlerInterfaceRegistry.h>
3534
#include <app/EventLogging.h>
3635
#include <app/reporting/reporting.h>
36+
#include <app/server/Server.h>
3737
#include <app/util/attribute-storage.h>
3838
#include <lib/support/ScopedBuffer.h>
3939
#include <platform/ConnectivityManager.h>
@@ -112,13 +112,13 @@ TestEventTriggerDelegate * GetTriggerDelegateOnMatchingKey(ByteSpan enableKey)
112112
return triggerDelegate;
113113
}
114114

115-
class GeneralDiagosticsGlobalInstance : public AttributeAccessInterface,
116-
public CommandHandlerInterface,
117-
public DeviceLayer::ConnectivityManagerDelegate
115+
class GeneralDiagnosticsGlobalInstance : public AttributeAccessInterface,
116+
public CommandHandlerInterface,
117+
public DeviceLayer::ConnectivityManagerDelegate
118118
{
119119
public:
120120
// Register for the GeneralDiagnostics cluster on all endpoints.
121-
GeneralDiagosticsGlobalInstance() :
121+
GeneralDiagnosticsGlobalInstance() :
122122
AttributeAccessInterface(Optional<EndpointId>::Missing(), GeneralDiagnostics::Id),
123123
CommandHandlerInterface(Optional<EndpointId>::Missing(), GeneralDiagnostics::Id)
124124
{}
@@ -151,7 +151,7 @@ class GeneralDiagosticsGlobalInstance : public AttributeAccessInterface,
151151
}
152152
};
153153

154-
CHIP_ERROR GeneralDiagosticsGlobalInstance::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
154+
CHIP_ERROR GeneralDiagnosticsGlobalInstance::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
155155
{
156156
if (aPath.mClusterId != GeneralDiagnostics::Id)
157157
{
@@ -210,7 +210,7 @@ CHIP_ERROR GeneralDiagosticsGlobalInstance::Read(const ConcreteReadAttributePath
210210
return CHIP_NO_ERROR;
211211
}
212212

213-
void GeneralDiagosticsGlobalInstance::InvokeCommand(HandlerContext & handlerContext)
213+
void GeneralDiagnosticsGlobalInstance::InvokeCommand(HandlerContext & handlerContext)
214214
{
215215
switch (handlerContext.mRequestPath.mCommandId)
216216
{
@@ -234,8 +234,8 @@ void GeneralDiagosticsGlobalInstance::InvokeCommand(HandlerContext & handlerCont
234234
}
235235

236236
template <typename T>
237-
CHIP_ERROR GeneralDiagosticsGlobalInstance::ReadIfSupported(CHIP_ERROR (DiagnosticDataProvider::*getter)(T &),
238-
AttributeValueEncoder & aEncoder)
237+
CHIP_ERROR GeneralDiagnosticsGlobalInstance::ReadIfSupported(CHIP_ERROR (DiagnosticDataProvider::*getter)(T &),
238+
AttributeValueEncoder & aEncoder)
239239
{
240240
T data;
241241
CHIP_ERROR err = (GetDiagnosticDataProvider().*getter)(data);
@@ -252,8 +252,8 @@ CHIP_ERROR GeneralDiagosticsGlobalInstance::ReadIfSupported(CHIP_ERROR (Diagnost
252252
}
253253

254254
template <typename T>
255-
CHIP_ERROR GeneralDiagosticsGlobalInstance::ReadListIfSupported(CHIP_ERROR (DiagnosticDataProvider::*getter)(T &),
256-
AttributeValueEncoder & aEncoder)
255+
CHIP_ERROR GeneralDiagnosticsGlobalInstance::ReadListIfSupported(CHIP_ERROR (DiagnosticDataProvider::*getter)(T &),
256+
AttributeValueEncoder & aEncoder)
257257
{
258258
CHIP_ERROR err = CHIP_NO_ERROR;
259259
T faultList;
@@ -277,7 +277,7 @@ CHIP_ERROR GeneralDiagosticsGlobalInstance::ReadListIfSupported(CHIP_ERROR (Diag
277277
return err;
278278
}
279279

280-
CHIP_ERROR GeneralDiagosticsGlobalInstance::ReadNetworkInterfaces(AttributeValueEncoder & aEncoder)
280+
CHIP_ERROR GeneralDiagnosticsGlobalInstance::ReadNetworkInterfaces(AttributeValueEncoder & aEncoder)
281281
{
282282
CHIP_ERROR err = CHIP_NO_ERROR;
283283
DeviceLayer::NetworkInterface * netifs;
@@ -303,8 +303,8 @@ CHIP_ERROR GeneralDiagosticsGlobalInstance::ReadNetworkInterfaces(AttributeValue
303303
return err;
304304
}
305305

306-
void GeneralDiagosticsGlobalInstance::HandleTestEventTrigger(HandlerContext & ctx,
307-
const Commands::TestEventTrigger::DecodableType & commandData)
306+
void GeneralDiagnosticsGlobalInstance::HandleTestEventTrigger(HandlerContext & ctx,
307+
const Commands::TestEventTrigger::DecodableType & commandData)
308308
{
309309
auto * triggerDelegate = GetTriggerDelegateOnMatchingKey(commandData.enableKey);
310310
if (triggerDelegate == nullptr)
@@ -320,8 +320,8 @@ void GeneralDiagosticsGlobalInstance::HandleTestEventTrigger(HandlerContext & ct
320320
(handleEventTriggerResult != CHIP_NO_ERROR) ? Status::InvalidCommand : Status::Success);
321321
}
322322

323-
void GeneralDiagosticsGlobalInstance::HandleTimeSnapshot(HandlerContext & ctx,
324-
const Commands::TimeSnapshot::DecodableType & commandData)
323+
void GeneralDiagnosticsGlobalInstance::HandleTimeSnapshot(HandlerContext & ctx,
324+
const Commands::TimeSnapshot::DecodableType & commandData)
325325
{
326326
ChipLogError(Zcl, "Received TimeSnapshot command!");
327327

@@ -353,8 +353,8 @@ void GeneralDiagosticsGlobalInstance::HandleTimeSnapshot(HandlerContext & ctx,
353353
}
354354

355355
#ifdef GENERAL_DIAGNOSTICS_ENABLE_PAYLOAD_TEST_REQUEST_CMD
356-
void GeneralDiagosticsGlobalInstance::HandlePayloadTestRequest(HandlerContext & ctx,
357-
const Commands::PayloadTestRequest::DecodableType & commandData)
356+
void GeneralDiagnosticsGlobalInstance::HandlePayloadTestRequest(HandlerContext & ctx,
357+
const Commands::PayloadTestRequest::DecodableType & commandData)
358358
{
359359
// Max allowed is 2048.
360360
if (commandData.count > 2048)
@@ -389,7 +389,7 @@ void GeneralDiagosticsGlobalInstance::HandlePayloadTestRequest(HandlerContext &
389389
}
390390
#endif // GENERAL_DIAGNOSTICS_ENABLE_PAYLOAD_TEST_REQUEST_CMD
391391

392-
GeneralDiagosticsGlobalInstance gGeneralDiagosticsInstance;
392+
GeneralDiagnosticsGlobalInstance gGeneralDiagnosticsInstance;
393393

394394
} // anonymous namespace
395395

@@ -517,10 +517,10 @@ void MatterGeneralDiagnosticsPluginServerInitCallback()
517517
{
518518
BootReasonEnum bootReason;
519519

520-
AttributeAccessInterfaceRegistry::Instance().Register(&gGeneralDiagosticsInstance);
521-
CommandHandlerInterfaceRegistry::Instance().RegisterCommandHandler(&gGeneralDiagosticsInstance);
520+
AttributeAccessInterfaceRegistry::Instance().Register(&gGeneralDiagnosticsInstance);
521+
CommandHandlerInterfaceRegistry::Instance().RegisterCommandHandler(&gGeneralDiagnosticsInstance);
522522

523-
ConnectivityMgr().SetDelegate(&gGeneralDiagosticsInstance);
523+
ConnectivityMgr().SetDelegate(&gGeneralDiagnosticsInstance);
524524

525525
if (GetDiagnosticDataProvider().GetBootReason(bootReason) == CHIP_NO_ERROR)
526526
{

src/app/clusters/software-diagnostics-server/software-diagnostics-server.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ using chip::DeviceLayer::GetDiagnosticDataProvider;
4141

4242
namespace {
4343

44-
class SoftwareDiagosticsAttrAccess : public AttributeAccessInterface
44+
class SoftwareDiagnosticsAttrAccess : public AttributeAccessInterface
4545
{
4646
public:
4747
// Register for the SoftwareDiagnostics cluster on all endpoints.
48-
SoftwareDiagosticsAttrAccess() : AttributeAccessInterface(Optional<EndpointId>::Missing(), SoftwareDiagnostics::Id) {}
48+
SoftwareDiagnosticsAttrAccess() : AttributeAccessInterface(Optional<EndpointId>::Missing(), SoftwareDiagnostics::Id) {}
4949

5050
CHIP_ERROR Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder) override;
5151

@@ -65,11 +65,11 @@ class SoftwareDiagnosticsCommandHandler : public CommandHandlerInterface
6565
CHIP_ERROR EnumerateAcceptedCommands(const ConcreteClusterPath & cluster, CommandIdCallback callback, void * context) override;
6666
};
6767

68-
SoftwareDiagosticsAttrAccess gAttrAccess;
68+
SoftwareDiagnosticsAttrAccess gAttrAccess;
6969

7070
SoftwareDiagnosticsCommandHandler gCommandHandler;
7171

72-
CHIP_ERROR SoftwareDiagosticsAttrAccess::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
72+
CHIP_ERROR SoftwareDiagnosticsAttrAccess::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
7373
{
7474
if (aPath.mClusterId != SoftwareDiagnostics::Id)
7575
{
@@ -103,8 +103,8 @@ CHIP_ERROR SoftwareDiagosticsAttrAccess::Read(const ConcreteReadAttributePath &
103103
return CHIP_NO_ERROR;
104104
}
105105

106-
CHIP_ERROR SoftwareDiagosticsAttrAccess::ReadIfSupported(CHIP_ERROR (DiagnosticDataProvider::*getter)(uint64_t &),
107-
AttributeValueEncoder & aEncoder)
106+
CHIP_ERROR SoftwareDiagnosticsAttrAccess::ReadIfSupported(CHIP_ERROR (DiagnosticDataProvider::*getter)(uint64_t &),
107+
AttributeValueEncoder & aEncoder)
108108
{
109109
uint64_t data;
110110
CHIP_ERROR err = (DeviceLayer::GetDiagnosticDataProvider().*getter)(data);
@@ -120,7 +120,7 @@ CHIP_ERROR SoftwareDiagosticsAttrAccess::ReadIfSupported(CHIP_ERROR (DiagnosticD
120120
return aEncoder.Encode(data);
121121
}
122122

123-
CHIP_ERROR SoftwareDiagosticsAttrAccess::ReadThreadMetrics(AttributeValueEncoder & aEncoder)
123+
CHIP_ERROR SoftwareDiagnosticsAttrAccess::ReadThreadMetrics(AttributeValueEncoder & aEncoder)
124124
{
125125
CHIP_ERROR err = CHIP_NO_ERROR;
126126
DeviceLayer::ThreadMetrics * threadMetrics;

src/app/clusters/thread-network-diagnostics-server/thread-network-diagnostics-server.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ using chip::Protocols::InteractionModel::Status;
4545

4646
namespace {
4747

48-
class ThreadDiagosticsAttrAccess : public AttributeAccessInterface
48+
class ThreadDiagnosticsAttrAccess : public AttributeAccessInterface
4949
{
5050
public:
5151
// Register for the ThreadNetworkDiagnostics cluster on all endpoints.
52-
ThreadDiagosticsAttrAccess() : AttributeAccessInterface(Optional<EndpointId>::Missing(), ThreadNetworkDiagnostics::Id) {}
52+
ThreadDiagnosticsAttrAccess() : AttributeAccessInterface(Optional<EndpointId>::Missing(), ThreadNetworkDiagnostics::Id) {}
5353

5454
CHIP_ERROR Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder) override;
5555
};
5656

57-
ThreadDiagosticsAttrAccess gAttrAccess;
57+
ThreadDiagnosticsAttrAccess gAttrAccess;
5858

59-
CHIP_ERROR ThreadDiagosticsAttrAccess::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
59+
CHIP_ERROR ThreadDiagnosticsAttrAccess::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
6060
{
6161
if (aPath.mClusterId != ThreadNetworkDiagnostics::Id)
6262
{

src/app/clusters/wifi-network-diagnostics-server/wifi-network-diagnostics-server.cpp

+16-15
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ using chip::DeviceLayer::GetDiagnosticDataProvider;
4242

4343
namespace {
4444

45-
class WiFiDiagosticsGlobalInstance : public AttributeAccessInterface, public CommandHandlerInterface
45+
class WiFiDiagnosticsGlobalInstance : public AttributeAccessInterface, public CommandHandlerInterface
4646
{
4747
public:
4848
// Register for the WiFiNetworkDiagnostics cluster on all endpoints.
49-
WiFiDiagosticsGlobalInstance(DiagnosticDataProvider & diagnosticProvider) :
49+
WiFiDiagnosticsGlobalInstance(DiagnosticDataProvider & diagnosticProvider) :
5050
AttributeAccessInterface(Optional<EndpointId>::Missing(), WiFiNetworkDiagnostics::Id),
5151
CommandHandlerInterface(Optional<EndpointId>::Missing(), WiFiNetworkDiagnostics::Id),
5252
mDiagnosticProvider(diagnosticProvider)
@@ -74,8 +74,8 @@ class WiFiDiagosticsGlobalInstance : public AttributeAccessInterface, public Com
7474
};
7575

7676
template <typename T, typename Type>
77-
CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadIfSupported(CHIP_ERROR (DiagnosticDataProvider::*getter)(T &), Type & data,
78-
AttributeValueEncoder & aEncoder)
77+
CHIP_ERROR WiFiDiagnosticsGlobalInstance::ReadIfSupported(CHIP_ERROR (DiagnosticDataProvider::*getter)(T &), Type & data,
78+
AttributeValueEncoder & aEncoder)
7979
{
8080
T value;
8181
CHIP_ERROR err = (mDiagnosticProvider.*getter)(value);
@@ -92,7 +92,7 @@ CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadIfSupported(CHIP_ERROR (DiagnosticD
9292
return aEncoder.Encode(data);
9393
}
9494

95-
CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadWiFiBssId(AttributeValueEncoder & aEncoder)
95+
CHIP_ERROR WiFiDiagnosticsGlobalInstance::ReadWiFiBssId(AttributeValueEncoder & aEncoder)
9696
{
9797
Attributes::Bssid::TypeInfo::Type bssid;
9898

@@ -115,7 +115,7 @@ CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadWiFiBssId(AttributeValueEncoder & a
115115
return aEncoder.Encode(bssid);
116116
}
117117

118-
CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadSecurityType(AttributeValueEncoder & aEncoder)
118+
CHIP_ERROR WiFiDiagnosticsGlobalInstance::ReadSecurityType(AttributeValueEncoder & aEncoder)
119119
{
120120
Attributes::SecurityType::TypeInfo::Type securityType;
121121
SecurityTypeEnum value = SecurityTypeEnum::kUnspecified;
@@ -133,7 +133,7 @@ CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadSecurityType(AttributeValueEncoder
133133
return aEncoder.Encode(securityType);
134134
}
135135

136-
CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadWiFiVersion(AttributeValueEncoder & aEncoder)
136+
CHIP_ERROR WiFiDiagnosticsGlobalInstance::ReadWiFiVersion(AttributeValueEncoder & aEncoder)
137137
{
138138
Attributes::WiFiVersion::TypeInfo::Type version;
139139
WiFiVersionEnum value = WiFiVersionEnum::kUnknownEnumValue;
@@ -151,7 +151,7 @@ CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadWiFiVersion(AttributeValueEncoder &
151151
return aEncoder.Encode(version);
152152
}
153153

154-
CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadChannelNumber(AttributeValueEncoder & aEncoder)
154+
CHIP_ERROR WiFiDiagnosticsGlobalInstance::ReadChannelNumber(AttributeValueEncoder & aEncoder)
155155
{
156156
Attributes::ChannelNumber::TypeInfo::Type channelNumber;
157157
uint16_t value = 0;
@@ -169,7 +169,7 @@ CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadChannelNumber(AttributeValueEncoder
169169
return aEncoder.Encode(channelNumber);
170170
}
171171

172-
CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadWiFiRssi(AttributeValueEncoder & aEncoder)
172+
CHIP_ERROR WiFiDiagnosticsGlobalInstance::ReadWiFiRssi(AttributeValueEncoder & aEncoder)
173173
{
174174
Attributes::Rssi::TypeInfo::Type rssi;
175175
int8_t value = 0;
@@ -188,7 +188,7 @@ CHIP_ERROR WiFiDiagosticsGlobalInstance::ReadWiFiRssi(AttributeValueEncoder & aE
188188
return aEncoder.Encode(rssi);
189189
}
190190

191-
CHIP_ERROR WiFiDiagosticsGlobalInstance::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
191+
CHIP_ERROR WiFiDiagnosticsGlobalInstance::Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder)
192192
{
193193
if (aPath.mClusterId != WiFiNetworkDiagnostics::Id)
194194
{
@@ -252,7 +252,7 @@ CHIP_ERROR WiFiDiagosticsGlobalInstance::Read(const ConcreteReadAttributePath &
252252
return CHIP_NO_ERROR;
253253
}
254254

255-
void WiFiDiagosticsGlobalInstance::InvokeCommand(HandlerContext & handlerContext)
255+
void WiFiDiagnosticsGlobalInstance::InvokeCommand(HandlerContext & handlerContext)
256256
{
257257
switch (handlerContext.mRequestPath.mCommandId)
258258
{
@@ -266,14 +266,15 @@ void WiFiDiagosticsGlobalInstance::InvokeCommand(HandlerContext & handlerContext
266266
}
267267

268268
#ifdef WI_FI_NETWORK_DIAGNOSTICS_ENABLE_RESET_COUNTS_CMD
269-
void WiFiDiagosticsGlobalInstance::HandleResetCounts(HandlerContext & ctx, const Commands::ResetCounts::DecodableType & commandData)
269+
void WiFiDiagnosticsGlobalInstance::HandleResetCounts(HandlerContext & ctx,
270+
const Commands::ResetCounts::DecodableType & commandData)
270271
{
271272
mDiagnosticProvider.ResetWiFiNetworkDiagnosticsCounts();
272273
ctx.mCommandHandler.AddStatus(ctx.mRequestPath, Protocols::InteractionModel::Status::Success);
273274
}
274275
#endif
275276

276-
WiFiDiagosticsGlobalInstance gWiFiDiagosticsInstance(DeviceLayer::GetDiagnosticDataProvider());
277+
WiFiDiagnosticsGlobalInstance gWiFiDiagnosticsInstance(DeviceLayer::GetDiagnosticDataProvider());
277278

278279
} // anonymous namespace
279280

@@ -353,8 +354,8 @@ void WiFiDiagnosticsServer::OnConnectionStatusChanged(uint8_t connectionStatus)
353354

354355
void MatterWiFiNetworkDiagnosticsPluginServerInitCallback()
355356
{
356-
AttributeAccessInterfaceRegistry::Instance().Register(&gWiFiDiagosticsInstance);
357-
CommandHandlerInterfaceRegistry::Instance().RegisterCommandHandler(&gWiFiDiagosticsInstance);
357+
AttributeAccessInterfaceRegistry::Instance().Register(&gWiFiDiagnosticsInstance);
358+
CommandHandlerInterfaceRegistry::Instance().RegisterCommandHandler(&gWiFiDiagnosticsInstance);
358359

359360
GetDiagnosticDataProvider().SetWiFiDiagnosticsDelegate(&WiFiDiagnosticsServer::Instance());
360361
}

0 commit comments

Comments
 (0)