Bluetooth: MGMT: iterate over mesh commands in mgmt_mesh_foreach()
[ Upstream commit 3bb88524b7d030160bb3c9b35f928b2778092111 ]
In 'mgmt_mesh_foreach()', iterate over mesh commands
rather than generic mgmt ones. Compile tested only.
Fixes: b338d91703
("Bluetooth: Implement support for Mesh")
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
801677040b
commit
9c73afd7f1
@@ -321,7 +321,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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user