public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: Kavita Kavita <kavita.kavita@oss.qualcomm.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH wireless-next 2/2] wifi: cfg80211/mac80211: extend cfg80211_rx_assoc_resp_data() for assoc encryption
Date: Wed, 29 Apr 2026 12:21:04 +0530	[thread overview]
Message-ID: <77a8e304-e173-4387-8f8d-77bb6f3140d3@oss.qualcomm.com> (raw)
In-Reply-To: <a894a1e0b556ba910e7fad040210f9d531dcf99a.camel@sipsolutions.net>



On 4/29/2026 11:59 AM, Johannes Berg wrote:
> Hi,
> 
> Sorry I didn't get back to this yesterday. I see you now just sent
> another patch.



It's fine. Thank you for the review. 



> 
>> The attribute is intended to indicate that the entire exchange was encrypted,
>> not just the Response. For the Response frame, checking ieee80211_has_protected()
>> is possible since the full frame is available in data->buf, but for the Request
>> frame only IEs are stored in ifmgd->assoc_req_ies, the MAC header is not preserved,
>> so I cannot check the Protected bit for the Request.
> 
> I guess that makes sense, fair enough.
> 
>> While an unencrypted Request paired with an encrypted Response is unlikely in practice,
>> we did not want to leave that gap, so I used the epp_peer flag. That said, if you think
>> checking the Protected bit on the Response frame alone is sufficient, we are fine with
>> that approach too.
> 
> It's actually also something wpa_s could check, but I suppose it's
> plausible that non-wpa_s observers of these events might be interested.
> 
>> In the wireless-next tip, there are already commits that combine both cfg80211
>> and mac80211 changes together, 
> 
> True, but that's usually if the whole thing is small enough I guess?



Yes, it's usually for small changes. This patch is also small.



> 
>> so since the assoc_encrypted field addition in
>> cfg80211 and the mac80211 epp_peer lookup that sets it are tightly dependent on
>> each other, I kept them in the same commit. If you prefer them split into two
>> separate commits, I can do that. Will update the commit as well.
> 
> I think in this case I might have just preferred to have the first
> commit add *all* the infrastructure, and indicate that it's done for
> assoc for the reasons above, and then have the second just be mac80211
> to fill it?



Well, I have already dropped this patch. I was thinking from a wpa_supplicant perspective,
where NL80211_CMD_ASSOCIATE will be preferred over NL80211_CMD_CONNECT when both are available,
so the assoc_encrypted field in the mac80211 case seemed redundant. However, if there are use
cases with non-wpa_supplicant applications that might prefer NL80211_CMD_CONNECT even when both
events are sent, then there might be value in keeping this patch.

I am not entirely sure about such use cases. Do you think this patch really matters?
If yes, I can bring it back. I think we can keep it as a single patch. Thank you.



> 
> Not super important though I guess.
> 
> johannes


  reply	other threads:[~2026-04-29  6:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-27 15:07 [PATCH wireless-next 0/2] wifi: cfg80211/mac80211: indicate (Re)Association frame encryption in SME-in-driver mode Kavita Kavita
2026-04-27 15:07 ` [PATCH wireless-next 1/2] wifi: cfg80211: indicate (Re)Association frame encryption to userspace Kavita Kavita
2026-04-28  7:39   ` Johannes Berg
2026-04-28  9:17     ` Kavita Kavita
2026-04-27 15:07 ` [PATCH wireless-next 2/2] wifi: cfg80211/mac80211: extend cfg80211_rx_assoc_resp_data() for assoc encryption Kavita Kavita
2026-04-28  7:38   ` Johannes Berg
2026-04-28  9:18     ` Kavita Kavita
2026-04-29  6:29       ` Johannes Berg
2026-04-29  6:51         ` Kavita Kavita [this message]
2026-04-28 10:58     ` Kavita Kavita

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=77a8e304-e173-4387-8f8d-77bb6f3140d3@oss.qualcomm.com \
    --to=kavita.kavita@oss.qualcomm.com \
    --cc=johannes@sipsolutions.net \
    --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