ath9k: Make sure to zero status.tx_time before reporting TX status
[platform/kernel/linux-rpi.git] / drivers / net / wireless / ath / ath9k / xmit.c
index 06e0c5a..773d428 100644 (file)
@@ -2552,6 +2552,9 @@ static void ath_tx_rc_status(struct ath_softc *sc, struct ath_buf *bf,
        }
 
        tx_info->status.rates[tx_rateindex].count = ts->ts_longretry + 1;
+
+       /* we report airtime in ath_tx_count_airtime(), don't report twice */
+       tx_info->status.tx_time = 0;
 }
 
 static void ath_tx_processq(struct ath_softc *sc, struct ath_txq *txq)