Hi Luiz, > When using hci_le_create_conn_sync it shall wait for the conn_timeout > since the connection complete may take longer than just 2 seconds. > > Also fix the masking of HCI_EV_LE_ENHANCED_CONN_COMPLETE and > HCI_EV_LE_CONN_COMPLETE so they are never both set so we can predict > which one the controller will use in case of HCI_OP_LE_CREATE_CONN. > > Fixes: 6cd29ec6ae5e3 ("Bluetooth: hci_sync: Wait for proper events when connecting LE") > Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> > --- > v2: Add use_enhanced_conn_complete and include comments regarding when the use > of HCI_EV_LE_ENHANCED_CONN_COMPLETE. > > include/net/bluetooth/hci_core.h | 8 ++++++++ > net/bluetooth/hci_sync.c | 21 +++++++++++++++------ > 2 files changed, 23 insertions(+), 6 deletions(-) patch has been applied to bluetooth-stable tree. Regards Marcel