projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce81843
)
Bluetooth: Fix wrong opcode when LL privacy enabled
author
Yun-Hao Chung
<howardchung@chromium.org>
Mon, 27 Sep 2021 11:58:01 +0000
(19:58 +0800)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 28 Sep 2021 08:01:49 +0000
(10:01 +0200)
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>
net/bluetooth/mgmt.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/mgmt.c
b/net/bluetooth/mgmt.c
index 4d450c6f2140921c4b0237ec4757fad825ac779f..a6aeefd2c14f08a958c852acf61ac246999eb518 100644
(file)
--- 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);