Bluetooth: Add SC-only mode support for SMP
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 8 Sep 2014 23:59:18 +0000 (16:59 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:20 +0000 (16:51 +0100)
commit903b71c78d56af56a5f4d53a8dbef8032d1949bf
treef7dc4f122bc89255962345070d3e1e70b2d9e17b
parentb5ae344d4c0f69ae6526565b55d52b64bc127087
Bluetooth: Add SC-only mode support for SMP

When Secure Connections-only mode is enabled we should reject any
pairing command that does not have Secure Connections set in the
authentication requirements. This patch adds the appropriate logic for
this to the command handlers of Pairing Request/Response and Security
Request.

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