]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Move LE event mask setting into init3 phase
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 1 Jul 2014 21:10:09 +0000 (18:10 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 3 Jul 2014 15:42:55 +0000 (17:42 +0200)
commit4a4eab597a49a123b1bccf88e5880e5285526505
tree8f3e8a43354dd07098a78aceeb10ee2707e32947
parent834bd5d4bb71c44f87804708fca5b86a8aa72a98
Bluetooth: Move LE event mask setting into init3 phase

During init2 phase, the LE local features have not be read yet so
we aren't able to rely on hdev->le_features to determine if the
controller supports the Connection Parameters Request Procedure.

For that reason, this patch moves LE event mask setting from init2
into init3 initialization phase.

The hdev->le_features mask will be checked by the next patch in order
to know if "LE Remote Connection Parameter Request Event" should be
enabled.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_core.c