Commit: ba101f47dfbad6d4f6fd439570ac4a1093df2ceb
Parent: c5dffe0ce2fea65134d90b30bb27093134c12213
Author: Ludovico de Nittis <ludovico.denittis@collabora.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-04-24 20:11:55
Tree: db7350c22dd13bf652123a94f04c18f9251d1355

input: Automatically use sec level low when using a cable paired device BT_IO_SEC_LOW is the only way to allow devices that use cable pairing to establish a connection. This adds the ability to start the listening input server with BT_IO_SEC_LOW to avoid breaking support for these devices, and then, in `hidp_add_connection()`, we check if either `classic_bonded_only` was disabled or if this device has `CablePairing`. If neither are true, we bump the security back to BT_IO_SEC_MEDIUM, i.e. enforcing encryption. This allows supporting these devices without having to change the classic bonded only option.

Diffstat

M profiles/input/device.c | 19 +++++++++++++++++- -
M profiles/input/manager.c | 3 ++-
M profiles/input/server.c | 65 ++++++++++++++++++++++++++++++++++++++++- - -
M profiles/input/server.h | 3 ++-

4 files changed, 83 insertions(+), 7 deletions(-)

View Full Diff | Patch