Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202881
b: refs/heads/master
c: 02cd8de
h: refs/heads/master
i:
  202879: ad9a131
v: v3
  • Loading branch information
Daniel Halperin authored and Reinette Chatre committed Jun 6, 2010
1 parent b0d494e commit ee1686c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 18ab9f1ea615a1beae2ef3364e732a990e02d9ea
refs/heads/master: 02cd8dee6e10d6ab7161a3c6f36a60f8894fafdd
13 changes: 8 additions & 5 deletions trunk/drivers/net/wireless/iwlwifi/iwl-agn-tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ static int iwlagn_tx_status_reply_compressed_ba(struct iwl_priv *priv,
int i, sh, ack;
u16 seq_ctl = le16_to_cpu(ba_resp->seq_ctl);
u16 scd_flow = le16_to_cpu(ba_resp->scd_flow);
u64 bitmap;
u64 bitmap, sent_bitmap;
int successes = 0;
struct ieee80211_tx_info *info;

Expand Down Expand Up @@ -1236,16 +1236,19 @@ static int iwlagn_tx_status_reply_compressed_ba(struct iwl_priv *priv,

/* check for success or failure according to the
* transmitted bitmap and block-ack bitmap */
bitmap &= agg->bitmap;
sent_bitmap = bitmap & agg->bitmap;

/* For each frame attempted in aggregation,
* update driver's record of tx frame's status. */
for (i = 0; i < agg->frame_count ; i++) {
ack = bitmap & (1ULL << i);
successes += !!ack;
i = 0;
while (sent_bitmap) {
ack = sent_bitmap & 1ULL;
successes += ack;
IWL_DEBUG_TX_REPLY(priv, "%s ON i=%d idx=%d raw=%d\n",
ack ? "ACK" : "NACK", i, (agg->start_idx + i) & 0xff,
agg->start_idx + i);
sent_bitmap >>= 1;
++i;
}

info = IEEE80211_SKB_CB(priv->txq[scd_flow].txb[agg->start_idx].skb);
Expand Down

0 comments on commit ee1686c

Please sign in to comment.