public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Jouni Malinen <j@w1.fi>
To: Sai Pratyusha Magam <sai.magam@oss.qualcomm.com>
Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org,
	quic_drohan@quicinc.com
Subject: Re: [PATCH wireless-next v3] wifi: mac80211: Fix AAD/Nonce computation for management frames with MLO
Date: Mon, 23 Feb 2026 11:17:13 +0200	[thread overview]
Message-ID: <aZwbGXdE8Fgn7f0w@w1.fi> (raw)
In-Reply-To: <20260212042601.2250514-1-sai.magam@oss.qualcomm.com>

On Thu, Feb 12, 2026 at 09:56:01AM +0530, Sai Pratyusha Magam wrote:
> diff --git a/drivers/net/wireless/virtual/mac80211_hwsim.c b/drivers/net/wireless/virtual/mac80211_hwsim.c
> @@ -4189,6 +4225,7 @@ static int mac80211_hwsim_change_nan_config(struct ieee80211_hw *hw,
>  	.start_nan = mac80211_hwsim_start_nan,                  \
>  	.stop_nan = mac80211_hwsim_stop_nan,                    \
>  	.nan_change_conf = mac80211_hwsim_change_nan_config,    \
> +	.set_key = mac80211_hwsim_set_key,                     \
>  	HWSIM_DEBUGFS_OPS

Defining the set_key callback makes mac80211 disable various features
and not all of them were covered below:

> @@ -5621,6 +5658,7 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
> +	hw->wiphy->flags |= WIPHY_FLAG_IBSS_RSN;

That's one of features that get disabled by default in mac80211 if a
driver defines ops->set_key. In addition to that, these ext_features
need to be enabled in mac80211_hwsim:

wiphy_ext_feature_set(wiphy,
		      NL80211_EXT_FEATURE_SPP_AMSDU_SUPPORT);
wiphy_ext_feature_set(local->hw.wiphy,
		      NL80211_EXT_FEATURE_CAN_REPLACE_PTK0);
wiphy_ext_feature_set(local->hw.wiphy,
		      NL80211_EXT_FEATURE_EXT_KEY_ID);
 
-- 
Jouni Malinen                                            PGP id EFC895FA

      parent reply	other threads:[~2026-02-23  9:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-12  4:26 [PATCH wireless-next v3] wifi: mac80211: Fix AAD/Nonce computation for management frames with MLO Sai Pratyusha Magam
2026-02-12  9:58 ` Chien Wong
2026-02-18  6:24   ` Sai Pratyusha Magam
2026-02-23  9:17 ` Jouni Malinen [this message]

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=aZwbGXdE8Fgn7f0w@w1.fi \
    --to=j@w1.fi \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=quic_drohan@quicinc.com \
    --cc=sai.magam@oss.qualcomm.com \
    /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