]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jul 2025 06:51:55 +0000 (08:51 +0200)
commit0e8776b3d465a982d0b80678f240be5e9f07b552
tree1750883c2016422a605bf9df4c107d37a8f4989e
parent15e07dd5574cf656f24449b2162c0f681dd255ae
Bluetooth: HCI: Set extended advertising data synchronously

commit 89fb8acc38852116d38d721ad394aad7f2871670 upstream.

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>
[ Adapted DEFINE_FLEX macro usage to struct with flexible array member for compatibility with kernel 6.1. ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/hci_event.c
net/bluetooth/hci_sync.c