Skip to contentSkip to conversation

iwlagn: workaround bug crashing some APs

PATCH In review Wey-Yi Guy 3 participants 4 messages Sep 15, 2011 – Sep 16, 2011 Networking drivers (wireless)

lore
Share & tools
lore

Wey-Yi Guy

author
#0 lore raw

PATCH 1/1 iwlagn: workaround bug crashing some APs

From: Don Fry <[email protected]>

This patch reverts commit 9b7688328422b88a7a15dc0dc123ad9ab1a6e22d which was introduced in 2.6.38-rc1. It works around a problem where the iwlagn driver stimulates a bug crashing (requiring power cycle to recover) some APs under heavy traffic.

CC [email protected] #2.6.39, #3.0.0 #3.1.0

---
hese patches are also available from wireless-2.6 branch on
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi.git

 drivers/net/wireless/iwlwifi/iwl-agn.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/net/wireless/iwlwifi/iwl-agn.c +5 -0
index 8e1942e..f24165d 100644
@@ -2440,7 +2440,12 @@ static int iwl_mac_setup_register(struct iwl_priv *priv,
 		    IEEE80211_HW_SPECTRUM_MGMT |
 		    IEEE80211_HW_REPORTS_TX_ACK_STATUS;
 
+	/*
+	 * Including the following line will crash some AP's.  This
+	 * workaround removes the stimulus which causes the crash until
+	 * the AP software can be fixed.
 	hw->max_tx_aggregation_subframes = LINK_QUAL_AGG_FRAME_LIMIT_DEF;
+	 */
 
 	hw->flags |= IEEE80211_HW_SUPPORTS_PS |
 		     IEEE80211_HW_SUPPORTS_DYNAMIC_PS;
Signature · 1 line
1.7.0.4
#1 lore raw

Hi,

Quoted 6 lines · Wey-Yi Guy

From: Don Fry <[email protected]>

This patch reverts commit 9b7688328422b88a7a15dc0dc123ad9ab1a6e22d which was introduced in 2.6.38-rc1.  It works around a problem where the iwlagn driver stimulates a bug crashing (requiring power cycle to recover) some APs under heavy traffic.

[...]

Quoted 6 lines

+       /*
+        * Including the following line will crash some AP's.  This
+        * workaround removes the stimulus which causes the crash until
+        * the AP software can be fixed. hw->max_tx_aggregation_subframes = LINK_QUAL_AGG_FRAME_LIMIT_DEF;
+        */

Would be interesting to know which AP models suffer from this issue since other drivers might also be affected if max_tx_aggregation_subframes is set to something != 64 or 0.

Did this appear with the previous LINK_QUAL_AGG_FRAME_LIMIT_DEF value of 31 too?

If we can crash APs by sending values != 64 or 0 it might even make sense to not allow drivers to overwrite the max AMPDU size ...

Helmut

maintainer
#2 lore raw
Quoted 23 lines · Helmut Schaa

<Hi,

Quoted 6 lines · Wey-Yi Guy

From: Don Fry <[email protected]>

This patch reverts commit 9b7688328422b88a7a15dc0dc123ad9ab1a6e22d which was introduced in 2.6.38-rc1. It works around a problem where the iwlagn driver stimulates a bug crashing (requiring power cycle to recover) some APs under heavy traffic.

[...]

drivers/net/wireless/iwlwifi/iwl-agn.c static int iwl_mac_setup_register(struct iwl_priv *priv, · line 2448

Quoted 6 lines
drivers/net/wireless/iwlwifi/iwl-agn.c +5 -0
+       /*
+        * Including the following line will crash some AP's.  This
+        * workaround removes the stimulus which causes the crash until
+        * the AP software can be fixed.
       hw->max_tx_aggregation_subframes = LINK_QUAL_AGG_FRAME_LIMIT_DEF;
+        */

Would be interesting to know which AP models suffer from this issue since other drivers might also be affected if max_tx_aggregation_subframes is set to something != 64 or 0.

Quoted 5 lines

Did this appear with the previous LINK_QUAL_AGG_FRAME_LIMIT_DEF value of 31 too?

If we can crash APs by sending values != 64 or 0 it might even make sense to not allow drivers to overwrite the max AMPDU size ...

It isn't that sending that directly crashes the APs right away. It still needs some traffic, so there's a possibility that we send too long AMPDUs or something else like that and just can't find that bug ...

johannes

#3 lore raw
Quoted 6 lines · Johannes Berg
Quoted 2 lines

If we can crash APs by sending values != 64 or 0 it might even make sense to not allow drivers to overwrite the max AMPDU size ...

It isn't that sending that directly crashes the APs right away. It still needs some traffic, so there's a possibility that we send too long AMPDUs or something else like that and just can't find that bug ...

Understood, thanks Johannes.