bluetooth: host: Failed to set security right after reconnection with bonded Central #45820
Labels
area: Bluetooth Host
Bluetooth Host (excluding BR/EDR)
area: Bluetooth
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
Failed to set security right after reconnection with bonded peer. The failure is caused by inability to find SMP channel. It seems that ATT L2CAP channel tries to send security request before SMP L2CAP channel is initialized.
To Reproduce
The issue can be observed with
samples/bluetooth/peripheral_hids
sample. Steps to reproduce:peripheral_hids
sample.Expected behavior
The SMP channel must be initialized before ATT channel tries to send the security request, so that security request from peripheral would work fine.
Impact
Sending SMP security request by peripheral right after reconnection with bonded peer ends with error. The SMP request is triggered by
CONFIG_BT_GATT_AUTO_SEC_REQ
which is enabled by default.Logs and console output
Error log denoting problem:
Environment (please complete the following information):
Commit hash:
2dc866fa487ba524b426adc453d028bdd7aaa4e2
Board:
nrf52840dk_nrf52840
The text was updated successfully, but these errors were encountered: