Skip to content

Feature/impl a2dp get all cap #93175

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 2 commits into
base: main
Choose a base branch
from

Conversation

MarkWangChinese
Copy link
Contributor

Implement the avdtp/a2dp get_all_capabilities cmd and rsp.
From avdtp spec, the get_all_capablities should be used if the avdtp version is v1.3, otherwise the get_capabilities should be used.
Improve sdp to get the avdtp version through the bt_sdp_get_proto_param.

@@ -798,7 +811,7 @@ SHELL_STATIC_SUBCMD_SET_CREATE(a2dp_cmds,
cmd_register_ep, 3, 0),
SHELL_CMD_ARG(connect, NULL, HELP_NONE, cmd_connect, 1, 0),
SHELL_CMD_ARG(disconnect, NULL, HELP_NONE, cmd_disconnect, 1, 0),
SHELL_CMD_ARG(discover_peer_eps, NULL, HELP_NONE, cmd_get_peer_eps, 1, 0),
SHELL_CMD_ARG(discover_peer_eps, NULL, "<avdtp version value>", cmd_get_peer_eps, 1, 1),
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
SHELL_CMD_ARG(discover_peer_eps, NULL, "<avdtp version value>", cmd_get_peer_eps, 1, 1),
SHELL_CMD_ARG(discover_peer_eps, NULL, "[avdtp version value]", cmd_get_peer_eps, 1, 1),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

BT_SDP_PROTO_L2CAP = 0x0100,
BT_SDP_PROTO_AVDTP = 0x0019,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
BT_SDP_PROTO_L2CAP = 0x0100,
BT_SDP_PROTO_AVDTP = 0x0019,
BT_SDP_PROTO_AVDTP = 0x0019,
BT_SDP_PROTO_L2CAP = 0x0100,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

get the avdtp version through the bt_sdp_get_proto_param

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
From avdtp spec, the get_all_capablities should be used if the avdtp
version is v1.3, otherwise the get_capabilities should be used.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
@MarkWangChinese MarkWangChinese force-pushed the feature/impl_a2dp_get_all_cap branch from 2fcb45e to 3ff0a40 Compare July 23, 2025 11:52
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