Skip to content
Commit 6661952d authored by Lyle Zhu's avatar Lyle Zhu Committed by Fabio Baltieri
Browse files

Bluetooth: Classic: SSP: Fix bonding flag mismatch issue



A bonding issue is found with following conditions,
a. Local is a SSP initiator and it is in non-bondable mode,
b. Peer is in bondable mode,
c. The bonding flag in Authentication_Requirements of local IOCAP is
`No Bonding`,
d. the bonding flag in Authentication_Requirements of peer IOCAP is
`Bonding`.

The bonding information will be exchanged and stored. It is incorrect
behavior.

Fix the issue by reporting a pairing failure and disconnecting the ACL
connection with error `BT_HCI_ERR_AUTH_FAIL`.

Signed-off-by: default avatarLyle Zhu <lyle.zhu@nxp.com>
parent 1e5f8bac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment