]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb93523a47c96576203d3ada05e86aa0d40feee9
treef50b0a5bd99ba3be72303e2ad9d9c3c99d3009cf
parente8a70b1f7dd64b32b8e629de11ef990dd6c0fa1f
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