Parent: 4b6153b0501cf18812cb869c2320c41e51f81adc
Author: Archie Pusaka <apusaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-07-23 19:42:19
Tree: ce88f6ba5c8af693486b69dbb4d5d95244e31aaf
input: authenticate when connecting to a bonded device According to bluetooth HID1.1 spec, part 5.4.3.4.3: If the Bluetooth HID Host is bonded to a Bluetooth HID device: If encryption is not already enabled, the Bluetooth HID Host shall enable encryption with the Bluetooth HID device before sending an L2CAP Connect Request to open the HID L2CAP Control channel. When creating connection, this patch checks whether the target device is bonded, if yes then we use the medium security level instead of the low one to enable encryption.
Diffstat
| M | profiles/input/device.c | | | 21 | ++++++++++++++++- - - - - |
1 files changed, 16 insertions(+), 5 deletions(-)