aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2014-07-12 17:36:16 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2014-07-13 01:49:34 -0400
commit0da71f1bf90f259debf50aaaa547e2cc31b5cf67 (patch)
treef50b0a5bd99ba3be72303e2ad9d9c3c99d3009cf /include/net
parent15a49cca98c3380271ced8db2ea69ee95db5c709 (diff)
Bluetooth: Enable LE encryption events only when supported
The support for LE encryption is optional. When encryption is not supported then also do not enable the encryption related events. This moves the event mask setting to the third initialization stage to ensure that the LE features are available. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/hci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci.h b/include/net/bluetooth/hci.h
index 7f754a246ca5..2fee852816ee 100644
--- a/include/net/bluetooth/hci.h
+++ b/include/net/bluetooth/hci.h
@@ -329,6 +329,7 @@ enum {
329#define LMP_HOST_SC 0x08 329#define LMP_HOST_SC 0x08
330 330
331/* LE features */ 331/* LE features */
332#define HCI_LE_ENCRYPTION 0x01
332#define HCI_LE_CONN_PARAM_REQ_PROC 0x02 333#define HCI_LE_CONN_PARAM_REQ_PROC 0x02
333#define HCI_LE_PING 0x10 334#define HCI_LE_PING 0x10
334 335