-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[all-clusters-app] Add some command line options to modify what is returned by the CSRResponse #19461
Merged
vivien-apple
merged 2 commits into
project-chip:master
from
vivien-apple:ChipAllClustersApp_ModifyCSRResponse
Jun 14, 2022
Merged
[all-clusters-app] Add some command line options to modify what is returned by the CSRResponse #19461
vivien-apple
merged 2 commits into
project-chip:master
from
vivien-apple:ChipAllClustersApp_ModifyCSRResponse
Jun 14, 2022
Conversation
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
2 tasks
pullapprove
bot
requested review from
anush-apple,
arkq,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
chrisdecenzo,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
emargolis,
erjiaqing,
franck-apple,
gjc13,
harimau-qirex,
hawk248,
harsha-rajendran,
isiu-apple,
jelderton,
jepenven-silabs,
jmartinez-silabs,
jtung-apple,
kpschoedel,
lazarkov,
LuDuda and
mlepage-google
June 10, 2022 14:01
pullapprove
bot
requested review from
selissia,
tecimovic,
turon,
vijs,
wbschiller,
woody-apple,
xylophone21,
yufengwangca and
yunhanw-google
June 10, 2022 14:01
vivien-apple
force-pushed
the
ChipAllClustersApp_ModifyCSRResponse
branch
from
June 10, 2022 14:56
ae7542a
to
7f8ee3b
Compare
vivien-apple
force-pushed
the
ChipAllClustersApp_ModifyCSRResponse
branch
from
June 10, 2022 15:40
7f8ee3b
to
43d7103
Compare
PR #19461: Size comparison from 54da3fd to 43d7103 Increases above 0.2%:
Increases (7 builds for linux, telink)
Decreases (2 builds for esp32, nrfconnect)
Full report (41 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
bzbarsky-apple
approved these changes
Jun 11, 2022
vivien-apple
force-pushed
the
ChipAllClustersApp_ModifyCSRResponse
branch
from
June 13, 2022 08:12
43d7103
to
8b9f6ac
Compare
PR #19461: Size comparison from c1e1d01 to 8b9f6ac Increases above 0.2%:
Increases (5 builds for efr32, esp32, linux, telink)
Decreases (1 build for cyw30739)
Full report (30 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
…modify what is returned by the CSRResponse
vivien-apple
force-pushed
the
ChipAllClustersApp_ModifyCSRResponse
branch
from
June 13, 2022 13:49
8b9f6ac
to
11eca51
Compare
PR #19461: Size comparison from 8443529 to 11eca51 Increases above 0.2%:
Increases (13 builds for cyw30739, linux)
Decreases (3 builds for esp32, k32w, nrfconnect)
Full report (41 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
|
tcarmelveilleux
approved these changes
Jun 14, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
#14404 requires to customise the
CSRResponse
. There are different ways to do that but a non-invasive approach is to just specialise the template that fills in the specific command data and get it to be modified on the fly.The reason to choose this approach is that it let us change the content of the TLV such that it does not match what the generated struct expects.
For example in the case of CSRResponse, the generated struct expects 2 byte spans, but depending on the configuration this PR changes it to one byte span and one boolean.
Change overview
attestationElements
andnocsrElements
are not bigger thanRESP_MAX (900 bytes)
since this is defined in the spec.