diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rs.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c index 3870b723c8c2..356762f21d2f 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c | |||
@@ -297,10 +297,10 @@ static u8 rs_tl_add_packet(struct iwl_lq_sta *lq_data, | |||
297 | u8 *qc = ieee80211_get_qos_ctl(hdr); | 297 | u8 *qc = ieee80211_get_qos_ctl(hdr); |
298 | tid = qc[0] & 0xf; | 298 | tid = qc[0] & 0xf; |
299 | } else | 299 | } else |
300 | return MAX_TID_COUNT; | 300 | return IWL_MAX_TID_COUNT; |
301 | 301 | ||
302 | if (unlikely(tid >= TID_MAX_LOAD_COUNT)) | 302 | if (unlikely(tid >= TID_MAX_LOAD_COUNT)) |
303 | return MAX_TID_COUNT; | 303 | return IWL_MAX_TID_COUNT; |
304 | 304 | ||
305 | tl = &lq_data->load[tid]; | 305 | tl = &lq_data->load[tid]; |
306 | 306 | ||
@@ -313,7 +313,7 @@ static u8 rs_tl_add_packet(struct iwl_lq_sta *lq_data, | |||
313 | tl->queue_count = 1; | 313 | tl->queue_count = 1; |
314 | tl->head = 0; | 314 | tl->head = 0; |
315 | tl->packet_count[0] = 1; | 315 | tl->packet_count[0] = 1; |
316 | return MAX_TID_COUNT; | 316 | return IWL_MAX_TID_COUNT; |
317 | } | 317 | } |
318 | 318 | ||
319 | time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); | 319 | time_diff = TIME_WRAP_AROUND(tl->time_stamp, curr_time); |
@@ -2261,7 +2261,7 @@ static void rs_rate_scale_perform(struct iwl_priv *priv, | |||
2261 | u8 done_search = 0; | 2261 | u8 done_search = 0; |
2262 | u16 high_low; | 2262 | u16 high_low; |
2263 | s32 sr; | 2263 | s32 sr; |
2264 | u8 tid = MAX_TID_COUNT; | 2264 | u8 tid = IWL_MAX_TID_COUNT; |
2265 | struct iwl_tid_data *tid_data; | 2265 | struct iwl_tid_data *tid_data; |
2266 | struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; | 2266 | struct iwl_station_priv *sta_priv = (void *)sta->drv_priv; |
2267 | struct iwl_rxon_context *ctx = sta_priv->common.ctx; | 2267 | struct iwl_rxon_context *ctx = sta_priv->common.ctx; |
@@ -2280,8 +2280,9 @@ static void rs_rate_scale_perform(struct iwl_priv *priv, | |||
2280 | lq_sta->supp_rates = sta->supp_rates[lq_sta->band]; | 2280 | lq_sta->supp_rates = sta->supp_rates[lq_sta->band]; |
2281 | 2281 | ||
2282 | tid = rs_tl_add_packet(lq_sta, hdr); | 2282 | tid = rs_tl_add_packet(lq_sta, hdr); |
2283 | if ((tid != MAX_TID_COUNT) && (lq_sta->tx_agg_tid_en & (1 << tid))) { | 2283 | if ((tid != IWL_MAX_TID_COUNT) && |
2284 | tid_data = &priv->stations[lq_sta->lq.sta_id].tid[tid]; | 2284 | (lq_sta->tx_agg_tid_en & (1 << tid))) { |
2285 | tid_data = &priv->shrd->tid_data[lq_sta->lq.sta_id][tid]; | ||
2285 | if (tid_data->agg.state == IWL_AGG_OFF) | 2286 | if (tid_data->agg.state == IWL_AGG_OFF) |
2286 | lq_sta->is_agg = 0; | 2287 | lq_sta->is_agg = 0; |
2287 | else | 2288 | else |
@@ -2651,9 +2652,10 @@ lq_update: | |||
2651 | iwl_ht_enabled(priv)) { | 2652 | iwl_ht_enabled(priv)) { |
2652 | if ((lq_sta->last_tpt > IWL_AGG_TPT_THREHOLD) && | 2653 | if ((lq_sta->last_tpt > IWL_AGG_TPT_THREHOLD) && |
2653 | (lq_sta->tx_agg_tid_en & (1 << tid)) && | 2654 | (lq_sta->tx_agg_tid_en & (1 << tid)) && |
2654 | (tid != MAX_TID_COUNT)) { | 2655 | (tid != IWL_MAX_TID_COUNT)) { |
2656 | u8 sta_id = lq_sta->lq.sta_id; | ||
2655 | tid_data = | 2657 | tid_data = |
2656 | &priv->stations[lq_sta->lq.sta_id].tid[tid]; | 2658 | &priv->shrd->tid_data[sta_id][tid]; |
2657 | if (tid_data->agg.state == IWL_AGG_OFF) { | 2659 | if (tid_data->agg.state == IWL_AGG_OFF) { |
2658 | IWL_DEBUG_RATE(priv, | 2660 | IWL_DEBUG_RATE(priv, |
2659 | "try to aggregate tid %d\n", | 2661 | "try to aggregate tid %d\n", |