aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Antipov <[email protected]>2025-05-20 08:42:30 +0000
committerLuiz Augusto von Dentz <[email protected]>2025-05-22 17:06:11 +0000
commit3bb88524b7d030160bb3c9b35f928b2778092111 (patch)
treec879e5fde3086078c810a4cf518d00c8adf154df
parentBluetooth: btusb: Add new VID/PID 13d3/3584 for MT7922 (diff)
downloadkernel-3bb88524b7d030160bb3c9b35f928b2778092111.tar.gz
kernel-3bb88524b7d030160bb3c9b35f928b2778092111.zip
Bluetooth: MGMT: iterate over mesh commands in mgmt_mesh_foreach()
In 'mgmt_mesh_foreach()', iterate over mesh commands rather than generic mgmt ones. Compile tested only. Fixes: b338d91703fa ("Bluetooth: Implement support for Mesh") Signed-off-by: Dmitry Antipov <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
-rw-r--r--net/bluetooth/mgmt_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt_util.c b/net/bluetooth/mgmt_util.c
index e5ff65e424b5..3713ff490c65 100644
--- a/net/bluetooth/mgmt_util.c
+++ b/net/bluetooth/mgmt_util.c
@@ -304,7 +304,7 @@ void mgmt_mesh_foreach(struct hci_dev *hdev,
{
struct mgmt_mesh_tx *mesh_tx, *tmp;
- list_for_each_entry_safe(mesh_tx, tmp, &hdev->mgmt_pending, list) {
+ list_for_each_entry_safe(mesh_tx, tmp, &hdev->mesh_pending, list) {
if (!sk || mesh_tx->sk == sk)
cb(mesh_tx, data);
}