Skip to content

Commit 31f36fd

Browse files
CC0918henrikbrixandersen
authored andcommitted
bluetooth: host: l2cap: fix issue that can't get chan by psm
when role is server and try to get chan by psm in application, it works fail because chan do not store psm. Signed-off-by: Cheng Chang <[email protected]>
1 parent af9f889 commit 31f36fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/host/classic/l2cap_br.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2689,6 +2689,7 @@ static void l2cap_br_conn_req(struct bt_l2cap_br *l2cap, uint8_t ident,
26892689

26902690
br_chan = BR_CHAN(chan);
26912691
br_chan->required_sec_level = server->sec_level;
2692+
br_chan->psm = psm;
26922693

26932694
l2cap_br_chan_add(conn, chan, l2cap_br_chan_destroy);
26942695
BR_CHAN(chan)->tx.cid = scid;

0 commit comments

Comments
 (0)