[kernel/f16] Apply some iwlwifi regression fixes not in the 3.2-rc6 wireless snapshot Turn-off with_backports for

John W. Linville linville at fedoraproject.org
Wed Dec 21 19:35:41 UTC 2011


commit 02606c8511ed53f3653cfc59204b1d6603b6d0de
Author: John W. Linville <linville at tuxdriver.com>
Date:   Wed Dec 21 14:32:55 2011 -0500

    Apply some iwlwifi regression fixes not in the 3.2-rc6 wireless snapshot
    Turn-off with_backports for s390x

 ...allow-to-switch-to-HT40-if-not-associated.patch |   12 +++--
 iwlwifi-tx_sync-only-on-PAN-context.patch          |   44 ++++++++++++++++++++
 kernel.spec                                        |   10 ++++
 3 files changed, 61 insertions(+), 5 deletions(-)
---
diff --git a/iwlwifi-allow-to-switch-to-HT40-if-not-associated.patch b/iwlwifi-allow-to-switch-to-HT40-if-not-associated.patch
index 08c9e44..7ded9c8 100644
--- a/iwlwifi-allow-to-switch-to-HT40-if-not-associated.patch
+++ b/iwlwifi-allow-to-switch-to-HT40-if-not-associated.patch
@@ -1,3 +1,8 @@
+From 78feb35b8161acd95c33a703ed6ab6f554d29387 Mon Sep 17 00:00:00 2001
+From: Wey-Yi Guy <wey-yi.w.guy at intel.com>
+Date: Wed, 14 Dec 2011 08:22:36 -0800
+Subject: [PATCH 2/2] iwlwifi: allow to switch to HT40 if not associated
+
 My previous patch
 34a5b4b6af104cf18eb50748509528b9bdbc4036 iwlwifi: do not re-configure
 HT40 after associated
@@ -10,6 +15,7 @@ CC: stable at vger.kernel.org #3.0+
 Reported-by: Andrej Gelenberg <andrej.gelenberg at udo.edu>
 Signed-off-by: Wey-Yi Guy <wey-yi.w.guy at intel.com>
 Tested-by: Andrej Gelenberg <andrej.gelenberg at udo.edu>
+Signed-off-by: John W. Linville <linville at tuxdriver.com>
 ---
  drivers/net/wireless/iwlwifi/iwl-agn-rxon.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
@@ -30,9 +36,5 @@ index a7a6def..5c7c17c 100644
  			} else
  				ctx->ht.is_40mhz = false;
 -- 
-1.7.0.4
+1.7.4.4
 
---
-To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
-the body of a message to majordomo at vger.kernel.org
-More majordomo info at  http://vger.kernel.org/majordomo-info.html
\ No newline at end of file
diff --git a/iwlwifi-tx_sync-only-on-PAN-context.patch b/iwlwifi-tx_sync-only-on-PAN-context.patch
new file mode 100644
index 0000000..16086c0
--- /dev/null
+++ b/iwlwifi-tx_sync-only-on-PAN-context.patch
@@ -0,0 +1,44 @@
+From 81670a491849127cd5f86defd2cd03cef1b08d07 Mon Sep 17 00:00:00 2001
+From: Johannes Berg <johannes.berg at intel.com>
+Date: Wed, 14 Dec 2011 08:22:35 -0800
+Subject: [PATCH 1/2] iwlwifi: tx_sync only on PAN context
+
+Ted reported that he couldn't connect to some APs
+and bisected it to the tx_sync implementation.
+Disable it for the BSS context to fix this issue.
+
+Reported-by: Ted Ts'o <tytso at mit.edu>
+Signed-off-by: Johannes Berg <johannes.berg at intel.com>
+Signed-off-by: Wey-Yi Guy <wey-yi.w.guy at intel.com>
+Signed-off-by: John W. Linville <linville at tuxdriver.com>
+---
+ drivers/net/wireless/iwlwifi/iwl-agn.c |    6 ++++++
+ 1 files changed, 6 insertions(+), 0 deletions(-)
+
+diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
+index bacc06c..e0e9a3d 100644
+--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
++++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
+@@ -2850,6 +2850,9 @@ static int iwlagn_mac_tx_sync(struct ieee80211_hw *hw,
+ 	int ret;
+ 	u8 sta_id;
+ 
++	if (ctx->ctxid != IWL_RXON_CTX_PAN)
++		return 0;
++
+ 	IWL_DEBUG_MAC80211(priv, "enter\n");
+ 	mutex_lock(&priv->shrd->mutex);
+ 
+@@ -2898,6 +2901,9 @@ static void iwlagn_mac_finish_tx_sync(struct ieee80211_hw *hw,
+ 	struct iwl_vif_priv *vif_priv = (void *)vif->drv_priv;
+ 	struct iwl_rxon_context *ctx = vif_priv->ctx;
+ 
++	if (ctx->ctxid != IWL_RXON_CTX_PAN)
++		return;
++
+ 	IWL_DEBUG_MAC80211(priv, "enter\n");
+ 	mutex_lock(&priv->shrd->mutex);
+ 
+-- 
+1.7.4.4
+
diff --git a/kernel.spec b/kernel.spec
index b4a1104..0f5101a 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -371,6 +371,7 @@ Summary: The Linux kernel
 %define make_target image
 %define kernel_image arch/s390/boot/image
 %define with_tools 0
+%define with_backports 0
 %endif
 
 %ifarch sparc64
@@ -830,6 +831,7 @@ Patch21049: tpm_tis-delay-after-aborting-cmd.patch
 # compat-wireless patches
 Patch50000: compat-wireless-config-fixups.patch
 Patch50001: compat-wireless-change-CONFIG_IWLAGN-CONFIG_IWLWIFI.patch
+Patch50100: iwlwifi-tx_sync-only-on-PAN-context.patch
 
 Patch22000: route-cache-garbage-collector.patch
 
@@ -1605,6 +1607,10 @@ ApplyPatch compat-wireless-change-CONFIG_IWLAGN-CONFIG_IWLWIFI.patch
 # Remove overlap between bcma/b43 and brcmsmac and reenable bcm4331
 ApplyPatch bcma-brcmsmac-compat.patch
 
+# Apply some iwlwifi regression fixes not in the 3.2-rc6 wireless snapshot
+ApplyPatch iwlwifi-tx_sync-only-on-PAN-context.patch
+ApplyPatch iwlwifi-allow-to-switch-to-HT40-if-not-associated.patch
+
 cd ..
 
 %endif
@@ -2277,6 +2283,10 @@ fi
 # and build.
 
 %changelog
+* Wed Dec 21 2011 John W. Linville <linville at redhat.com> 
+- Apply some iwlwifi regression fixes not in the 3.2-rc6 wireless snapshot
+- Turn-off with_backports for s390x
+
 * Wed Dec 21 2011 Dave Jones <davej at redhat.com> 3.1.5-11
 - Reinstate the route cache garbage collector.
 


More information about the scm-commits mailing list