]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Bluetooth: MGMT: Fix failing to MGMT_OP_ADD_UUID/MGMT_OP_REMOVE_UUID
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 16 Apr 2024 19:34:45 +0000 (15:34 -0400)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 24 Apr 2024 20:26:14 +0000 (16:26 -0400)
commit6eb5fcc416f127f220b9177a5c9ae751cac1cda8
treed29d5ddc957639f0449478a39a8f2a4b82a49161
parent32868e126c78876a8a5ddfcb6ac8cb2fffcf4d27
Bluetooth: MGMT: Fix failing to MGMT_OP_ADD_UUID/MGMT_OP_REMOVE_UUID

These commands don't require the adapter to be up and running so don't
use hci_cmd_sync_queue which would check that flag, instead use
hci_cmd_sync_submit which would ensure mgmt_class_complete is set
properly regardless if any command was actually run or not.

Link: https://github.com/bluez/bluez/issues/809
Fixes: d883a4669a1d ("Bluetooth: hci_sync: Only allow hci_cmd_sync_queue if running")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/mgmt.c