Skip to content

Commit 78feb35

Browse files
Wey-Yi Guylinvjw
authored andcommitted
iwlwifi: allow to switch to HT40 if not associated
My previous patch 34a5b4b 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 raspberrypi#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>
1 parent 81670a4 commit 78feb35

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/net/wireless/iwlwifi/iwl-agn-rxon.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,8 @@ int iwlagn_mac_config(struct ieee80211_hw *hw, u32 changed)
606606
if (ctx->ht.enabled) {
607607
/* if HT40 is used, it should not change
608608
* after associated except channel switch */
609-
if (iwl_is_associated_ctx(ctx) &&
610-
!ctx->ht.is_40mhz)
609+
if (!ctx->ht.is_40mhz ||
610+
!iwl_is_associated_ctx(ctx))
611611
iwlagn_config_ht40(conf, ctx);
612612
} else
613613
ctx->ht.is_40mhz = false;

0 commit comments

Comments
 (0)