mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
Bluetooth: mgmt: Fix wrong opcode in the response for add_adv cmd
[ Upstream commita25fca4d3c] This patch fixes the MGMT add_advertising command repsones with the wrong opcode when it is trying to return the not supported error. Fixes:cbbdfa6f33("Bluetooth: Enable controller RPA resolution using Experimental feature") Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bca46d2283
commit
61b1db2358
@@ -7464,7 +7464,7 @@ static int add_advertising(struct sock *sk, struct hci_dev *hdev,
|
|||||||
* advertising.
|
* advertising.
|
||||||
*/
|
*/
|
||||||
if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY))
|
if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY))
|
||||||
return mgmt_cmd_status(sk, hdev->id, MGMT_OP_SET_ADVERTISING,
|
return mgmt_cmd_status(sk, hdev->id, MGMT_OP_ADD_ADVERTISING,
|
||||||
MGMT_STATUS_NOT_SUPPORTED);
|
MGMT_STATUS_NOT_SUPPORTED);
|
||||||
|
|
||||||
if (cp->instance < 1 || cp->instance > hdev->le_num_of_adv_sets)
|
if (cp->instance < 1 || cp->instance > hdev->le_num_of_adv_sets)
|
||||||
|
|||||||
Reference in New Issue
Block a user