]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/net/wireless/ath/ath9k/rc.c
Merge remote branch 'keithp/drm-intel-fixes' of /ssd/git/drm-next into drm-fixes
[karo-tx-linux.git] / drivers / net / wireless / ath / ath9k / rc.c
index 960d717ca7c2458ea25788239c9fb4f25c19d41a..a3241cd089b1db84cf60e2d92961dd6426ed9eb7 100644 (file)
@@ -1328,7 +1328,7 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband,
 
        hdr = (struct ieee80211_hdr *)skb->data;
        fc = hdr->frame_control;
-       for (i = 0; i < IEEE80211_TX_MAX_RATES; i++) {
+       for (i = 0; i < sc->hw->max_rates; i++) {
                struct ieee80211_tx_rate *rate = &tx_info->status.rates[i];
                if (!rate->count)
                        break;