diff options
-rw-r--r-- | net/bluetooth/l2cap_core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index eae1d9f90b68..a76d1ac0321b 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -6314,12 +6314,13 @@ drop: | |||
6314 | kfree_skb(skb); | 6314 | kfree_skb(skb); |
6315 | } | 6315 | } |
6316 | 6316 | ||
6317 | static void l2cap_att_channel(struct l2cap_conn *conn, u16 cid, | 6317 | static void l2cap_att_channel(struct l2cap_conn *conn, |
6318 | struct sk_buff *skb) | 6318 | struct sk_buff *skb) |
6319 | { | 6319 | { |
6320 | struct l2cap_chan *chan; | 6320 | struct l2cap_chan *chan; |
6321 | 6321 | ||
6322 | chan = l2cap_global_chan_by_scid(0, cid, conn->src, conn->dst); | 6322 | chan = l2cap_global_chan_by_scid(0, L2CAP_CID_LE_DATA, |
6323 | conn->src, conn->dst); | ||
6323 | if (!chan) | 6324 | if (!chan) |
6324 | goto drop; | 6325 | goto drop; |
6325 | 6326 | ||
@@ -6368,7 +6369,7 @@ static void l2cap_recv_frame(struct l2cap_conn *conn, struct sk_buff *skb) | |||
6368 | break; | 6369 | break; |
6369 | 6370 | ||
6370 | case L2CAP_CID_LE_DATA: | 6371 | case L2CAP_CID_LE_DATA: |
6371 | l2cap_att_channel(conn, cid, skb); | 6372 | l2cap_att_channel(conn, skb); |
6372 | break; | 6373 | break; |
6373 | 6374 | ||
6374 | case L2CAP_CID_SMP: | 6375 | case L2CAP_CID_SMP: |