Update Network Commissioning cluster XML to match specification. (#26988)
* Update Network Commissioning cluster XML to match specification.
Spec changes happened in https://github.com/CHIP-Specifications/connectedhomeip-spec/pull/6193
Fixes https://github.com/project-chip/connectedhomeip/issues/25008
* Auto-update ZAP files.
* Regenerate generated code.
diff --git a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
index 00a4d90..09d3036 100644
--- a/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
+++ b/examples/chef/devices/rootnode_fan_7N2TobIlOX.matter
@@ -573,7 +573,7 @@
/** Functionality to configure, enable, disable network credentials and access on a Matter device. */
server cluster NetworkCommissioning = 49 {
- enum NetworkCommissioningStatus : ENUM8 {
+ enum NetworkCommissioningStatusEnum : ENUM8 {
kSuccess = 0;
kOutOfRange = 1;
kBoundsExceeded = 2;
@@ -589,7 +589,7 @@
kUnknownError = 12;
}
- enum WiFiBand : ENUM8 {
+ enum WiFiBandEnum : ENUM8 {
k2g4 = 0;
k3g65 = 1;
k5g = 2;
@@ -604,7 +604,7 @@
kEthernetNetworkInterface = 0x4;
}
- bitmap WiFiSecurity : BITMAP8 {
+ bitmap WiFiSecurityBitmap : BITMAP8 {
kUnencrypted = 0x1;
kWep = 0x2;
kWpaPersonal = 0x4;
@@ -612,12 +612,12 @@
kWpa3Personal = 0x10;
}
- struct NetworkInfo {
+ struct NetworkInfoStruct {
octet_string<32> networkID = 0;
boolean connected = 1;
}
- struct ThreadInterfaceScanResult {
+ struct ThreadInterfaceScanResultStruct {
int16u panId = 0;
int64u extendedPanId = 1;
char_string<16> networkName = 2;
@@ -628,21 +628,21 @@
int8u lqi = 7;
}
- struct WiFiInterfaceScanResult {
- WiFiSecurity security = 0;
+ struct WiFiInterfaceScanResultStruct {
+ WiFiSecurityBitmap security = 0;
octet_string<32> ssid = 1;
octet_string<6> bssid = 2;
int16u channel = 3;
- WiFiBand wiFiBand = 4;
+ WiFiBandEnum wiFiBand = 4;
int8s rssi = 5;
}
readonly attribute access(read: administer) int8u maxNetworks = 0;
- readonly attribute access(read: administer) NetworkInfo networks[] = 1;
+ readonly attribute access(read: administer) NetworkInfoStruct networks[] = 1;
readonly attribute int8u scanMaxTimeSeconds = 2;
readonly attribute int8u connectMaxTimeSeconds = 3;
attribute access(write: administer) boolean interfaceEnabled = 4;
- readonly attribute access(read: administer) nullable NetworkCommissioningStatus lastNetworkingStatus = 5;
+ readonly attribute access(read: administer) nullable NetworkCommissioningStatusEnum lastNetworkingStatus = 5;
readonly attribute access(read: administer) nullable octet_string<32> lastNetworkID = 6;
readonly attribute access(read: administer) nullable int32s lastConnectErrorValue = 7;
readonly attribute command_id generatedCommandList[] = 65528;
@@ -685,20 +685,20 @@
}
response struct ScanNetworksResponse = 1 {
- NetworkCommissioningStatus networkingStatus = 0;
+ NetworkCommissioningStatusEnum networkingStatus = 0;
optional CHAR_STRING debugText = 1;
- optional WiFiInterfaceScanResult wiFiScanResults[] = 2;
- optional ThreadInterfaceScanResult threadScanResults[] = 3;
+ optional WiFiInterfaceScanResultStruct wiFiScanResults[] = 2;
+ optional ThreadInterfaceScanResultStruct threadScanResults[] = 3;
}
response struct NetworkConfigResponse = 5 {
- NetworkCommissioningStatus networkingStatus = 0;
+ NetworkCommissioningStatusEnum networkingStatus = 0;
optional CHAR_STRING<512> debugText = 1;
optional INT8U networkIndex = 2;
}
response struct ConnectNetworkResponse = 7 {
- NetworkCommissioningStatus networkingStatus = 0;
+ NetworkCommissioningStatusEnum networkingStatus = 0;
optional CHAR_STRING debugText = 1;
nullable INT32S errorValue = 2;
}