Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215312
b: refs/heads/master
c: 15d46f3
h: refs/heads/master
v: v3
  • Loading branch information
Björn Smedman authored and John W. Linville committed Oct 11, 2010
1 parent 389ff26 commit 18e4820
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 730bd83b036e72b0134352ca27e76ea08475fbf1
refs/heads/master: 15d46f38df87f89242e470f5797120fa384c1fc3
7 changes: 4 additions & 3 deletions trunk/net/mac80211/rc80211_minstrel_ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,9 @@ minstrel_ht_tx_status(void *priv, struct ieee80211_supported_band *sband,
!(info->flags & IEEE80211_TX_STAT_AMPDU))
return;

if (!info->status.ampdu_len) {
info->status.ampdu_ack_len = 1;
if (!(info->flags & IEEE80211_TX_STAT_AMPDU)) {
info->status.ampdu_ack_len =
(info->flags & IEEE80211_TX_STAT_ACK ? 1 : 0);
info->status.ampdu_len = 1;
}

Expand Down Expand Up @@ -426,7 +427,7 @@ minstrel_ht_tx_status(void *priv, struct ieee80211_supported_band *sband,
group = minstrel_ht_get_group_idx(&ar[i]);
rate = &mi->groups[group].rates[ar[i].idx % 8];

if (last && (info->flags & IEEE80211_TX_STAT_ACK))
if (last)
rate->success += info->status.ampdu_ack_len;

rate->attempts += ar[i].count * info->status.ampdu_len;
Expand Down

0 comments on commit 18e4820

Please sign in to comment.