summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorYun-Hao Chung <howardchung@chromium.org>2021-09-27 19:58:01 +0800
committerMarcel Holtmann <marcel@holtmann.org>2021-09-28 10:01:49 +0200
commit4139ff0083302692d44037dd38ca9894979a2bb6 (patch)
treee52992ee412af4beb75f20deed7b07999ba6df90 /net
parentce81843be24e9d5deb0db0784815efe84c9e3f22 (diff)
downloadlinux-4139ff0083302692d44037dd38ca9894979a2bb6.tar.bz2
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: Yun-Hao Chung <howardchung@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 4d450c6f2140..a6aeefd2c14f 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -8469,7 +8469,7 @@ static int remove_advertising(struct sock *sk, struct hci_dev *hdev,
* advertising.
*/
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);
hci_dev_lock(hdev);