Bluetooth: Fix not sending Set Extended Scan Response
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 14 Nov 2020 00:44:33 +0000 (16:44 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:30 +0000 (16:56 +0200)
commitc5fedfcc2046ab8b67befdf78ebd34ad561088b3
treec657c894f94a3e88f90d11a83ce0ceba9273c6ab
parenta2dcad039e45713c45168be53ebace6e1e0cfd0a
Bluetooth: Fix not sending Set Extended Scan Response

[ Upstream commit a76a0d365077711594ce200a9553ed6d1ff40276 ]

Current code is actually failing on the following tests of mgmt-tester
because get_adv_instance_scan_rsp_len did not account for flags that
cause scan response data to be included resulting in non-scannable
instance when in fact it should be scannable.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bluetooth/hci_request.c