linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luca Coelho <luca@coelho.fi>
To: kvalo@codeaurora.org
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH 12/12] iwlwifi: mvm: set station HE capabilities before authentication
Date: Sun, 29 Nov 2020 15:14:42 +0200	[thread overview]
Message-ID: <iwlwifi.20201129151117.9c66af9f5dda.I86867c273bb3d00e31e13857d4a013f5503c17ea@changeid> (raw)
In-Reply-To: <20201129131442.1857561-1-luca@coelho.fi>

From: Avraham Stern <avraham.stern@intel.com>

Some 11ax APs send the authentication response frame as a HE frame.
Since the MAC_FILTER_IN_11AX flag is only set on association, the
frame is being filtered out and the association fails.
Fix it by setting the station HE capabilities before authentication.
This will result in setting the MAC_FILTER_IN_11AX flag for HE
stations before authentication and filtering in the authentication
response.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
index 688c1125e67b..62e884f3e29e 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
@@ -3127,6 +3127,9 @@ static int iwl_mvm_mac_sta_state(struct ieee80211_hw *hw,
 			goto out_unlock;
 		}
 
+		if (vif->type == NL80211_IFTYPE_STATION)
+			vif->bss_conf.he_support = sta->he_cap.has_he;
+
 		if (sta->tdls &&
 		    (vif->p2p ||
 		     iwl_mvm_tdls_sta_count(mvm, NULL) ==
-- 
2.29.2


  parent reply	other threads:[~2020-11-29 13:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-29 13:14 [PATCH 00/12] iwlwifi: updates intended for v5.11 2020-11-29 Luca Coelho
2020-11-29 13:14 ` [PATCH 01/12] iwlwifi: remove all queue resources before free Luca Coelho
2020-11-29 13:14 ` [PATCH 02/12] iwlwifi: yoyo: add the ability to dump phy periphery Luca Coelho
2020-11-29 13:14 ` [PATCH 03/12] iwlwifi: yoyo: align the write pointer to DWs Luca Coelho
2020-11-29 13:14 ` [PATCH 04/12] iwlwifi: mvm: fix sar profile printing issue Luca Coelho
2020-11-29 13:14 ` [PATCH 05/12] cfg80211: flush scan entries upon suspend Luca Coelho
2020-12-03 11:08   ` Luca Coelho
2020-11-29 13:14 ` [PATCH 06/12] iwlwifi: move reclaim flows to the queue file Luca Coelho
2020-11-29 13:14 ` [PATCH 07/12] iwlwifi: d3: do not send the WOWLAN_CONFIGURATION command for netdetect Luca Coelho
2020-11-29 13:14 ` [PATCH 08/12] iwlwifi: update MAINTAINERS entry Luca Coelho
2020-12-02 19:01   ` Kalle Valo
2020-11-29 13:14 ` [PATCH 09/12] iwlwifi: mvm: Init error table memory to zero Luca Coelho
2020-11-29 13:14 ` [PATCH 10/12] iwlwifi: mvm: remove the read_nvm from iwl_run_init_mvm_ucode Luca Coelho
2020-11-29 13:14 ` [PATCH 11/12] iwlwifi: pcie: remove obsolete pre-release support code Luca Coelho
2020-11-29 13:14 ` Luca Coelho [this message]
2020-12-03 11:09   ` [PATCH 12/12] iwlwifi: mvm: set station HE capabilities before authentication Luca Coelho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=iwlwifi.20201129151117.9c66af9f5dda.I86867c273bb3d00e31e13857d4a013f5503c17ea@changeid \
    --to=luca@coelho.fi \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).