From: Marcel Holtmann Date: Thu, 3 Oct 2013 06:51:49 +0000 (-0700) Subject: Bluetooth: Don't copy L2CAP LE signalling to raw sockets X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=94b6a09b67ac4f0772d298aec0973fe3261150a0;p=deliverable%2Flinux.git Bluetooth: Don't copy L2CAP LE signalling to raw sockets The L2CAP raw sockets are only used for BR/EDR signalling. Packets on LE links should not be forwarded there. Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 0661ca693db5..65c53719b76c 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -5327,8 +5327,6 @@ static inline void l2cap_le_sig_channel(struct l2cap_conn *conn, struct l2cap_cmd_hdr cmd; int err; - l2cap_raw_recv(conn, skb); - if (hcon->type != LE_LINK) goto drop;