Bluetooth: Use custom macro for testing BR/EDR SC enabled
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 26 May 2014 08:21:22 +0000 (11:21 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:15 +0000 (16:51 +0100)
commit710f11c08e9f18a8a642024880804436c0969514
treefa0c7816ef0a05d6d1615eddc68ac5aec402a13c
parent8f5eeca321b4a618550a0c4c2d3da935aa7073b0
Bluetooth: Use custom macro for testing BR/EDR SC enabled

Since the HCI_SC_ENABLED flag will also be used for controllers without
BR/EDR Secure Connections support whenever we need to check specifically
for SC for BR/EDR we also need to check that the controller actually
supports it. This patch adds a convenience macro for check all the
necessary conditions and converts the places in the code that need it to
use it.

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