|
@@ -1673,11 +1673,9 @@ ieee80211_rx_h_ctrl(struct ieee80211_rx_data *rx)
|
|
start_seq_num = le16_to_cpu(bar->start_seq_num) >> 4;
|
|
start_seq_num = le16_to_cpu(bar->start_seq_num) >> 4;
|
|
|
|
|
|
/* reset session timer */
|
|
/* reset session timer */
|
|
- if (tid_agg_rx->timeout) {
|
|
|
|
- unsigned long expires =
|
|
|
|
- jiffies + (tid_agg_rx->timeout / 1000) * HZ;
|
|
|
|
- mod_timer(&tid_agg_rx->session_timer, expires);
|
|
|
|
- }
|
|
|
|
|
|
+ if (tid_agg_rx->timeout)
|
|
|
|
+ mod_timer(&tid_agg_rx->session_timer,
|
|
|
|
+ TU_TO_EXP_TIME(tid_agg_rx->timeout));
|
|
|
|
|
|
/* manage reordering buffer according to requested */
|
|
/* manage reordering buffer according to requested */
|
|
/* sequence number */
|
|
/* sequence number */
|
|
@@ -2414,11 +2412,9 @@ static u8 ieee80211_rx_reorder_ampdu(struct ieee80211_local *local,
|
|
/* new un-ordered ampdu frame - process it */
|
|
/* new un-ordered ampdu frame - process it */
|
|
|
|
|
|
/* reset session timer */
|
|
/* reset session timer */
|
|
- if (tid_agg_rx->timeout) {
|
|
|
|
- unsigned long expires =
|
|
|
|
- jiffies + (tid_agg_rx->timeout / 1000) * HZ;
|
|
|
|
- mod_timer(&tid_agg_rx->session_timer, expires);
|
|
|
|
- }
|
|
|
|
|
|
+ if (tid_agg_rx->timeout)
|
|
|
|
+ mod_timer(&tid_agg_rx->session_timer,
|
|
|
|
+ TU_TO_EXP_TIME(tid_agg_rx->timeout));
|
|
|
|
|
|
/* if this mpdu is fragmented - terminate rx aggregation session */
|
|
/* if this mpdu is fragmented - terminate rx aggregation session */
|
|
sc = le16_to_cpu(hdr->seq_ctrl);
|
|
sc = le16_to_cpu(hdr->seq_ctrl);
|