Skip to content

Commit

Permalink
Fix ThreadNetworkDiagnostics read network-name response (#14426)
Browse files Browse the repository at this point in the history
* Thread NetworkName attribute is a char_string, assigne cluster code to the feature map

* Regen

* Rebase & regen to fix conflicts
  • Loading branch information
jmartinez-silabs authored Jan 28, 2022
1 parent 49c8656 commit 08d8fd8
Show file tree
Hide file tree
Showing 44 changed files with 81 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2936,7 +2936,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
2 changes: 1 addition & 1 deletion examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
2 changes: 1 addition & 1 deletion examples/lighting-app/lighting-common/lighting-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
2 changes: 1 addition & 1 deletion examples/lock-app/lock-common/lock-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
2 changes: 1 addition & 1 deletion examples/pump-app/pump-common/pump-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
2 changes: 1 addition & 1 deletion examples/thermostat/thermostat-common/thermostat.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
2 changes: 1 addition & 1 deletion examples/tv-app/tv-common/tv-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2305,7 +2305,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
2 changes: 1 addition & 1 deletion examples/window-app/common/window-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ server cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ limitations under the License.
<description>The Thread Network Diagnostics Cluster provides a means to acquire standardized diagnostics metrics that MAY be used by a Node to assist a user or Administrative Node in diagnosing potential problems</description>
<attribute side="server" code="0x00" define="CHANNEL" type="INT16U" min="0x00" max="0xFFFF" writable="false" optional="false">channel</attribute>
<attribute side="server" code="0x01" define="ROUTING_ROLE" type="ENUM8" writable="false" optional="false">RoutingRole</attribute>
<attribute side="server" code="0x02" define="NETWORK_NAME" type="OCTET_STRING" length="16" writable="false" default="0" optional="false">NetworkName</attribute>
<attribute side="server" code="0x02" define="NETWORK_NAME" type="CHAR_STRING" length="16" writable="false" default="" optional="false">NetworkName</attribute>
<attribute side="server" code="0x03" define="DIAG_PAN_ID" type="INT16U" min="0x0000" max="0xFFFF" writable="false" default="0x0000" optional="false">PanId</attribute>
<attribute side="server" code="0x04" define="DIAG_EXTENDED_PAN_ID" type="INT64U" min="0x0000000000000000" max="0xFFFFFFFFFFFFFFFF" writable="false" default="0x0000000000000000" optional="false">ExtendedPanId</attribute>
<attribute side="server" code="0x05" define="MESH_LOCAL_PREFIX" type="OCTET_STRING" length="17" writable="false" optional="false">MeshLocalPrefix</attribute>
Expand Down Expand Up @@ -168,6 +168,7 @@ limitations under the License.
</event>
</cluster>
<bitmap name="ThreadNetworkDiagnosticsFeature" type="BITMAP32">
<cluster code="0x0035"/>
<field name="PacketCounts" mask="0x1"/>
<field name="ErrorCounts" mask="0x2"/>
<field name="MLECounts" mask="0x4"/>
Expand Down
2 changes: 1 addition & 1 deletion src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -3212,7 +3212,7 @@ client cluster ThreadNetworkDiagnostics = 53 {

readonly attribute int16u channel = 0;
readonly attribute enum8 routingRole = 1;
readonly attribute octet_string<16> networkName = 2;
readonly attribute char_string<16> networkName = 2;
readonly attribute int16u panId = 3;
readonly attribute int64u extendedPanId = 4;
readonly attribute octet_string<17> meshLocalPrefix = 5;
Expand Down
6 changes: 3 additions & 3 deletions src/controller/java/zap-generated/CHIPClusters-JNI.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/controller/python/chip/clusters/CHIPClusters.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/controller/python/chip/clusters/Objects.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 11 additions & 12 deletions src/darwin/Framework/CHIP/zap-generated/CHIPClustersObjc.mm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIPTests/CHIPClustersTests.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 08d8fd8

Please sign in to comment.