提交 78feb35b 编写于 作者: W Wey-Yi Guy 提交者: John W. Linville

iwlwifi: allow to switch to HT40 if not associated

My previous patch
34a5b4b6 iwlwifi: do not re-configure
HT40 after associated

Fix the case of HT40 after association on specified AP, but it break the
association for some APs and cause not able to establish connection.
We need to address HT40 before and after addociation.

CC: stable@vger.kernel.org #3.0+
Reported-by: NAndrej Gelenberg <andrej.gelenberg@udo.edu>
Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
Tested-by: NAndrej Gelenberg <andrej.gelenberg@udo.edu>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 81670a49
...@@ -606,8 +606,8 @@ int iwlagn_mac_config(struct ieee80211_hw *hw, u32 changed) ...@@ -606,8 +606,8 @@ int iwlagn_mac_config(struct ieee80211_hw *hw, u32 changed)
if (ctx->ht.enabled) { if (ctx->ht.enabled) {
/* if HT40 is used, it should not change /* if HT40 is used, it should not change
* after associated except channel switch */ * after associated except channel switch */
if (iwl_is_associated_ctx(ctx) && if (!ctx->ht.is_40mhz ||
!ctx->ht.is_40mhz) !iwl_is_associated_ctx(ctx))
iwlagn_config_ht40(conf, ctx); iwlagn_config_ht40(conf, ctx);
} else } else
ctx->ht.is_40mhz = false; ctx->ht.is_40mhz = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册