From: Johan Hedberg Date: Wed, 16 Oct 2013 08:37:01 +0000 (+0300) Subject: Bluetooth: Ignore SMP data on non-LE links X-Git-Tag: accepted/tizen/common/20141203.182822~719^2~3^2^2~307^2~61 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3432711f49c31c8f21f8a9beb0b3d4b2c7bc9dc2;p=platform%2Fkernel%2Flinux-arm64.git Bluetooth: Ignore SMP data on non-LE links The SMP CID is only defined for LE transports. Instead of returning an error from smp_sig_channel() in this case (which would cause a disconnection) just return 0 to ignore the data, which is consistent with the behavior for other unknown CIDs. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 463e50c..fc200e0 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -856,7 +856,7 @@ int smp_sig_channel(struct l2cap_conn *conn, struct sk_buff *skb) if (hcon->type != LE_LINK) { kfree_skb(skb); - return -ENOTSUPP; + return 0; } if (skb->len < 1) {