]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Bluetooth: hci_sync: Fix not using correct handle
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 15 May 2024 14:32:01 +0000 (10:32 -0400)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Fri, 2 Aug 2024 14:27:06 +0000 (16:27 +0200)
commit208ff27e9b167ac2faf9a60f6e5f4a980240bd9d
treee31d31259a07deb442e5a6d09446c21d9a3056e5
parent8281e1dd31c78f12e2eaa4917c4080550f423dd1
Bluetooth: hci_sync: Fix not using correct handle

BugLink: https://bugs.launchpad.net/bugs/2074091
[ Upstream commit 86fbd9f63a6b42b8f158361334f5a25762aea358 ]

When setting up an advertisement the code shall always attempt to use
the handle set by the instance since it may not be equal to the instance
ID.

Fixes: e77f43d531af ("Bluetooth: hci_core: Fix not handling hdev->le_num_of_adv_sets=1")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Portia Stephens <portia.stephens@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
net/bluetooth/hci_sync.c