All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Prestwood <prestwoj@gmail.com>
To: "open list:MEDIATEK MT76 WIRELESS LAN DRIVER"
	<linux-wireless@vger.kernel.org>
Subject: No way to cancel SAE after CMD_AUTHENTICATE?
Date: Thu, 28 Mar 2024 08:23:29 -0700	[thread overview]
Message-ID: <055b857a-83f0-4abb-b6ff-f0eaaf572e64@gmail.com> (raw)

Hi,

I noticed some odd behavior where userspace is unable to cancel an SAE 
connection until associated. If you issue a CMD_AUTHENTICATE then 
immediately (or prior to association) send a CMD_DISCONNECT the kernel 
will not cancel the authentication and afaict ignore the CMD_DISCONNECT. 
The kernel will continue to send authenticate events, and even retry 
authentication until the retry limit after CMD_DISCONNECT is issued.

I see the checks in cfg80211_disconnect which seem to back up this 
behavior where its essentially ignored if not "connected". I'm not sure 
where to actually fix this since the auth retries are internal to 
mac80211. Since the device isn't even authenticated I'm unsure what 
value/structure to even check in order to detect this situation and 
clean up. But there needs to be some way to cancel the authentication, 
right?

Thanks,

James


             reply	other threads:[~2024-03-28 15:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-28 15:23 James Prestwood [this message]
2024-03-28 16:05 ` No way to cancel SAE after CMD_AUTHENTICATE? Johannes Berg
2024-03-28 17:30   ` James Prestwood

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=055b857a-83f0-4abb-b6ff-f0eaaf572e64@gmail.com \
    --to=prestwoj@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.