Skip to contentSkip to conversation

pull-request: iwlwifi-fixes 2013-01-16

PATCH New Johannes Berg 1 participant 2 messages Jan 16, 2013 Networking drivers (wireless)

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

John,

Please pull to get a single fix from Emmanuel for a bug I introduced due to misunderstanding the code.

Thanks,
johannes

The following changes since commit f590dcec944552f9a4a61155810f3abd17d6465d:

iwlwifi: fix the reclaimed packet tracking upon flush queue (2013-01-03 15:31:15 +0100)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.git for-john

for you to fetch changes up to c3e5d7181afb66657393066bccce0956fab09ab3:

iwlwifi: audit single frames from AGG queue in RS (2013-01-16 14:20:20 +0100)

----------------------------------------------------------------
Emmanuel Grumbach (1):
iwlwifi: audit single frames from AGG queue in RS

 drivers/net/wireless/iwlwifi/dvm/tx.c | 2 ++
 1 file changed, 2 insertions(+)
author maintainer
#1 lore raw

PATCH 1/1 iwlwifi: audit single frames from AGG queue in RS

From: Emmanuel Grumbach <[email protected]>

The rate scaling won't treat the information in a frame with IEEE80211_TX_CTL_AMPDU set if IEEE80211_TX_STAT_AMPDU is cleared. But all the frames coming from an AGG tx queue have IEEE80211_TX_CTL_AMPDU set, and IEEE80211_TX_STAT_AMPDU is set only if the frame was sent in an AMPDU. This means that all the data in frames in AGG tx queues that aren't sent as an AMPDU is thrown away.
This is even more harmful when in bad link conditions, the frames are sent in an AMPDU and then finally sent as single frame. So a lot of failures weren't reported and the rate scaling got stuck in high rates leading to very poor connectivity.

Fix that by clearing IEEE80211_TX_CTL_AMPDU when the frame isn't part of an AMPDU.

This bug was introduced by

2eb81a40aa521035ff9c8c8309e482dff523f8c9
iwlwifi: don't clear CTL_AMPDU on frame status

This fix basically reverts the aforementioned commit.

---
 drivers/net/wireless/iwlwifi/dvm/tx.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/wireless/iwlwifi/dvm/tx.c +2 -0
index a790599..31534f7 100644
@@ -1079,6 +1079,8 @@ static void iwlagn_set_tx_status(struct iwl_priv *priv,
 {
 	u16 status = le16_to_cpu(tx_resp->status.status);
 
+	info->flags &= ~IEEE80211_TX_CTL_AMPDU;
+
 	info->status.rates[0].count = tx_resp->failure_frame + 1;
 	info->flags |= iwl_tx_status_to_mac80211(status);
 	iwlagn_hwrate_to_tx_control(priv, le32_to_cpu(tx_resp->rate_n_flags),
Signature · 1 line
1.8.0