Parent: ae39716c5f7944dfcaf08c16f1be9eb17dd65809
Author: Archie Pusaka <apusaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-07-23 19:42:26
Tree: 867c2127bcfd0346b27ff7e5eed126a8c5513936
input: encrypt on receive conn req if classic_bonded_only According to bluetooth HID1.1 spec, section 5.4.3.5.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 Response with a result code of “Connection Successful” (0x0000) after an L2CAP Connect Request is received. This patch raises the security level to medium when listening for incoming connection if the flag classic_bonded_only is set, effectively starting encryption.
Diffstat
| M | profiles/input/device.c | | | 5 | +++++ |
| M | profiles/input/device.h | | | 1 | + |
| M | profiles/input/server.c | | | 6 | ++++- - |
3 files changed, 10 insertions(+), 2 deletions(-)