• Marcel Holtmann's avatar
    Bluetooth: Set different event mask for LE-only controllers · c7882cbd
    Marcel Holtmann authored
    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: default avatarMarcel Holtmann <marcel@holtmann.org>
    Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
    c7882cbd
hci_core.c 75.4 KB