diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2014-07-12 23:36:16 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-13 07:49:34 +0200 |
commit | 0da71f1bf90f259debf50aaaa547e2cc31b5cf67 (patch) | |
tree | f50b0a5bd99ba3be72303e2ad9d9c3c99d3009cf /include/net/bluetooth | |
parent | Bluetooth: Read LE Advertising Channel TX Power only when available (diff) | |
download | linux-0da71f1bf90f259debf50aaaa547e2cc31b5cf67.tar.xz linux-0da71f1bf90f259debf50aaaa547e2cc31b5cf67.zip |
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/bluetooth')
-rw-r--r-- | include/net/bluetooth/hci.h | 1 |
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 { #define LMP_HOST_SC 0x08 /* LE features */ +#define HCI_LE_ENCRYPTION 0x01 #define HCI_LE_CONN_PARAM_REQ_PROC 0x02 #define HCI_LE_PING 0x10 |