Bluetooth: Add a convenience function to check for SSP enabled
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 18 Jan 2012 19:33:12 +0000 (21:33 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:29 +0000 (17:01 +0200)
commitaa64a8b500e61c33c17f1d5e7de0cc154489c59e
tree4cc269f37f27cd9796664fe4987168dfa9f74742
parent84bde9d6c0e6830f4a8685a5d237965053118bf9
Bluetooth: Add a convenience function to check for SSP enabled

It's a very common test to see if both the local and the remote device
have SSP enabled. By creating a simple function to test this we can
shorten many if-statements in the code.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_conn.c
net/bluetooth/hci_event.c