Skip to content

Commit a5ba8ad

Browse files
authored
Merge branch 'master' into spec-updates
2 parents 99fe4cc + a3561e1 commit a5ba8ad

File tree

26 files changed

+1690
-1061
lines changed

26 files changed

+1690
-1061
lines changed

.github/workflows/restyled.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616

1717
- uses: restyled-io/actions/setup@v4
1818
with:
19-
# Pin the Restyler version to v0.6.0.2
19+
# TODO: Pinned to v0.6.0.2 because the latest release does not have a pre-built
20+
# 'restyler-linux' asset. This broke our workflow as we rely on the pre-built binary.
21+
# Remove this pin once a new release with the 'restyler-linux' asset is available.
2022
tag: 'v0.6.0.2'
2123

2224
- id: restyler

examples/platform/silabs/MatterConfig.cpp

+4-24
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
#include <platform/silabs/wifi/WifiInterface.h>
2929

3030
// TODO: We shouldn't need any platform specific includes in this file
31-
#ifdef WF200_WIFI
32-
#include <platform/silabs/wifi/wf200/ncp/sl_wfx_task.h>
33-
#endif // WF200_WIFI
31+
#if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1)
32+
#include <platform/silabs/SiWx917/SiWxPlatformInterface.h>
33+
#endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1)
3434
#endif // SL_WIFI
3535

3636
#if PW_RPC_ENABLED
@@ -45,15 +45,6 @@
4545
#include "MemMonitoring.h"
4646
#endif
4747

48-
// TODO: We shouldn't need any platform specific includes in this file
49-
#if (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1)
50-
#include <platform/silabs/SiWx917/SiWxPlatformInterface.h>
51-
#endif // (defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1 )
52-
53-
#if ((defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) || defined(EXP_BOARD))
54-
#include <platform/silabs/wifi/wiseconnect-interface/WiseconnectWifiInterface.h>
55-
#endif // ((defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) || defined(EXP_BOARD))
56-
5748
#include <crypto/CHIPCryptoPAL.h>
5849
// If building with the EFR32-provided crypto backend, we can use the
5950
// opaque keystore
@@ -317,18 +308,7 @@ CHIP_ERROR SilabsMatterConfig::InitMatter(const char * appName)
317308
#ifdef SL_WIFI
318309
CHIP_ERROR SilabsMatterConfig::InitWiFi(void)
319310
{
320-
// TODO: Platform specific init should not be required here
321-
#ifdef WF200_WIFI
322-
// Start wfx bus communication task.
323-
wfx_bus_start();
324-
#endif // WF200_WIFI
325-
326-
// TODO: Platform specific init should not be required here
327-
#if ((defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1) || defined(EXP_BOARD))
328-
VerifyOrReturnError(InitSiWxWifi() == SL_STATUS_OK, CHIP_ERROR_INTERNAL);
329-
#endif //((defined(SLI_SI91X_MCU_INTERFACE) && SLI_SI91X_MCU_INTERFACE == 1 ) || defined(EXP_BOARD))
330-
331-
return CHIP_NO_ERROR;
311+
return InitWiFiStack();
332312
}
333313
#endif // SL_WIFI
334314

integrations/cloudbuild/chef.yaml

-22
Original file line numberDiff line numberDiff line change
@@ -58,28 +58,6 @@ steps:
5858
- name: pwenv
5959
path: /pwenv
6060

61-
- name: "gcr.io/cloud-builders/docker"
62-
args:
63-
[
64-
"/workspace/examples/chef/create_docker.py",
65-
"--commit_sha",
66-
"$COMMIT_SHA",
67-
"--short_sha",
68-
"$SHORT_SHA",
69-
"--revision_id",
70-
"$REVISION_ID",
71-
"--build_id",
72-
"$BUILD_ID",
73-
"--image_name",
74-
"$_DOCKER_IMAGE_NAME",
75-
"--tar_path",
76-
"/workspace/artifacts",
77-
]
78-
id: DockerAll
79-
entrypoint: python3
80-
waitFor:
81-
- CompileNoip
82-
8361
logsBucket: matter-build-automation-build-logs
8462

8563
# Global timeout for all steps

integrations/docker/images/stage-1/chip-build-crosscompile/start-sysroot-vm.sh

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ packages:
117117
- libdbus-1-dev
118118
- libgirepository1.0-dev
119119
- libglib2.0-dev
120+
- libpcsclite-dev
120121
- libreadline-dev
121122
- libsdl2-dev
122123
- libssl-dev

src/BUILD.gn

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ if (chip_build_tests) {
6666
"${chip_root}/src/protocols/interaction_model/tests",
6767
"${chip_root}/src/protocols/secure_channel/tests",
6868
"${chip_root}/src/protocols/user_directed_commissioning/tests",
69+
"${chip_root}/src/lib/support/verhoeff/tests",
6970
"${chip_root}/src/system/tests",
7071
"${chip_root}/src/transport/retransmit/tests",
7172
"${chip_root}/src/transport/tests",

src/app/InteractionModelEngine.cpp

+9-1
Original file line numberDiff line numberDiff line change
@@ -1967,12 +1967,20 @@ void InteractionModelEngine::OnFabricRemoved(const FabricTable & fabricTable, Fa
19671967
});
19681968

19691969
#if CHIP_CONFIG_ENABLE_READ_CLIENT
1970-
for (auto * readClient = mpActiveReadClientList; readClient != nullptr; readClient = readClient->GetNextClient())
1970+
for (auto * readClient = mpActiveReadClientList; readClient != nullptr;)
19711971
{
1972+
// ReadClient::Close may delete the read client so that readClient->GetNextClient() will be use-after-free.
1973+
// We need save readClient as nextReadClient before closing.
19721974
if (readClient->GetFabricIndex() == fabricIndex)
19731975
{
19741976
ChipLogProgress(InteractionModel, "Fabric removed, deleting obsolete read client with FabricIndex: %u", fabricIndex);
1977+
auto * nextReadClient = readClient->GetNextClient();
19751978
readClient->Close(CHIP_ERROR_IM_FABRIC_DELETED, false);
1979+
readClient = nextReadClient;
1980+
}
1981+
else
1982+
{
1983+
readClient = readClient->GetNextClient();
19761984
}
19771985
}
19781986
#endif // CHIP_CONFIG_ENABLE_READ_CLIENT

src/app/InteractionModelEngine.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class InteractionModelEngine : public Messaging::UnsolicitedMessageHandler,
324324
/**
325325
* @brief Function decrements the number of subscriptions to resume counter - mNumOfSubscriptionsToResume.
326326
* This should be called after we have completed a re-subscribe attempt on a persisted subscription wether the attempt
327-
* was succesful or not.
327+
* was successful or not.
328328
*/
329329
void DecrementNumSubscriptionsToResume();
330330
#endif // CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
@@ -714,7 +714,7 @@ class InteractionModelEngine : public Messaging::UnsolicitedMessageHandler,
714714
#endif // CHIP_CONFIG_SUBSCRIPTION_TIMEOUT_RESUMPTION
715715
#endif // CHIP_CONFIG_PERSIST_SUBSCRIPTIONS
716716

717-
FabricTable * mpFabricTable;
717+
FabricTable * mpFabricTable = nullptr;
718718

719719
CASESessionManager * mpCASESessionMgr = nullptr;
720720

0 commit comments

Comments
 (0)