Skip to content

Commit

Permalink
Align WiFi network diagnostics XML to spec changes. (#25094)
Browse files Browse the repository at this point in the history
* Align WiFi network diagnostics XML to spec changes.

More spec changes happened in https://github.com/CHIP-Specifications/connectedhomeip-spec/pull/6178

Fixes #24996

* Auto-update ZAP files.

* Regenerate generated code.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Aug 11, 2023
1 parent c91d199 commit 1084695
Show file tree
Hide file tree
Showing 117 changed files with 897 additions and 881 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1545,14 +1545,19 @@ server cluster ThreadNetworkDiagnostics = 53 {
}

server cluster WiFiNetworkDiagnostics = 54 {
enum AssociationFailureCause : ENUM8 {
enum AssociationFailureCauseEnum : ENUM8 {
kUnknown = 0;
kAssociationFailed = 1;
kAuthenticationFailed = 2;
kSsidNotFound = 3;
}

enum SecurityType : ENUM8 {
enum ConnectionStatusEnum : ENUM8 {
kConnected = 0;
kNotConnected = 1;
}

enum SecurityTypeEnum : ENUM8 {
kUnspecified = 0;
kNone = 1;
kWep = 2;
Expand All @@ -1561,12 +1566,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
kWpa3 = 5;
}

enum WiFiConnectionStatus : ENUM8 {
kConnected = 0;
kNotConnected = 1;
}

enum WiFiVersionType : ENUM8 {
enum WiFiVersionEnum : ENUM8 {
kA = 0;
kB = 1;
kG = 2;
Expand All @@ -1585,17 +1585,17 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCause associationFailure = 0;
AssociationFailureCauseEnum associationFailure = 0;
INT16U status = 1;
}

info event ConnectionStatus = 2 {
WiFiConnectionStatus connectionStatus = 0;
ConnectionStatusEnum connectionStatus = 0;
}

readonly attribute nullable octet_string<6> bssid = 0;
readonly attribute nullable SecurityType securityType = 1;
readonly attribute nullable WiFiVersionType wiFiVersion = 2;
readonly attribute nullable SecurityTypeEnum securityType = 1;
readonly attribute nullable WiFiVersionEnum wiFiVersion = 2;
readonly attribute nullable int16u channelNumber = 3;
readonly attribute nullable int8s rssi = 4;
readonly attribute nullable int32u beaconLostCount = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4952,7 +4952,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
"type": "SecurityType",
"type": "SecurityTypeEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand All @@ -4968,7 +4968,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "WiFiVersionType",
"type": "WiFiVersionEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -25498,6 +25498,5 @@
"endpointVersion": 1,
"deviceIdentifier": 61442
}
],
"log": []
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -1356,14 +1356,19 @@ server cluster ThreadNetworkDiagnostics = 53 {
}

server cluster WiFiNetworkDiagnostics = 54 {
enum AssociationFailureCause : ENUM8 {
enum AssociationFailureCauseEnum : ENUM8 {
kUnknown = 0;
kAssociationFailed = 1;
kAuthenticationFailed = 2;
kSsidNotFound = 3;
}

enum SecurityType : ENUM8 {
enum ConnectionStatusEnum : ENUM8 {
kConnected = 0;
kNotConnected = 1;
}

enum SecurityTypeEnum : ENUM8 {
kUnspecified = 0;
kNone = 1;
kWep = 2;
Expand All @@ -1372,12 +1377,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
kWpa3 = 5;
}

enum WiFiConnectionStatus : ENUM8 {
kConnected = 0;
kNotConnected = 1;
}

enum WiFiVersionType : ENUM8 {
enum WiFiVersionEnum : ENUM8 {
kA = 0;
kB = 1;
kG = 2;
Expand All @@ -1396,17 +1396,17 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCause associationFailure = 0;
AssociationFailureCauseEnum associationFailure = 0;
INT16U status = 1;
}

info event ConnectionStatus = 2 {
WiFiConnectionStatus connectionStatus = 0;
ConnectionStatusEnum connectionStatus = 0;
}

readonly attribute nullable octet_string<6> bssid = 0;
readonly attribute nullable SecurityType securityType = 1;
readonly attribute nullable WiFiVersionType wiFiVersion = 2;
readonly attribute nullable SecurityTypeEnum securityType = 1;
readonly attribute nullable WiFiVersionEnum wiFiVersion = 2;
readonly attribute nullable int16u channelNumber = 3;
readonly attribute nullable int8s rssi = 4;
readonly attribute command_id generatedCommandList[] = 65528;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4892,7 +4892,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
"type": "SecurityType",
"type": "SecurityTypeEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand All @@ -4908,7 +4908,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "WiFiVersionType",
"type": "WiFiVersionEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -24952,6 +24952,5 @@
"endpointVersion": 1,
"deviceIdentifier": 61442
}
],
"log": []
]
}
24 changes: 12 additions & 12 deletions examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1106,14 +1106,19 @@ server cluster ThreadNetworkDiagnostics = 53 {
}

server cluster WiFiNetworkDiagnostics = 54 {
enum AssociationFailureCause : ENUM8 {
enum AssociationFailureCauseEnum : ENUM8 {
kUnknown = 0;
kAssociationFailed = 1;
kAuthenticationFailed = 2;
kSsidNotFound = 3;
}

enum SecurityType : ENUM8 {
enum ConnectionStatusEnum : ENUM8 {
kConnected = 0;
kNotConnected = 1;
}

enum SecurityTypeEnum : ENUM8 {
kUnspecified = 0;
kNone = 1;
kWep = 2;
Expand All @@ -1122,12 +1127,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
kWpa3 = 5;
}

enum WiFiConnectionStatus : ENUM8 {
kConnected = 0;
kNotConnected = 1;
}

enum WiFiVersionType : ENUM8 {
enum WiFiVersionEnum : ENUM8 {
kA = 0;
kB = 1;
kG = 2;
Expand All @@ -1146,17 +1146,17 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCause associationFailure = 0;
AssociationFailureCauseEnum associationFailure = 0;
INT16U status = 1;
}

info event ConnectionStatus = 2 {
WiFiConnectionStatus connectionStatus = 0;
ConnectionStatusEnum connectionStatus = 0;
}

readonly attribute nullable octet_string<6> bssid = 0;
readonly attribute nullable SecurityType securityType = 1;
readonly attribute nullable WiFiVersionType wiFiVersion = 2;
readonly attribute nullable SecurityTypeEnum securityType = 1;
readonly attribute nullable WiFiVersionEnum wiFiVersion = 2;
readonly attribute nullable int16u channelNumber = 3;
readonly attribute nullable int8s rssi = 4;
readonly attribute nullable int32u beaconLostCount = 5;
Expand Down
7 changes: 3 additions & 4 deletions examples/bridge-app/bridge-common/bridge-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3635,7 +3635,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
"type": "SecurityType",
"type": "SecurityTypeEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand All @@ -3651,7 +3651,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "WiFiVersionType",
"type": "WiFiVersionEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -7625,6 +7625,5 @@
"endpointVersion": 1,
"deviceIdentifier": 257
}
],
"log": []
]
}
24 changes: 12 additions & 12 deletions examples/chef/devices/noip_rootnode_dimmablelight_bCwGYSDpoe.matter
Original file line number Diff line number Diff line change
Expand Up @@ -980,14 +980,19 @@ server cluster ThreadNetworkDiagnostics = 53 {
}

server cluster WiFiNetworkDiagnostics = 54 {
enum AssociationFailureCause : ENUM8 {
enum AssociationFailureCauseEnum : ENUM8 {
kUnknown = 0;
kAssociationFailed = 1;
kAuthenticationFailed = 2;
kSsidNotFound = 3;
}

enum SecurityType : ENUM8 {
enum ConnectionStatusEnum : ENUM8 {
kConnected = 0;
kNotConnected = 1;
}

enum SecurityTypeEnum : ENUM8 {
kUnspecified = 0;
kNone = 1;
kWep = 2;
Expand All @@ -996,12 +1001,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
kWpa3 = 5;
}

enum WiFiConnectionStatus : ENUM8 {
kConnected = 0;
kNotConnected = 1;
}

enum WiFiVersionType : ENUM8 {
enum WiFiVersionEnum : ENUM8 {
kA = 0;
kB = 1;
kG = 2;
Expand All @@ -1020,17 +1020,17 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCause associationFailure = 0;
AssociationFailureCauseEnum associationFailure = 0;
INT16U status = 1;
}

info event ConnectionStatus = 2 {
WiFiConnectionStatus connectionStatus = 0;
ConnectionStatusEnum connectionStatus = 0;
}

readonly attribute nullable octet_string<6> bssid = 0;
readonly attribute nullable SecurityType securityType = 1;
readonly attribute nullable WiFiVersionType wiFiVersion = 2;
readonly attribute nullable SecurityTypeEnum securityType = 1;
readonly attribute nullable WiFiVersionEnum wiFiVersion = 2;
readonly attribute nullable int16u channelNumber = 3;
readonly attribute nullable int8s rssi = 4;
readonly attribute nullable int32u beaconLostCount = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3995,7 +3995,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
"type": "SecurityType",
"type": "SecurityTypeEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand All @@ -4011,7 +4011,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "WiFiVersionType",
"type": "WiFiVersionEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -7292,6 +7292,5 @@
"endpointVersion": 1,
"deviceIdentifier": 257
}
],
"log": []
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4091,7 +4091,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
"type": "SecurityType",
"type": "SecurityTypeEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand All @@ -4107,7 +4107,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "WiFiVersionType",
"type": "WiFiVersionEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -8098,6 +8098,5 @@
"endpointVersion": 1,
"deviceIdentifier": 268
}
],
"log": []
]
}
7 changes: 3 additions & 4 deletions examples/chef/devices/rootnode_contactsensor_lFAGG1bfRO.zap
Original file line number Diff line number Diff line change
Expand Up @@ -3995,7 +3995,7 @@
"code": 1,
"mfgCode": null,
"side": "server",
"type": "SecurityType",
"type": "SecurityTypeEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand All @@ -4011,7 +4011,7 @@
"code": 2,
"mfgCode": null,
"side": "server",
"type": "WiFiVersionType",
"type": "WiFiVersionEnum",
"included": 1,
"storageOption": "External",
"singleton": 0,
Expand Down Expand Up @@ -6120,6 +6120,5 @@
"endpointVersion": 1,
"deviceIdentifier": 21
}
],
"log": []
]
}
Loading

0 comments on commit 1084695

Please sign in to comment.