Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bad merge on nullable cherry pick #37499

Closed
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
8e0b710
[ICD] Make optional spec checks mandatory with the launch of LongIdle…
mkardous-silabs Oct 8, 2024
3ff8a03
Add missing feature map bit (#35915) (#35966)
mkardous-silabs Oct 8, 2024
42efe9d
[Silabs] Refactor Sensor code (#35979) (#35992)
mkardous-silabs Oct 9, 2024
3e1f7ad
[Android] Add StayActive support during commission flow for LIT (#36028)
yunhanw-google Oct 10, 2024
a8d9513
Store icdClientInfo after completing check-in message validation (#36…
yunhanw-google Oct 10, 2024
dd6f974
Attempt to fix ESP32 builds by adding an extra dependency (#36025) (#…
andy31415 Oct 10, 2024
5335054
[ICD] Improve ICDClientStorage (#36036) (#36055)
yunhanw-google Oct 15, 2024
284d193
Remove remaining Global Attributes tests (#36029) (#36107)
cecille Oct 17, 2024
1f65167
[ICD] Add logs to improve debuggability for storeEntry/removeEntry/r…
yunhanw-google Oct 18, 2024
bfff495
DM XMLs 1.4 tag (#36154)
cecille Oct 21, 2024
803e819
[Cherry-pick] Adds refrigerator application (#35433) (#36138)
shgutte Oct 21, 2024
8304c7a
[ICD] Add subscriber request max interval getter (#36021) (#36176)
mkardous-silabs Oct 21, 2024
f2e5de7
Revert "[Feature] Adding Step Endpoint Information (#35662)" (#36200)
cecille Oct 22, 2024
9020be3
[Silabs] Update WiseConnect to v3.3.3 (#36086) (#36196)
arun-silabs Oct 23, 2024
d3e4148
[Silabs] Update WiseConnect-wifi-bt-sdk to 2.10.3 for RS9116 (#36117)…
bhmanda-silabs Oct 23, 2024
68f0437
[Silabs] Fixing the BLE Advertisement for the NCP and 917SoC devices …
chirag-silabs Oct 23, 2024
09b7d4b
[Silabs] Bump Simplicity SDK to 2024.6.2 (#36213) (#36222)
mkardous-silabs Oct 24, 2024
fd2d000
[ICD] Set MaximumCheckInBackOff to external and fix define guards for…
mkardous-silabs Oct 24, 2024
eb2936c
[ESP32] Implement providers which reads unique data from the secure c…
shubhamdp Oct 28, 2024
c34b0bf
Update esp-insights component to latest version (#36078) (#36380)
shripad621git Nov 6, 2024
ce0101d
OpenThread: ClearAllSrpHostAndServices should be guarded with CHIP_DE…
shubhamdp Nov 11, 2024
96eab29
[ICD] Shutdown icd client storage when destroying android controller …
yunhanw-google Nov 13, 2024
61f0ef1
Switch string for cirque lookup. (#36407) (#36523)
yunhanw-google Nov 18, 2024
dee7d7b
Fix cluster `Bridged Device Basic Information` in Update matter-devic…
lboue Nov 18, 2024
6569701
Do not use reverse commissioning to pair test server (#36490) (#36541)
yufengwangca Nov 20, 2024
bd89bea
setup: support installations with Python3.13 (#36549) (#36585)
shubhamdp Nov 21, 2024
3c36729
ESP32: fix typo to include correct Span.h in secure cert data provide…
shubhamdp Nov 21, 2024
2b382d6
ESP32: Fix building chip_gn for cmake v3.31.x and onwards (#36606) (#…
shubhamdp Nov 25, 2024
9b008bc
ESP32: Fix IEEE802154 MAC address in diagnostic provider (#36710)
wqx6 Dec 6, 2024
43aa98c
ESP32: Add support for ESP32-P4 (#36312) (#36773)
wqx6 Dec 10, 2024
13380c7
Update matter-devices.xml (#36572)
lboue Dec 13, 2024
a07eef8
[Silabs] Drop BLE connection on endpoint close (#36452)
fuxiaoming-lumi Dec 17, 2024
8323b1b
[ESP32]: Fixed the undef build failure on disabling CHIP_DEVICE_CONFI…
shripad621git Jan 7, 2025
ad776f0
Select least peer active session (#36983)
DejinChen Jan 8, 2025
5d21af8
Fix reads on the group key management cluster to handle chunking corr…
bzbarsky-apple Jan 10, 2025
c056376
[ESP32]: increment the total operational hours inline without log (#3…
shubhamdp Jan 16, 2025
cd07c4f
Fixing the wheels path in the Dockerfile of the chip certification bi…
antonio-amjr Jan 16, 2025
ebf0be4
Fixing Dockerfile wheels path (#37096)
antonio-amjr Jan 21, 2025
3e3d4eb
Added a public API to RefreshKeySender to retrieve ICDClientInfo (#37…
thivya-amazon Jan 23, 2025
f0a441f
[1.4 branch] Fix command handling logic for invalid endpoint commands…
andy31415 Jan 28, 2025
6f1b823
CP [IM]Fix leaked readClient in onFabricRemoved call (#37264)
yunhanw-google Jan 28, 2025
fc00c97
TCP tests: TC-SC-8.x - Use ArmFailsafe as cmd (#37313) (#37326)
pidarped Jan 30, 2025
3338248
[ Cherry pick from master ] 2 TCP Bug fixes (#37327)
pidarped Jan 31, 2025
f9f7909
Cherry pick DM XML changes to 1.4 (#37389)
cecille Feb 5, 2025
e0c8cbb
[TC-DLOG-2.1] Updated the Manual script as per the Verification step …
cjandhyala Feb 6, 2025
2cd02f9
Tc sc 4 1 bcm support (#36597) (#37437)
andy31415 Feb 6, 2025
a0b6593
Cherry pick PR #37397 to V1.4 branch (#37443)
pidarped Feb 7, 2025
1b5b439
Cherry-pick: TC-SC-4.3 related PRs to v1.4-branch for 1.4.1 SVE (supp…
cecille Feb 7, 2025
19c3a7b
Cherrypick #37052 into 1.4 branch (#37472)
nivi-apple Feb 7, 2025
de5c5e6
Fix key error when using TLV dictionary in DeviceConformance test. (#…
cecille Feb 8, 2025
9bdfc49
[TC-DLOG-2.1] Updated the Manual script as per the Verification step …
cecille Feb 8, 2025
9a00cb9
Update specification revision and test (#37367) (#37463)
cecille Feb 8, 2025
fd6f926
Add test steps logging for TCP Tests (#37397) (#37468)
cecille Feb 8, 2025
a06a0f5
1.4: Auto-select data model set based on specification version (#3739…
cecille Feb 8, 2025
37a2d68
Update TCUpdateDeadline to be nullable to match spec (#37438) (#37478)
cecille Feb 8, 2025
2995e7a
Revert "Update TCUpdateDeadline to be nullable to match spec (#37438)…
cecille Feb 10, 2025
f7b0671
Fix zap
cecille Feb 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added a public API to RefreshKeySender to retrieve ICDClientInfo (#37180
)

* Added a public API to RefreshKeySender to retrieve ICDClientInfo

* Added a public API to RefreshKeySender to retrieve ICDClientInfo

* Restyled by clang-format

* Restyled by clang-format

---------

Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
thivya-amazon and restyled-commits authored Jan 23, 2025
commit 3e3d4eb7b6d0578785d58bce0b0266b7344ddf91
4 changes: 2 additions & 2 deletions src/app/icd/client/CheckInDelegate.h
Original file line number Diff line number Diff line change
@@ -70,8 +70,8 @@ class DLL_EXPORT CheckInDelegate
* @brief Callback used to let the application know that the re-registration process is done. This callback will be called for
* both success and failure cases. On failure, the callee should take appropriate corrective action based on the error.
*
* @param[in] refreshKeySender - pointer to the RefreshKeySender object that was used for the key refresh process. The caller
* will NOT use this pointer any more.
* @param[in] refreshKeySender - pointer to the RefreshKeySender object that was used for the key refresh process. It will NOT
* be null regardless the key refresh status. The caller will NOT use this pointer any more.
* @param[in] error - CHIP_NO_ERROR indicates successful re-registration using the new key
* Other errors indicate the failure reason.
*/
20 changes: 13 additions & 7 deletions src/app/icd/client/DefaultCheckInDelegate.cpp
Original file line number Diff line number Diff line change
@@ -66,20 +66,26 @@ RefreshKeySender * DefaultCheckInDelegate::OnKeyRefreshNeeded(ICDClientInfo & cl

void DefaultCheckInDelegate::OnKeyRefreshDone(RefreshKeySender * refreshKeySender, CHIP_ERROR error)
{
if (refreshKeySender == nullptr)
{
ChipLogError(ICD, "RefreshKeySender is null");
return;
}
auto icdClientInfo = refreshKeySender->GetICDClientInfo();
Platform::Delete(refreshKeySender);
refreshKeySender = nullptr;
if (error == CHIP_NO_ERROR)
{
ChipLogProgress(ICD, "Re-registration with new key completed successfully");
ChipLogProgress(ICD, "Re-registration with new key completed successfully for peer node " ChipLogFormatScopedNodeId,
ChipLogValueScopedNodeId(icdClientInfo.peer_node));
}
else
{
ChipLogError(ICD, "Re-registration with new key failed with error : %" CHIP_ERROR_FORMAT, error.Format());
ChipLogError(
ICD, "Re-registration with new key failed with error %" CHIP_ERROR_FORMAT " for peer node " ChipLogFormatScopedNodeId,
error.Format(), ChipLogValueScopedNodeId(icdClientInfo.peer_node));
// The callee can take corrective action based on the error received.
}
if (refreshKeySender != nullptr)
{
Platform::Delete(refreshKeySender);
refreshKeySender = nullptr;
}
}
} // namespace app
} // namespace chip
5 changes: 5 additions & 0 deletions src/app/icd/client/RefreshKeySender.cpp
Original file line number Diff line number Diff line change
@@ -36,6 +36,11 @@ RefreshKeySender::RefreshKeySender(CheckInDelegate * checkInDelegate, const ICDC
mOnConnectedCallback(HandleDeviceConnected, this), mOnConnectionFailureCallback(HandleDeviceConnectionFailure, this)
{}

const ICDClientInfo & RefreshKeySender::GetICDClientInfo()
{
return mICDClientInfo;
}

CHIP_ERROR RefreshKeySender::RegisterClientWithNewKey(Messaging::ExchangeManager & exchangeMgr, const SessionHandle & sessionHandle)
{
auto onSuccess = [&](const ConcreteCommandPath & commandPath, const StatusIB & status, const auto & dataResponse) {
8 changes: 8 additions & 0 deletions src/app/icd/client/RefreshKeySender.h
Original file line number Diff line number Diff line change
@@ -52,6 +52,14 @@ class RefreshKeySender
*/
CHIP_ERROR EstablishSessionToPeer();

/**
* @brief Used to retrieve ICDClientInfo from RefreshKeySender.
*
* @return ICDClientInfo - ICDClientInfo object representing the state associated with the
node that requested a key refresh.
*/
const ICDClientInfo & GetICDClientInfo();

private:
// CASE session callbacks
/**
Loading