Skip to content

Commit 1a6df1e

Browse files
committed
Reduce TX packet counter in case interface is not active
1 parent a784a33 commit 1a6df1e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/csp_if_cblk.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ int csp_if_cblk_tx(csp_iface_t * iface, uint16_t via, csp_packet_t *packet, int
4545

4646
if (ifdata->cblk_tx_is_active != NULL && !ifdata->cblk_tx_is_active(iface)) {
4747

48+
iface->tx--;
49+
iface->txbytes -= packet->length;
4850
if (from_me) {
4951
forward_other_ifcs(iface, packet);
5052
} else {

0 commit comments

Comments
 (0)