Bluetooth: hci_conn: Fix sending BT_HCI_CMD_LE_CREATE_CONN_CANCEL
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 15 Aug 2023 21:15:05 +0000 (14:15 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 24 Aug 2023 19:20:16 +0000 (12:20 -0700)
commit3a15324fd4bb94c31a5fb893413b04e634567957
tree9bd45f276f3ee404222cedf3556e65919fb8ff63
parent94d9ba9f9888b748d4abd2aa1547af56ae85f772
Bluetooth: hci_conn: Fix sending BT_HCI_CMD_LE_CREATE_CONN_CANCEL

This fixes sending BT_HCI_CMD_LE_CREATE_CONN_CANCEL when
hci_le_create_conn_sync has not been called because HCI_CONN_SCANNING
has been clear too early before its cmd_sync callback has been run.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_conn.c