Merge pull request #16091 from maribu/tx_sync_frag_bugfix
sys/net/gnrc: fix logic bug in gnrc_tx_sync implementation
This commit is contained in:
commit
f3871c06e7
@ -292,16 +292,16 @@ void gnrc_sixlowpan_frag_send(gnrc_pktsnip_t *pkt, void *ctx, unsigned page)
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
fbuf->offset += res;
|
fbuf->offset += res;
|
||||||
if (IS_USED(MODULE_GNRC_TX_SYNC) && tx_sync) {
|
|
||||||
/* re-attach tx_sync to allow releasing it at end
|
|
||||||
* of transmission, or transmission failure */
|
|
||||||
gnrc_pkt_append((pkt) ? pkt : fbuf->pkt, tx_sync);
|
|
||||||
}
|
|
||||||
if (!gnrc_sixlowpan_frag_fb_send(fbuf)) {
|
if (!gnrc_sixlowpan_frag_fb_send(fbuf)) {
|
||||||
DEBUG("6lo frag: message queue full, can't issue next fragment "
|
DEBUG("6lo frag: message queue full, can't issue next fragment "
|
||||||
"sending\n");
|
"sending\n");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
if (IS_USED(MODULE_GNRC_TX_SYNC) && tx_sync) {
|
||||||
|
/* re-attach tx_sync to allow releasing it at end
|
||||||
|
* of transmission, or transmission failure */
|
||||||
|
gnrc_pkt_append((pkt) ? pkt : fbuf->pkt, tx_sync);
|
||||||
|
}
|
||||||
thread_yield();
|
thread_yield();
|
||||||
return;
|
return;
|
||||||
error:
|
error:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user