]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: HCI: Set extended advertising data synchronously
authorChristian Eggers <ceggers@arri.de>
Fri, 27 Jun 2025 07:05:08 +0000 (09:05 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 27 Jun 2025 18:01:20 +0000 (14:01 -0400)
commit89fb8acc38852116d38d721ad394aad7f2871670
tree5cc92c47e347c9c7c5af17bbd8c188852f174d2e
parentf3cb5676e5c11c896ba647ee309a993e73531588
Bluetooth: HCI: Set extended advertising data synchronously

Currently, for controllers with extended advertising, the advertising
data is set in the asynchronous response handler for extended
adverstising params. As most advertising settings are performed in a
synchronous context, the (asynchronous) setting of the advertising data
is done too late (after enabling the advertising).

Move setting of adverstising data from asynchronous response handler
into synchronous context to fix ordering of HCI commands.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Fixes: a0fb3726ba55 ("Bluetooth: Use Set ext adv/scan rsp data if controller supports")
Cc: stable@vger.kernel.org
v2: https://lore.kernel.org/linux-bluetooth/20250626115209.17839-1-ceggers@arri.de/
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_event.c
net/bluetooth/hci_sync.c