Bluetooth: hci_sync: Wait for proper events when connecting LE
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 22 Dec 2021 20:21:58 +0000 (12:21 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Dec 2021 22:01:35 +0000 (23:01 +0100)
commit6cd29ec6ae5e3694b779e02da9f3e50ae4398b59
tree3cd59b4859e26e581c5bf9aa3fd9b24bc2a9d95e
parent85b56857e194635b772be8af1c7650535d5d112a
Bluetooth: hci_sync: Wait for proper events when connecting LE

When using HCI_OP_LE_CREATE_CONN wait for HCI_EV_LE_CONN_COMPLETE before
completing it and for HCI_OP_LE_EXT_CREATE_CONN wait for
HCI_EV_LE_ENHANCED_CONN_COMPLETE before resuming advertising.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_sync.c