zephyr/subsys/bluetooth/host
Jonathan Rico ecae33740d 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: Jonathan Rico <jonathan.rico@nordicsemi.no>
2021-06-10 17:13:41 -04:00
..
a2dp_internal.h
a2dp.c
addr.c
adv.c Bluetooth: host: Fix extended advertising feature bit check 2021-05-26 16:35:15 +02:00
adv.h Bluetooth: host: Refactor out advertiser roles from hci_core to adv 2021-03-15 16:51:51 +02:00
aes_ccm.c Bluetooth: Crypto: Fix naming of params 2021-05-12 12:37:27 +03:00
at.c
at.h
att_internal.h Bluetooth: Refactor bluetooth buffer configuration for simplification 2021-05-06 14:56:18 +02:00
att.c Bluetooth: gatt: callbacks on ATT MTU update 2021-06-07 12:03:09 +02:00
avdtp_internal.h Bluetooth: Refactor bluetooth buffer configuration for simplification 2021-05-06 14:56:18 +02:00
avdtp.c Bluetooth: host: Update AVDTP to use new delayable work API 2021-05-05 19:44:09 -04:00
br.c coccinelle: Remove extra semicolon 2021-03-25 11:35:30 -05:00
br.h Bluetooth: host: Refactor out BR/EDR from hci_core to br 2021-03-15 16:51:51 +02:00
buf.c Bluetooth: Refactor bluetooth buffer configuration for simplification 2021-05-06 14:56:18 +02:00
CMakeLists.txt Bluetooth: Add option to log btsnoops over RTT 2021-05-05 16:03:38 +02:00
conn_internal.h Bluetooth: host: Fix disconnect priority event handling 2021-05-25 20:30:48 +03:00
conn.c Bluetooth: conn: Align cleanup for ISO connections 2021-05-28 15:34:20 +03:00
crypto.c
crypto.h
direction_internal.h Bluetooth: host: Add handl HCI_LE_Connectionless_IQ_Report 2021-05-06 16:27:16 +02:00
direction.c Bluetooth: host: Check sync_handle return value when CTE sampl enable 2021-05-31 17:44:29 +02:00
ecc.c Bluetooth: Fix callback handling in ECC Public Key generation 2021-04-09 13:27:24 +02:00
ecc.h Bluetooth: Fix callback handling in ECC Public Key generation 2021-04-09 13:27:24 +02:00
gatt_internal.h Bluetooth: gatt: callbacks on ATT MTU update 2021-06-07 12:03:09 +02:00
gatt.c Bluetooth: host: Optionally disable GATT sec re-establishment 2021-06-09 21:10:14 +03:00
hci_common.c
hci_core.c Bluetooth: host: Unmask CTE report related events for DF connected mode 2021-06-07 17:09:01 +02:00
hci_core.h Bluetooth: host: Fix extended advertising feature bit check 2021-05-26 16:35:15 +02:00
hci_ecc.c Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
hci_ecc.h
hci_raw_internal.h
hci_raw.c Bluetooth: Refactor bluetooth buffer configuration for simplification 2021-05-06 14:56:18 +02:00
hfp_hf.c
hfp_internal.h
id.c Bluetooth: host: Fix extended advertising feature bit check 2021-05-26 16:35:15 +02:00
id.h Bluetooth: host: Update RPA timer to new delayable work API 2021-05-05 19:44:09 -04:00
iso_internal.h Bluetooth: ISO: Add sequence number to ISO data packets 2021-05-27 13:16:40 +02:00
iso.c Bluetooth: Host: Add status check BIG sync/create events 2021-06-01 07:31:51 -05:00
Kconfig Bluetooth: Keys: Fix BT_KEYS_OVERWRITE_OLDEST logic for BT_MAX_CONN > 1 2021-06-08 20:18:49 +02:00
Kconfig.gatt Bluetooth: host: Optionally disable GATT sec re-establishment 2021-06-09 21:10:14 +03:00
Kconfig.l2cap Bluetooth: Refactor bluetooth buffer configuration for simplification 2021-05-06 14:56:18 +02:00
keys_br.c Bluetooth: host: Fix compilation error with BR/EDR enabled 2021-03-15 16:51:51 +02:00
keys.c Bluetooth: Keys: Fix BT_KEYS_OVERWRITE_OLDEST logic for BT_MAX_CONN > 1 2021-06-08 20:18:49 +02:00
keys.h Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
l2cap_br.c Bluetooth: Refactor bluetooth buffer configuration for simplification 2021-05-06 14:56:18 +02:00
l2cap_internal.h Bluetooth: host:l2cap: fix sending error in le_ecred_reconf_req 2021-05-28 10:50:42 -05:00
l2cap.c Bluetooth: Host: change error returned when ecred_conn_req 2021-06-01 14:03:28 +02:00
monitor.c Bluetooth: Add option to log btsnoops over RTT 2021-05-05 16:03:38 +02:00
monitor.h Bluetooth: Add option to log btsnoops over RTT 2021-05-05 16:03:38 +02:00
rfcomm_internal.h Bluetooth: host: Update RFCOMM to new delayable work API 2021-05-05 19:44:09 -04:00
rfcomm.c Bluetooth: Refactor bluetooth buffer configuration for simplification 2021-05-06 14:56:18 +02:00
scan.c Bluetooth: host: Fix extended advertising feature bit check 2021-05-26 16:35:15 +02:00
scan.h Bluetoot: host: Make get_per_adv_sync to be global function 2021-05-06 16:27:16 +02:00
sdp_internal.h
sdp.c Bluetooth: Align error handling of send functions 2021-04-20 18:20:04 -04:00
settings.c
settings.h
smp_null.c Bluetooth: host: Fix buffer leak trying to send when disconnected 2021-05-03 16:45:53 +02:00
smp.c Bluetooth: host: Prevent race condition in pairing procedure 2021-06-10 17:13:41 -04:00
smp.h Bluetooth: SMP: Adds Kconfig for minimum encryption key size 2021-04-02 16:46:18 +03:00
ssp.c Bluetooth: host: Align SSP HCI event handler function names 2021-03-15 16:51:51 +02:00
ssp.h
testing.c
testing.h
uuid.c