]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72289ab9db24458faface71109e5f73e59ea8153
tree4cc269f37f27cd9796664fe4987168dfa9f74742
parent6e78c9a636bab6cf8d2025556c3a5a0b032494a2
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