Skip to content

Bluetooth: RFCOMM: Fix CR bit in DISC frame #89930

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

Merged

Conversation

jerryyang35
Copy link
Contributor

@jerryyang35 jerryyang35 commented May 14, 2025

The CR bit in DISC frames should be set as a command rather than a response.
This patch fixes the rfcomm_send_disc function to correctly use BT_RFCOMM_CMD_CR
instead of BT_RFCOMM_RESP_CR when setting the CR bit in the address field of
DISC frames.

This issue causes PTS fail

@github-actions github-actions bot added size: XS A PR changing only a single line of code area: Bluetooth area: Bluetooth Classic Bluetooth Classic (BR/EDR) labels May 14, 2025
@jhedberg jhedberg added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label May 14, 2025
The CR bit in DISC frames should be set as a command rather than a
response.
This patch fixes the rfcomm_send_disc function to correctly use
BT_RFCOMM_CMD_CR instead of BT_RFCOMM_RESP_CR when setting the CR bit in
the address field of DISC frames.

Signed-off-by: Jiawei Yang <[email protected]>
@jerryyang35 jerryyang35 force-pushed the fix_rfcomm_disc_rc_err branch from b99744b to c240d27 Compare May 15, 2025 03:38
Copy link

@jerryyang35
Copy link
Contributor Author

Since this PR has been approved 2w ago and it may block certain PTS cases.
Could anyone help to merge it?

@kartben kartben merged commit 623479c into zephyrproject-rtos:main May 26, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Classic Bluetooth Classic (BR/EDR) area: Bluetooth size: XS A PR changing only a single line of code 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