source: branches/backfire/package/mac80211/patches/460-ath5k_fix_tx_status_reporting.patch @ 26610

Last change on this file since 26610 was 26610, checked in by nbd, 5 years ago

mac80211: merge latest changes from trunk, fixes #9227

File size: 1.0 KB
  • drivers/net/wireless/ath/ath5k/base.c

    a b ath5k_tx_frame_completed(struct ath5k_so 
    15801580        info = IEEE80211_SKB_CB(skb); 
    15811581 
    15821582        ieee80211_tx_info_clear_status(info); 
    1583         for (i = 0; i < 4; i++) { 
     1583        for (i = 0; i <= ts->ts_final_idx; i++) { 
    15841584                struct ieee80211_tx_rate *r = 
    15851585                        &info->status.rates[i]; 
    15861586 
    1587                 if (ts->ts_rate[i]) { 
    1588                         r->idx = ath5k_hw_to_driver_rix(sc, ts->ts_rate[i]); 
    1589                         r->count = ts->ts_retry[i]; 
    1590                 } else { 
    1591                         r->idx = -1; 
    1592                         r->count = 0; 
    1593                 } 
     1587                r->count = ts->ts_retry[i]; 
    15941588        } 
    15951589 
    1596         /* count the successful attempt as well */ 
    1597         info->status.rates[ts->ts_final_idx].count++; 
     1590        info->status.rates[ts->ts_final_idx + 1].idx = -1; 
    15981591 
    15991592        if (unlikely(ts->ts_status)) { 
    16001593                sc->stats.ack_fail++; 
    ath5k_tx_frame_completed(struct ath5k_so 
    16091602        } else { 
    16101603                info->flags |= IEEE80211_TX_STAT_ACK; 
    16111604                info->status.ack_signal = ts->ts_rssi; 
     1605 
     1606                /* count the successful attempt as well */ 
     1607                info->status.rates[ts->ts_final_idx].count++; 
    16121608        } 
    16131609 
    16141610        /* 
Note: See TracBrowser for help on using the repository browser.