]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/iwlwifi/iwl-3945-rs.c
mac80211: share sta->supp_rates
[linux-2.6-omap-h63xx.git] / drivers / net / wireless / iwlwifi / iwl-3945-rs.c
index 46b672c34585b962a48c7b2dbb83b42f8b5019c2..f751b909759228b3e80462b3f293b4b6e6715480 100644 (file)
@@ -333,7 +333,7 @@ static void rs_rate_init(void *priv_rate, void *priv_sta,
         * after assoc.. */
 
        for (i = IWL_RATE_COUNT - 1; i >= 0; i--) {
-               if (sta->supp_rates[local->hw.conf.channel->band] & (1 << i)) {
+               if (sta->sta.supp_rates[local->hw.conf.channel->band] & (1 << i)) {
                        sta->txrate_idx = i;
                        break;
                }
@@ -680,7 +680,7 @@ static void rs_get_rate(void *priv_rate, struct net_device *dev,
 
        rs_sta = (void *)sta->rate_ctrl_priv;
 
-       rate_mask = sta->supp_rates[sband->band];
+       rate_mask = sta->sta.supp_rates[sband->band];
        index = min(rs_sta->last_txrate_idx & 0xffff, IWL_RATE_COUNT - 1);
 
        if (sband->band == IEEE80211_BAND_5GHZ)