Bluetooth: Enable LE encryption events only when supported
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 12 Jul 2014 21:36:16 +0000 (23:36 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 13 Jul 2014 05:49:34 +0000 (08:49 +0300)
commit0da71f1bf90f259debf50aaaa547e2cc31b5cf67
treef50b0a5bd99ba3be72303e2ad9d9c3c99d3009cf
parent15a49cca98c3380271ced8db2ea69ee95db5c709
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>
include/net/bluetooth/hci.h
net/bluetooth/hci_core.c