]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/ath9k/rc.c
mac80211: share sta->supp_rates
[linux-2.6-omap-h63xx.git] / drivers / net / wireless / ath9k / rc.c
index 390019ed398ee6a533ec8ac33638fdb2dc85dda1..226d70c73fe65f6300538ef02f642498da654629 100644 (file)
@@ -1825,7 +1825,7 @@ static void ath_setup_rates(struct ieee80211_local *local, struct sta_info *sta)
 
        sband =  local->hw.wiphy->bands[local->hw.conf.channel->band];
        for (i = 0; i < sband->n_bitrates; i++) {
-               if (sta->supp_rates[local->hw.conf.channel->band] & BIT(i)) {
+               if (sta->sta.supp_rates[local->hw.conf.channel->band] & BIT(i)) {
                        rc_priv->neg_rates.rs_rates[j]
                                = (sband->bitrates[i].bitrate * 2) / 10;
                        j++;