Skip to content

Commit 78feb35

Browse files
Wey-Yi Guylinvjw
Wey-Yi Guy
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: [email protected] #3.0+ Reported-by: Andrej Gelenberg <[email protected]> Signed-off-by: Wey-Yi Guy <[email protected]> Tested-by: Andrej Gelenberg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent 81670a4 commit 78feb35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)