projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
353cac0
)
Bluetooth: Fix wrong opcode error for read advertising features
author
Marcel Holtmann
<marcel@holtmann.org>
Sun, 14 Mar 2021 13:56:08 +0000
(14:56 +0100)
committer
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Fri, 26 Mar 2021 19:58:13 +0000
(12:58 -0700)
The read advertising features error handling returns false the opcode
for the set advertising command.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/mgmt.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/mgmt.c
b/net/bluetooth/mgmt.c
index
3df6f9c
..
51c7e64
100644
(file)
--- a/
net/bluetooth/mgmt.c
+++ b/
net/bluetooth/mgmt.c
@@
-7476,7
+7476,7
@@
static int read_adv_features(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_
READ_ADV_FEATURES
,
MGMT_STATUS_NOT_SUPPORTED);
hci_dev_lock(hdev);