Skip to content
Commit 6d4b842a authored by Joakim Andersson's avatar Joakim Andersson Committed by Carles Cufí
Browse files

Bluetooth: Host: Add error to security changed callback



Add security error to security_changed callback. Call this callback when
security has failed and provide current security level and error.
Reason for failure can be.
 - Pairing procedure failed, pairing aborted before link encryption.
 - Link encrypt procedure failed
 - Link key refresh procedure failed.

Fix missing bt_conn_unref on encryption key refresh with error status.

Signed-off-by: default avatarJoakim Andersson <joakim.andersson@nordicsemi.no>
parent f1c73714
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment