: ir240_irtty_stats.diff
PATCH 1/1 : ir240_irtty_stats.diff
ir240_irtty_stats.diff :
----------------------
<Following patch from Frank Becker>
o [FEATURE] Update dev tx stats at the right time
drivers/net/irda/irtty.c renamed from drivers/net/irda/irtty.d5.c +2 -2
@@ -714,8 +714,6 @@ static void irtty_write_wakeup(struct tt self->tx_buff.data += actual; self->tx_buff.len -= actual; - - self->stats.tx_packets++; }else {/* * Now serial buffer is almost free & we can start
@@ -723,6 +721,8 @@ static void irtty_write_wakeup(struct tt*/ IRDA_DEBUG (5 , __FUNCTION__"(), finished with frame!\n" ); + self->stats.tx_packets++; + tty->flags &= ~(1 <<TTY_DO_WRITE_WAKEUP );if (self->new_speed) {