input: Fix checking LE bonding on HIDP
Luiz Augusto von Dentz
maintainerPATCH 1/1 input: Fix checking LE bonding on HIDP
From: Luiz Augusto von Dentz <[email protected]>
HIDP is classic only, LE uses HOG, so there is no point in checking the bonding with the address type which in case the device supports dual-mode will map to LE random/public address.
--- profiles/input/device.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
profiles/input/device.c +4 -4
@@ -127,8 +127,8 @@ static int connection_disconnect(struct input_device *idev, uint32_t flags);static bool input_device_bonded (struct input_device *idev) { -return device_is_bonded (idev->device, -btd_device_get_bdaddr_type (idev->device)); +/* HIDP is classic only; so consider it bonded if BDADDR_BREDR is */ +return device_is_bonded (idev->device,BDADDR_BREDR ); }static void input_device_free (struct input_device *idev)
@@ -172,8 +172,8 @@ static void input_device_free(struct input_device *idev)static void virtual_cable_unplug (struct input_device *idev) { -device_remove_bonding (idev->device, -btd_device_get_bdaddr_type (idev->device)); +/* HIDP is classic only; so only remove BDADDR_BREDR bonding */ +device_remove_bonding (idev->device,BDADDR_BREDR ); idev->virtual_cable_unplug = false; }
Signature · 1 line
2.53.0
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1084336
---Test result---
Test Summary:
CheckPatch PASS 0.34 seconds GitLint PASS 0.24 seconds BuildEll PASS 20.31 seconds BluezMake PASS 644.74 seconds MakeCheck PASS 0.92 seconds MakeDistcheck PASS 246.53 seconds CheckValgrind PASS 221.43 seconds CheckSmatch PASS 350.33 seconds bluezmakeextell PASS 181.69 seconds IncrementalBuild PASS 646.76 seconds ScanBuild PASS 1025.97 seconds
https://github.com/bluez/bluez/pull/2062
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 9 lines · On Wed, 22 Apr 2026 11:03:28 -0400 you wrote:
From: Luiz Augusto von Dentz <[email protected]>
HIDP is classic only, LE uses HOG, so there is no point in checking the bonding with the address type which in case the device supports dual-mode will map to LE random/public address.
[...]
Here is the summary with links:
- [BlueZ,v1] input: Fix checking LE bonding on HIDP
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=928f2b28c1c7
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html