Bluetooth: Set different event mask for LE-only controllers
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 13 Aug 2013 17:00:54 +0000 (10:00 -0700)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 21 Aug 2013 14:47:05 +0000 (16:47 +0200)
commitc7882cbd1151011ca8e6fb13530cd09eae1c39ee
tree9cbcfee21ab4956aaaab175b16f122708857313e
parent9d225d2208a6f17da5987ff4e7710b9e805cb5d6
Bluetooth: Set different event mask for LE-only controllers

In case of a Low Energy only controller it makes no sense to configure
the full BR/EDR event mask. It will just enable events that can not be
send anyway and there is no guarantee that such a controller will accept
this value.

Use event mask 0x90 0xe8 0x04 0x02 0x00 0x80 0x00 0x20 for LE-only
controllers which enables the following events:

          Disconnection Complete
          Encryption Change
          Read Remote Version Information Complete
          Command Complete
          Command Status
          Hardware Error
          Number of Completed Packets
          Data Buffer Overflow
          Encryption Key Refresh Complete
          LE Meta

This is according to Core Specification, Part E, Section 3.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/hci_core.c