Skip to content

Commit 80602f3

Browse files
CC0918danieldegrasse
authored andcommitted
bluetooth: AVDTP:in set config_rej_rsp,LOSC can't be added.
The current logic will result in rsp always being accept because LOSC added is 0. and according to the spec, LOSC should not be added to the Set Configuration Reject response. Signed-off-by: Cheng Chang <cheng.chang@nxp.com>
1 parent aa4e6ac commit 80602f3

File tree

1 file changed

+0
-2
lines changed
  • subsys/bluetooth/host/classic

1 file changed

+0
-2
lines changed

subsys/bluetooth/host/classic/avdtp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,6 @@ static void avdtp_process_configuration_cmd(struct bt_avdtp *session, struct net
486486
LOG_DBG("set configuration err code:%d", avdtp_err_code);
487487
/* Service Category: Media Codec */
488488
net_buf_add_u8(rsp_buf, BT_AVDTP_SERVICE_MEDIA_CODEC);
489-
/* Length Of Service Capability */
490-
net_buf_add_u8(rsp_buf, 0);
491489
/* ERROR CODE */
492490
net_buf_add_u8(rsp_buf, avdtp_err_code);
493491
}

0 commit comments

Comments
 (0)