Skip to content

Commit 35c025f

Browse files
Johan HedbergAnas Nashif
authored andcommitted
Bluetooth: Mesh: Fix missing initialization of bt_mesh.local_queue
The local_queue was never being initialized. Signed-off-by: Johan Hedberg <[email protected]>
1 parent 439fbdd commit 35c025f

File tree

1 file changed

+1
-0
lines changed
  • subsys/bluetooth/host/mesh

1 file changed

+1
-0
lines changed

subsys/bluetooth/host/mesh/net.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ static u16_t msg_cache_next;
6868

6969
/* Singleton network context (the implementation only supports one) */
7070
struct bt_mesh_net bt_mesh = {
71+
.local_queue = _K_FIFO_INITIALIZER(bt_mesh.local_queue),
7172
.sub = {
7273
[0 ... (CONFIG_BT_MESH_SUBNET_COUNT - 1)] = {
7374
.net_idx = BT_MESH_KEY_UNUSED,

0 commit comments

Comments
 (0)