Skip to content

Commit

Permalink
Align naming in Network Commissioning cluster XML with the spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple committed Jan 4, 2023
1 parent 4e63e88 commit b6aca92
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ limitations under the License.
<bitmap name="WiFiSecurity" type="BITMAP8">
<cluster code="0x0031"/>
<field name="Unencrypted" mask="0x1"/>
<field name="WEP-PERSONAL" mask="0x2"/>
<field name="WEP" mask="0x2"/>
<field name="WPA-PERSONAL" mask="0x4"/>
<field name="WPA2-PERSONAL" mask="0x8"/>
<field name="WPA3-PERSONAL" mask="0x10"/>
Expand Down Expand Up @@ -171,8 +171,8 @@ limitations under the License.
</cluster>
<bitmap name="NetworkCommissioningFeature" type="BITMAP32">
<cluster code="0x0031"/>
<field name="WiFiNetworkInterface" mask="0x1"/>
<field name="ThreadNetworkInterface" mask="0x2"/>
<field name="EthernetNetworkInterface" mask="0x4"/>
<field name="Wi-Fi network interface" mask="0x1"/>
<field name="Thread network interface" mask="0x2"/>
<field name="Ethernet network interface" mask="0x4"/>
</bitmap>
</configurator>
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ typedef NS_OPTIONS({{asUnderlyingZclType name}}, {{objCEnumName clusterName bitm
{{objCEnumName ../clusterName ../bitmapName}}{{objCEnumItemLabel label}} {{availability ../clusterName bitmap=../bitmapName bitmapValue=(objCEnumItemLabel label) deprecationMessage=(concat "Please use " (objCEnumName (asUpperCamelCase ../../name preserveAcronyms=true) ../label) (objCEnumItemLabel label))}} = {{asHex mask}},
{{#*inline "oldNameItemDecl"}}
{{#if oldItemName}}
{{objCEnumName ../clusterName ../bitmapName}}{{objCEnumItemLabel oldItemName}} {{availability ../clusterName bitmap=../enumName bitmapValue=oldItemName deprecationMessage=(concat "Please use " (objCEnumName (asUpperCamelCase ../../name preserveAcronyms=true) ../label) (objCEnumItemLabel label))}} = {{asHex value 2}},
{{objCEnumName ../clusterName ../bitmapName}}{{objCEnumItemLabel oldItemName}} {{availability ../clusterName bitmap=../bitmapName bitmapValue=oldItemName deprecationMessage=(concat "Please use " (objCEnumName (asUpperCamelCase ../../name preserveAcronyms=true) ../label) (objCEnumItemLabel label))}} = {{asHex mask}},
{{/if}}
{{/inline}}
{{> oldNameItemDecl oldItemName=(oldName ../clusterName bitmap=../bitmapName bitmapValue=(objCEnumItemLabel label))}}
Expand Down
11 changes: 11 additions & 0 deletions src/darwin/Framework/CHIP/templates/availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5205,6 +5205,9 @@
LevelControlOptions:
- ExecuteIfOff
- CoupleColorTempToLevel
NetworkCommissioning:
WiFiSecurity:
- WEP
deprecated:
clusters:
- OtaSoftwareUpdateProvider
Expand Down Expand Up @@ -5269,6 +5272,10 @@
PowerSource:
BatChargeLevel:
- Ok
bitmap values:
NetworkCommissioning:
WiFiSecurity:
- WepPersonal
apis:
- Timed Invoke for server to client commands
- Deprecated global attribute names
Expand Down Expand Up @@ -5347,3 +5354,7 @@
PowerSource:
BatChargeLevel:
OK: Ok
bitmap values:
NetworkCommissioning:
WiFiSecurity:
WEP: WepPersonal

0 comments on commit b6aca92

Please sign in to comment.