]> git.karo-electronics.de Git - karo-tx-linux.git/commit - net/bluetooth/smp.c
Bluetooth: Ignore SMP data on non-LE links
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 16 Oct 2013 08:37:01 +0000 (11:37 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 16 Oct 2013 08:41:13 +0000 (01:41 -0700)
commit3432711f49c31c8f21f8a9beb0b3d4b2c7bc9dc2
tree6fc07f41305210d4b02c2e1774020dabee2c61c9
parent07e307f807fecf056f0f9024ade4c0187159c46b
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 <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c