diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-12-14 08:22:36 -0800 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-14 13:56:55 -0500 |
commit | 78feb35b8161acd95c33a703ed6ab6f554d29387 (patch) | |
tree | eec1d8810b7eecccaa15391275f2ac909916a9cd /drivers/net | |
parent | 81670a491849127cd5f86defd2cd03cef1b08d07 (diff) | |
download | linux-3.10-78feb35b8161acd95c33a703ed6ab6f554d29387.tar.gz linux-3.10-78feb35b8161acd95c33a703ed6ab6f554d29387.tar.bz2 linux-3.10-78feb35b8161acd95c33a703ed6ab6f554d29387.zip |
iwlwifi: allow to switch to HT40 if not associated
My previous patch
34a5b4b6af104cf18eb50748509528b9bdbc4036 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: Andrej Gelenberg <andrej.gelenberg@udo.edu>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Tested-by: Andrej Gelenberg <andrej.gelenberg@udo.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c index a7a6def40d0..5c7c17c7166 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c @@ -606,8 +606,8 @@ int iwlagn_mac_config(struct ieee80211_hw *hw, u32 changed) if (ctx->ht.enabled) { /* if HT40 is used, it should not change * after associated except channel switch */ - if (iwl_is_associated_ctx(ctx) && - !ctx->ht.is_40mhz) + if (!ctx->ht.is_40mhz || + !iwl_is_associated_ctx(ctx)) iwlagn_config_ht40(conf, ctx); } else ctx->ht.is_40mhz = false; |