Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327530
b: refs/heads/master
c: c161011
h: refs/heads/master
v: v3
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Aug 10, 2012
1 parent 1d4f0c7 commit 71cd5b2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e546755b947c08cdc1c4f2bdba70130c6ed0736
refs/heads/master: c1610117f81ae70b49aaf51ccb9040f2ce5bd358
24 changes: 11 additions & 13 deletions trunk/drivers/net/wireless/ath/ath9k/rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1264,23 +1264,12 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband,
struct ath_softc *sc = priv;
struct ath_rate_priv *ath_rc_priv = priv_sta;
struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
struct ieee80211_hdr *hdr;
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
int final_ts_idx = 0, tx_status = 0;
int long_retry = 0;
__le16 fc;
__le16 fc = hdr->frame_control;
int i;

hdr = (struct ieee80211_hdr *)skb->data;
fc = hdr->frame_control;
for (i = 0; i < sc->hw->max_rates; i++) {
struct ieee80211_tx_rate *rate = &tx_info->status.rates[i];
if (rate->idx < 0 || !rate->count)
break;

final_ts_idx = i;
long_retry = rate->count - 1;
}

if (!priv_sta || !ieee80211_is_data(fc))
return;

Expand All @@ -1292,6 +1281,15 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband,
if (tx_info->flags & IEEE80211_TX_STAT_TX_FILTERED)
return;

for (i = 0; i < sc->hw->max_rates; i++) {
struct ieee80211_tx_rate *rate = &tx_info->status.rates[i];
if (rate->idx < 0 || !rate->count)
break;

final_ts_idx = i;
long_retry = rate->count - 1;
}

if (!(tx_info->flags & IEEE80211_TX_STAT_ACK))
tx_status = 1;

Expand Down

0 comments on commit 71cd5b2

Please sign in to comment.