Bluetooth: controller: Fix race in create connection cancel

Fix race conditional when create connection cancel is called
and actually a connection did get setup while initiator is
being stopped.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2021-03-16 11:48:07 +05:30 committed by Carles Cufí
commit 77cfd3cf52
4 changed files with 27 additions and 3 deletions

View file

@ -59,6 +59,7 @@ struct lll_conn {
union {
struct {
uint8_t initiated:1;
uint8_t cancelled:1;
} master;
#if defined(CONFIG_BT_PERIPHERAL)
struct {