-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change mrp-parameter-struct to hold 32-bit milliseconds (#17978)
* Change mrp-parameter-struct to hold 32-bit milliseconds Nodes store and advertise MRP parameters as 32-bit values. However, the mrp-parameter-struct had been specified to only hold 16-bit values on the wire. This would lead to session establishment failures with nodes attempting to exchange values in excess of 65536 milliseconds, despite the fact that values up to 360,000 milliseconds are legal. This corrects the problem to allow up-to 32-bit values per the spec change here: https://github.com/CHIP-Specifications/connectedhomeip-spec/pull/5173 In most cases, peers will be using smaller MRP values and and will therefore still exchange 1 or 2-byte fields on the wire, making this change mostly backward compatible. Testing: verification of successful exchange of larger MRP values up to 360,000 has been added to TestCASESession.cpp. TestTxtFields.cpp already has coverage for advertisement of large values. Fixes #17812 * per bzbarsky, s/verySleep/verySleepy
- Loading branch information
1 parent
ec1504e
commit 3920781
Showing
2 changed files
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters