Commit c2ce2145 authored by Li Qiong's avatar Li Qiong Committed by Kalle Valo
parent 14a3aacf
...@@ -1880,7 +1880,7 @@ static inline void mwl8k_tx_count_packet(struct ieee80211_sta *sta, u8 tid) ...@@ -1880,7 +1880,7 @@ static inline void mwl8k_tx_count_packet(struct ieee80211_sta *sta, u8 tid)
* packets ever exceeds the ampdu_min_traffic threshold, we will allow * packets ever exceeds the ampdu_min_traffic threshold, we will allow
* an ampdu stream to be started. * an ampdu stream to be started.
*/ */
if (jiffies - tx_stats->start_time > HZ) { if (time_after(jiffies, (unsigned long)tx_stats->start_time + HZ)) {
tx_stats->pkts = 0; tx_stats->pkts = 0;
tx_stats->start_time = 0; tx_stats->start_time = 0;
} else } else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment