iwlagn: workaround bug crashing some APs
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.
---
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
@@ -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
Hi,
Quoted 6 lines · Wey-Yi Guy
From: Don Fry <[email protected]>
This patch reverts commit
9b7688328422b88a7a15dc0dc123ad9ab1a6e22dwhich 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
Johannes Berg
maintainerQuoted 23 lines · Helmut Schaa
<Hi,
Quoted 6 lines · Wey-Yi Guy
From: Don Fry <[email protected]>
This patch reverts commit
9b7688328422b88a7a15dc0dc123ad9ab1a6e22dwhich 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_subframesis set to something != 64 or 0.
Quoted 5 lines
Did this appear with the previous
LINK_QUAL_AGG_FRAME_LIMIT_DEFvalue 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
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.