Skip to content
Commit cd264b21 authored by Théo Battrel's avatar Théo Battrel Committed by Fabio Baltieri
Browse files

Bluetooth: Host: Abort pairing if disconnected



If disconnection has been triggered in between the security update and
the call to `smp_pairing_complete` we need to abort the pairing.

The disconnection may have been triggered by `bt_unpair`, in that case
the keys will have been erased and it will lead to an assertion to
continue as if nothing happened.

To resolve this issue, at the beginning of `smp_pairing_complete` the
`status` is set to `BT_SMP_ERR_UNSPECIFIED` if there is no connection.

Signed-off-by: default avatarThéo Battrel <theo.battrel@nordicsemi.no>
parent 7ae4e247
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment