Skip to content

Commit 1050ef7

Browse files
Maximus Liujhedberg
authored andcommitted
Bluetooth: Mesh: Fixes seg_tx_reset adv buf unref
In seg_tx_reset() in transport.c, set the busy flag to 0U before doing adv buf unref, which will avoid sending unnecessary adv packets in case the adv buf is already put in the mesh adv_queue. Fixes #20970 Signed-off-by: Maximus Liu <[email protected]>
1 parent 516525f commit 1050ef7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/bluetooth/mesh/transport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ static void seg_tx_reset(struct seg_tx *tx)
204204
continue;
205205
}
206206

207+
BT_MESH_ADV(tx->seg[i])->busy = 0U;
207208
net_buf_unref(tx->seg[i]);
208209
tx->seg[i] = NULL;
209210
}

0 commit comments

Comments
 (0)