Branch: refs/heads/master Home: https://github.com/bluez/bluez Commit: 6d55c7d7fd0da6bea7adbabac09cae2023a62fcd https://github.com/bluez/bluez/commit/6d55c7d7fd0da6bea7adbabac09cae2023a62fcd Author: Cheng Jiang <quic_chejiang@xxxxxxxxxxx> Date: 2024-10-29 (Tue, 29 Oct 2024) Changed paths: M src/device.c Log Message: ----------- device: Fix Device.Pair using wrong address type For a BLE-only device, if the device is already paired and the upper layer attempts to pair it again, the bdaddr_type will be set to BDADDR_BREDR since the LE connection is already bonded. This causes the device to use the BR/EDR bearer, which stalls the pairing procedure and requires waiting for the pairing timeout. The bluetoothctl log below shows the error result: [bluetooth]# pair ED:8E:0E:B3:85:C1 Attempting to pair with ED:8E:0E:B3:85:C1 Pairing successful [RAPOO BleMouse]# disconnect ED:8E:0E:B3:85:C1 Attempting to disconnect from ED:8E:0E:B3:85:C1 [RAPOO BleMouse]# [bluetooth]# devices Paired Device ED:8E:0E:B3:85:C1 RAPOO BleMouse [bluetooth]# scan le SetDiscoveryFilter success Discovery started [CHG] Controller 8C:FD:F0:21:84:17 Discovering: yes [CHG] Device ED:8E:0E:B3:85:C1 RSSI: -38 [bluetooth]# scan off Discovery stopped [bluetooth]# pair ED:8E:0E:B3:85:C1 Attempting to pair with ED:8E:0E:B3:85:C1 [bluetooth]# Failed to pair: org.freedesktop.DBus.Error.NoReply To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications