Skip to content
Commit 7a1b194a authored by Mateusz Kapala's avatar Mateusz Kapala Committed by Fabio Baltieri
Browse files

bluetooth: host: smp: Add runtime check for central-specific path



Added run-time BT_CENTRAL role check for the path that was
central specific and did not have such check.

When multi-role BT device tried to pair without bonding (peripheral role)
while already previously bonded with the same device on another
Bluetooth identity, pairing failed.
It executed central-specific code, which should not be executed in case
when the device acts as peripheral (as it is even opt-out from code when
CONFIG_BT_CENTRAL is not enabled).

Signed-off-by: default avatarMateusz Kapala <mateusz.kapala@nordicsemi.no>
parent c6cecef1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment