Skip to content

Commit 101add0

Browse files
MarkWangChinesekartben
authored andcommitted
bluetooth: avdtp: fix the checking of rsp_handler
rsp_handler should be used instead of cmd_handler Signed-off-by: Mark Wang <[email protected]>
1 parent 718f0e7 commit 101add0

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/host/classic

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/classic/avdtp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ int bt_avdtp_l2cap_recv(struct bt_l2cap_chan *chan, struct net_buf *buf)
13201320
}
13211321

13221322
if (sigid != 0U && sigid <= BT_AVDTP_DELAYREPORT &&
1323-
cmd_handler[sigid - 1U] != NULL) {
1323+
rsp_handler[sigid - 1U] != NULL) {
13241324
rsp_handler[sigid - 1U](session, buf, msgtype);
13251325
return 0;
13261326
}

0 commit comments

Comments
 (0)