Bluetooth: Fix rejecting SMP security request in slave role
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 5 Nov 2013 09:30:39 +0000 (11:30 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 13 Nov 2013 13:36:54 +0000 (11:36 -0200)
commit86ca9eac31d0d8c4fe61b5726e6d63197bc435a6
treebc2df6ca01075b06286179629a41a28c9884701c
parent31e8ce80baa7eaed9eec611deba982b24beed9e5
Bluetooth: Fix rejecting SMP security request in slave role

The SMP security request is for a slave role device to request the
master role device to initiate a pairing request. If we receive this
command while we're in the slave role we should reject it appropriately.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c