Bug 208637

Summary: LE Secure Connections: Disconnection after pairing
Product: Drivers Reporter: Jari Jääskelä (jari.jaaskela)
Component: BluetoothAssignee: linux-bluetooth (linux-bluetooth)
Status: NEW ---    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.4.42-v7l Subsystem:
Regression: No Bisected commit-id:
Attachments: hcidump client
hcidump server
btmon output client
btmon output server
dmesg output client
dmesg output server
bluetoothd output server
bluetoothd output client

Description Jari Jääskelä 2020-07-21 07:39:31 UTC
Created attachment 290405 [details]
hcidump client

I have been trying to establish secure connection to a gatt service. Pairing completes successfully (using out-of-band data), and the client can read characteristic that has encrypt-authenticated security level, but the connection is lost soon after pairing (as seen in the btmon log below). This seems to happen because the controller responds with reason Connection Timeout (0x08).


Hardware: Raspberry Pi 4 Model B (Bluetooth chip: Cypress CYW43455).
Tested on: 4.19.118-v7l+, 5.4.42-v7l.
Tested BlueZ: 5.53, 5.54, master (commit 6ea1b038eedeca31c3796ac921e25509d48d70ec)
Comment 1 Jari Jääskelä 2020-07-21 07:39:50 UTC
Created attachment 290407 [details]
hcidump server
Comment 2 Jari Jääskelä 2020-07-21 07:40:25 UTC
Created attachment 290409 [details]
btmon output client
Comment 3 Jari Jääskelä 2020-07-21 07:40:41 UTC
Created attachment 290411 [details]
btmon output server
Comment 4 Jari Jääskelä 2020-07-21 07:41:07 UTC
Created attachment 290413 [details]
dmesg output client
Comment 5 Jari Jääskelä 2020-07-21 07:41:24 UTC
Created attachment 290415 [details]
dmesg output server
Comment 6 Jari Jääskelä 2020-07-21 07:41:37 UTC
Created attachment 290417 [details]
bluetoothd output server
Comment 7 Jari Jääskelä 2020-07-21 07:41:52 UTC
Created attachment 290419 [details]
bluetoothd output client