Skip to contentSkip to conversation

Bluetooth: Fix wrong opcode error for read advertising features

PATCH Applied Marcel Holtmann 1 participant 1 message Mar 24, 2021

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH v2 4/5 Bluetooth: Fix wrong opcode error for read advertising features

The read advertising features error handling returns false the opcode for the set advertising command.

---
 net/bluetooth/mgmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/mgmt.c +1 -1
index 105d0743735d..2426a0d38c80 100644
@@ -7478,7 +7478,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);
Signature · 1 line
2.30.2