Commit 4139ff00 authored by Yun-Hao Chung's avatar Yun-Hao Chung Committed by Marcel Holtmann

Bluetooth: Fix wrong opcode when LL privacy enabled

The returned opcode of command status of remove_adv is
wrong when LL privacy is enabled.
Signed-off-by: default avatarYun-Hao Chung <howardchung@chromium.org>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent ce81843b
...@@ -8469,7 +8469,7 @@ static int remove_advertising(struct sock *sk, struct hci_dev *hdev, ...@@ -8469,7 +8469,7 @@ static int remove_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_REMOVE_ADVERTISING,
MGMT_STATUS_NOT_SUPPORTED); MGMT_STATUS_NOT_SUPPORTED);
hci_dev_lock(hdev); hci_dev_lock(hdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment