aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-09-10 20:45:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-09-15 16:48:24 -0400
commit323ce79a9cdbf838ea577677b1ddace8e0b4d4c6 (patch)
treef14a67ec7927865dc1537b2c3a4fb20c0325f517 /drivers/net/wireless/iwlwifi/iwl-agn-rs.c
parentb7e35008815a1c39123f4dd53b430788e2e18da4 (diff)
mac80211: share sta->supp_rates
As more preparation for a saner rate control algorithm API, share the supported rates bitmap in the public API. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rs.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-rs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
index 54f076bb2022..f7191a9a7fb7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-rs.c
@@ -1731,7 +1731,7 @@ static void rs_rate_scale_perform(struct iwl_priv *priv,
1731 return; 1731 return;
1732 1732
1733 lq_sta = (struct iwl_lq_sta *)sta->rate_ctrl_priv; 1733 lq_sta = (struct iwl_lq_sta *)sta->rate_ctrl_priv;
1734 lq_sta->supp_rates = sta->supp_rates[lq_sta->band]; 1734 lq_sta->supp_rates = sta->sta.supp_rates[lq_sta->band];
1735 1735
1736 tid = rs_tl_add_packet(lq_sta, hdr); 1736 tid = rs_tl_add_packet(lq_sta, hdr);
1737 1737
@@ -2233,7 +2233,7 @@ static void rs_rate_init(void *priv_rate, void *priv_sta,
2233 sband = local->hw.wiphy->bands[local->hw.conf.channel->band]; 2233 sband = local->hw.wiphy->bands[local->hw.conf.channel->band];
2234 2234
2235 lq_sta->flush_timer = 0; 2235 lq_sta->flush_timer = 0;
2236 lq_sta->supp_rates = sta->supp_rates[sband->band]; 2236 lq_sta->supp_rates = sta->sta.supp_rates[sband->band];
2237 sta->txrate_idx = 3; 2237 sta->txrate_idx = 3;
2238 for (j = 0; j < LQ_SIZE; j++) 2238 for (j = 0; j < LQ_SIZE; j++)
2239 for (i = 0; i < IWL_RATE_COUNT; i++) 2239 for (i = 0; i < IWL_RATE_COUNT; i++)
@@ -2270,7 +2270,7 @@ static void rs_rate_init(void *priv_rate, void *priv_sta,
2270 2270
2271 /* Find highest tx rate supported by hardware and destination station */ 2271 /* Find highest tx rate supported by hardware and destination station */
2272 for (i = 0; i < sband->n_bitrates; i++) 2272 for (i = 0; i < sband->n_bitrates; i++)
2273 if (sta->supp_rates[sband->band] & BIT(i)) 2273 if (sta->sta.supp_rates[sband->band] & BIT(i))
2274 sta->txrate_idx = i; 2274 sta->txrate_idx = i;
2275 2275
2276 lq_sta->last_txrate_idx = sta->txrate_idx; 2276 lq_sta->last_txrate_idx = sta->txrate_idx;