Skip to content

Commit

Permalink
Merge branch 'master' into implement_android_ota_provider
Browse files Browse the repository at this point in the history
  • Loading branch information
joonhaengHeo authored Nov 2, 2023
2 parents db30512 + 71a72ae commit 1cfa724
Show file tree
Hide file tree
Showing 73 changed files with 751 additions and 296 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/darwin-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ jobs:
uses: actions/upload-artifact@v3
if: ${{ failure() && !env.ACT }}
with:
name: framework-build-log-darwin-${{BUILD_VARIANT_FRAMEWORK_TOOL}}
path: out/darwin-x64-darwin-framework-tool-${{BUILD_VARIANT_FRAMEWORK_TOOL}}/darwin_framework_build.log
name: framework-build-log-darwin-${BUILD_VARIANT_FRAMEWORK_TOOL}
path: out/darwin-x64-darwin-framework-tool-${BUILD_VARIANT_FRAMEWORK_TOOL}/darwin_framework_build.log
- name: Uploading objdir for debugging
uses: actions/upload-artifact@v3
if: ${{ failure() && !env.ACT }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

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 @@ -1252,7 +1252,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

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 @@ -1435,7 +1435,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

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 @@ -1350,7 +1350,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/placeholder/linux/apps/app1/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/placeholder/linux/apps/app2/config.matter
Original file line number Diff line number Diff line change
Expand Up @@ -2061,7 +2061,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1112,7 +1112,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
2 changes: 1 addition & 1 deletion examples/thermostat/nxp/zap/thermostat_matter_wifi.matter
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

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 @@ -1201,7 +1201,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

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 @@ -1355,7 +1355,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

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 @@ -1333,7 +1333,7 @@ server cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
5 changes: 5 additions & 0 deletions scripts/tools/zap_regen_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,11 @@ def getCodegenTemplates():
idl_path="src/controller/data_model/controller-clusters.matter",
output_directory="src/controller/java/generated"))

targets.append(JinjaCodegenTarget(
generator="kotlin-class",
idl_path="src/controller/data_model/controller-clusters.matter",
output_directory="src/controller/java/generated"))

return targets


Expand Down
5 changes: 5 additions & 0 deletions src/app/common/templates/config-data.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
DarwinForceWritable:
# Work-around for not allowing changes from writable to read-only
# happened in https://github.com/project-chip/connectedhomeip/pull/30134
- ApplicationLauncher::CurrentApp

WeakEnums:
# Allow-list of enums that we generate as enums, not enum classes.
# The goal is to drive this down to 0.
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_APBSC_9_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ tests:
attribute: "ApplicationName"
response:
constraints:
type: char_string
type: long_char_string
maxLength: 256

- label: "Step 4: Reads the ProductID attribute"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ limitations under the License.
<item name="WEP" value="0x02"/>
<item name="WPA" value="0x03"/>
<item name="WPA2" value="0x04"/>
<item name="WPA3" value="0x05"/>
<item name="WPA3" value="0x05"/>
</enum>
<enum name="WiFiVersionEnum" type="enum8">
<cluster code="0x0036"/>
Expand Down Expand Up @@ -80,12 +80,12 @@ limitations under the License.
</event>
<event side="server" code="0x01" name="AssociationFailure" priority="info" optional="true">
<description>Indicate that a Node has failed to connect, or reconnect, to a Wi-Fi access point.</description>
<field id="0" name="AssociationFailure" type="AssociationFailureCauseEnum"/>
<field id="1" name="Status" type="int16u"/>
<field id="0" name="AssociationFailureCause" type="AssociationFailureCauseEnum"/>
<field id="1" name="Status" type="int16u"/>
</event>
<event side="server" code="0x02" name="ConnectionStatus" priority="info" optional="true">
<description>Indicate that a Node’s connection status to a Wi-Fi network has changed.</description>
<field id="0" name="ConnectionStatus" type="ConnectionStatusEnum"/>
</event>
</event>
</cluster>
</configurator>
3 changes: 1 addition & 2 deletions src/controller/ExampleOperationalCredentialsIssuer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ CHIP_ERROR ExampleOperationalCredentialsIssuer::GenerateNOCChain(const ByteSpan
ReturnErrorOnFailure(reader.Next());
}

VerifyOrReturnError(reader.GetType() == kTLVType_Structure, CHIP_ERROR_WRONG_TLV_TYPE);
VerifyOrReturnError(reader.GetTag() == AnonymousTag(), CHIP_ERROR_UNEXPECTED_TLV_ELEMENT);
ReturnErrorOnFailure(reader.Expect(kTLVType_Structure, AnonymousTag()));

TLVType containerType;
ReturnErrorOnFailure(reader.EnterContainer(containerType));
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 @@ -2052,7 +2052,7 @@ client cluster WiFiNetworkDiagnostics = 54 {
}

info event AssociationFailure = 1 {
AssociationFailureCauseEnum associationFailure = 0;
AssociationFailureCauseEnum associationFailureCause = 0;
int16u status = 1;
}

Expand Down
6 changes: 2 additions & 4 deletions src/controller/java/AndroidOperationalCredentialsIssuer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ CHIP_ERROR AndroidOperationalCredentialsIssuer::CallbackGenerateNOCChain(const B
ReturnErrorOnFailure(reader.Next());
}

VerifyOrReturnError(reader.GetType() == kTLVType_Structure, CHIP_ERROR_WRONG_TLV_TYPE);
VerifyOrReturnError(reader.GetTag() == AnonymousTag(), CHIP_ERROR_UNEXPECTED_TLV_ELEMENT);
ReturnErrorOnFailure(reader.Expect(kTLVType_Structure, AnonymousTag()));

TLVType containerType;
ReturnErrorOnFailure(reader.EnterContainer(containerType));
Expand Down Expand Up @@ -335,8 +334,7 @@ CHIP_ERROR AndroidOperationalCredentialsIssuer::LocalGenerateNOCChain(const Byte
ReturnErrorOnFailure(reader.Next());
}

VerifyOrReturnError(reader.GetType() == kTLVType_Structure, CHIP_ERROR_WRONG_TLV_TYPE);
VerifyOrReturnError(reader.GetTag() == AnonymousTag(), CHIP_ERROR_UNEXPECTED_TLV_ELEMENT);
ReturnErrorOnFailure(reader.Expect(kTLVType_Structure, AnonymousTag()));

TLVType containerType;
ReturnErrorOnFailure(reader.EnterContainer(containerType));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,22 +596,22 @@ public String toString() {
}
}
public static class WiFiNetworkDiagnosticsClusterAssociationFailureEvent {
public Integer associationFailure;
public Integer associationFailureCause;
public Integer status;
public WiFiNetworkDiagnosticsClusterAssociationFailureEvent(
Integer associationFailure,
Integer associationFailureCause,
Integer status
) {
this.associationFailure = associationFailure;
this.associationFailureCause = associationFailureCause;
this.status = status;
}

@Override
public String toString() {
StringBuilder output = new StringBuilder();
output.append("WiFiNetworkDiagnosticsClusterAssociationFailureEvent {\n");
output.append("\tassociationFailure: ");
output.append(associationFailure);
output.append("\tassociationFailureCause: ");
output.append(associationFailureCause);
output.append("\n");
output.append("\tstatus: ");
output.append(status);
Expand Down
Loading

0 comments on commit 1cfa724

Please sign in to comment.