Skip to content

Bluetooth: Classic: SDP: Improve SDP discovery response #93737

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lylezhu2012
Copy link
Contributor

In current implementation, the attribute of the registered SDP record will not be included in responding packet if the attribute data length is more than the MAX payload size (MIN(SDP_MTU, sad->sdp->chan.tx.mtu) - sizeof(struct bt_sdp_hdr)). And it causes the failure of ssa or sa discovery.

Improve the SDP server to support the case by extending the continuation state length. A 4 bytes space is extended to store the attribute offset.

In this way, the attribute can be transmitted in segments according to the reaming space of the responding buffer.

@lylezhu2012 lylezhu2012 force-pushed the fix_sdp_discover_issue branch 2 times, most recently from b7e65e0 to 6e7ba5d Compare July 26, 2025 03:03
In current implementation, the attribute of the registered SDP record
will not be included in responding packet if the attribute data length
is more than the MAX payload size(`MIN(SDP_MTU, sad->sdp->chan.tx.mtu)
- sizeof(struct bt_sdp_hdr)`). And it causes the failure of ssa or sa
discovery.

Improve the SDP server to support the case by extending the
continuation state length. A 4 bytes space is extended to store the
attribute offset.

In this way, the attribute can be transmitted in segments according
to the reaming space of the responding buffer.

Signed-off-by: Lyle Zhu <[email protected]>
@lylezhu2012 lylezhu2012 force-pushed the fix_sdp_discover_issue branch from 6e7ba5d to b8d0d2a Compare July 26, 2025 09:20
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants