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)
commit9193c6e884ae1b403f53ca1370a4b7f8185c547b
tree8f3e8a43354dd07098a78aceeb10ee2707e32947
parent8e75b46a4f5d2c71b2f3ea632df1b15502514948
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