Bluetooth: hci_sync: Fix handling of HCI_OP_CREATE_CONN_CANCEL
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 3 Aug 2023 04:08:53 +0000 (21:08 -0700)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 11 Aug 2023 18:53:10 +0000 (11:53 -0700)
commit094e3639623ee3b8a043e2b5285498b036a4dc09
treed94c7d351683d553ffeaa2a6a8b9302ec3d6b5da
parent2889bdd0a9a195533c2103e7b39ab0de844d72f6
Bluetooth: hci_sync: Fix handling of HCI_OP_CREATE_CONN_CANCEL

When sending HCI_OP_CREATE_CONN_CANCEL it shall Wait for
HCI_EV_CONN_COMPLETE, not HCI_EV_CMD_STATUS, when the reason is
anything but HCI_ERROR_REMOTE_POWER_OFF. This reason is used when
suspending or powering off, where we don't want to wait for the peer's
response.

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