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

modem: cmux: fix frame data length encoding #67062

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

tomi-font
Copy link
Collaborator

@tomi-font tomi-font commented Dec 29, 2023

In cases where the data is bigger than 127 bytes, the first bit of the second byte of the data length field used to always be set.

This is wrong as according to the 3GPP 27.010 spec only the first bit of the first byte is the EA bit; all the others denote the data length.

In cases where the data is bigger than 127 bytes,
the first bit of the second byte of the data length field
used to always be set.

This is wrong as according to the 3GPP 27.010 spec
only the first bit of the first byte is the EA bit;
all the others denote the data length.

Signed-off-by: Tomi Fontanilles <[email protected]>
@zephyrbot zephyrbot added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Dec 29, 2023
Copy link
Collaborator

@bjarki-andreasen bjarki-andreasen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect :)

@carlescufi carlescufi merged commit 6564e8b into zephyrproject-rtos:main Jan 2, 2024
18 checks passed
ndrs-pst added a commit to DDC-NDRS/zephyr_rtos that referenced this pull request Jan 2, 2024
This optimization aggregates frame headers before adding to the ring buffer
and computes the FCS of the frame header in one operation.
This approach improves execution efficiency and reduces memory footprint.
This code adjustment aligns with the changes proposed in zephyrproject-rtos#67062.

Signed-off-by: Pisit Sawangvonganan <[email protected]>
fabiobaltieri pushed a commit that referenced this pull request Jan 11, 2024
This optimization aggregates frame headers before adding to the ring buffer
and computes the FCS of the frame header in one operation.
This approach improves execution efficiency and reduces memory footprint.
This code adjustment aligns with the changes proposed in #67062.

Signed-off-by: Pisit Sawangvonganan <[email protected]>
coreboot-bot pushed a commit to coreboot/zephyr-cros that referenced this pull request Jan 12, 2024
This optimization aggregates frame headers before adding to the ring buffer
and computes the FCS of the frame header in one operation.
This approach improves execution efficiency and reduces memory footprint.
This code adjustment aligns with the changes proposed in zephyrproject-rtos/zephyr#67062.

(cherry picked from commit 1270bce)

Original-Signed-off-by: Pisit Sawangvonganan <[email protected]>
GitOrigin-RevId: 1270bce
Change-Id: I25641650274c52a84e8c9c3866d5712bb037b318
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5192492
Reviewed-by: Tristan Honscheid <[email protected]>
Tested-by: ChromeOS Prod (Robot) <[email protected]>
Commit-Queue: Tristan Honscheid <[email protected]>
Tested-by: Tristan Honscheid <[email protected]>
mpenate-ellenbytech pushed a commit to mpenate-ellenbytech/sdk-zephyr that referenced this pull request Jan 31, 2024
This optimization aggregates frame headers before adding to the ring buffer
and computes the FCS of the frame header in one operation.
This approach improves execution efficiency and reduces memory footprint.
This code adjustment aligns with the changes proposed in zephyrproject-rtos/zephyr#67062.

Signed-off-by: Pisit Sawangvonganan <[email protected]>
tomi-font pushed a commit to tomi-font/ncs-zephyr that referenced this pull request Feb 16, 2024
…to save ROM

This optimization aggregates frame headers before adding to the ring buffer
and computes the FCS of the frame header in one operation.
This approach improves execution efficiency and reduces memory footprint.
This code adjustment aligns with the changes proposed in zephyrproject-rtos/zephyr#67062.

Signed-off-by: Pisit Sawangvonganan <[email protected]>
(cherry picked from commit 1270bce)
rlubos pushed a commit to nrfconnect/sdk-zephyr that referenced this pull request Feb 19, 2024
…to save ROM

This optimization aggregates frame headers before adding to the ring buffer
and computes the FCS of the frame header in one operation.
This approach improves execution efficiency and reduces memory footprint.
This code adjustment aligns with the changes proposed in zephyrproject-rtos/zephyr#67062.

Signed-off-by: Pisit Sawangvonganan <[email protected]>
(cherry picked from commit 1270bce)
jfischer-no pushed a commit to nrfconnect/sdk-zephyr that referenced this pull request Mar 8, 2024
…to save ROM

This optimization aggregates frame headers before adding to the ring buffer
and computes the FCS of the frame header in one operation.
This approach improves execution efficiency and reduces memory footprint.
This code adjustment aligns with the changes proposed in zephyrproject-rtos/zephyr#67062.

Signed-off-by: Pisit Sawangvonganan <[email protected]>
(cherry picked from commit 1270bce)
(cherry picked from commit 97a72e7)
ldenefle pushed a commit to converge-io/sdk-zephyr that referenced this pull request Jun 20, 2024
This optimization aggregates frame headers before adding to the ring buffer
and computes the FCS of the frame header in one operation.
This approach improves execution efficiency and reduces memory footprint.
This code adjustment aligns with the changes proposed in zephyrproject-rtos/zephyr#67062.

Signed-off-by: Pisit Sawangvonganan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Modem Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants