Skip to content

Commit f3cb567

Browse files
ceggers-arriVudentz
authored andcommitted
Bluetooth: MGMT: mesh_send: check instances prior disabling advertising
The unconditional call of hci_disable_advertising_sync() in mesh_send_done_sync() also disables other LE advertisings (non mesh related). I am not sure whether this call is required at all, but checking the adv_instances list (like done at other places) seems to solve the problem. Fixes: b338d91 ("Bluetooth: Implement support for Mesh") Cc: [email protected] Signed-off-by: Christian Eggers <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent e5af67a commit f3cb567

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/bluetooth/mgmt.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,8 @@ static int mesh_send_done_sync(struct hci_dev *hdev, void *data)
10801080
struct mgmt_mesh_tx *mesh_tx;
10811081

10821082
hci_dev_clear_flag(hdev, HCI_MESH_SENDING);
1083-
hci_disable_advertising_sync(hdev);
1083+
if (list_empty(&hdev->adv_instances))
1084+
hci_disable_advertising_sync(hdev);
10841085
mesh_tx = mgmt_mesh_next(hdev, NULL);
10851086

10861087
if (mesh_tx)

0 commit comments

Comments
 (0)