Skip to content
Commit ecae3374 authored by Jonathan Rico's avatar Jonathan Rico Committed by Anas Nashif
Browse files

Bluetooth: host: Prevent race condition in pairing procedure



Moving the key check after checking that no pairing or encryption
procedure is started fixes a race condition that is seen in some PTS
tests:

GATT/CL/GAR/BI-04-C
GATT/CL/GAR/BI-16-C
GATT/CL/GAR/BI-21-C
GATT/CL/GAW/BI-05-C
GATT/CL/GAW/BI-12-C

Signed-off-by: default avatarJonathan Rico <jonathan.rico@nordicsemi.no>
parent d6fd6311
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment