From: Johannes Berg <johannes@sipsolutions.net>
To: Arend van Spriel <arend.vanspriel@broadcom.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH V3 3/9] nl80211: add authorized flag to CONNECT event
Date: Tue, 13 Jun 2017 11:02:04 +0200 [thread overview]
Message-ID: <1497344524.6068.5.camel@sipsolutions.net> (raw)
In-Reply-To: <1497010130-16186-4-git-send-email-arend.vanspriel@broadcom.com>
On Fri, 2017-06-09 at 13:08 +0100, Arend van Spriel wrote:
> When the driver supports offloading of the PTK/GTK handshakes
> completion of that during connect changes the layer 2 control
> port state to authorized. This patch allows the driver to pass
> that state in cfg80211_connect_done() resulting in adding the
> new flag NL80211_ATTR_PORT_AUTHORIZED in the NL80211_CMD_CONNECT
> notification. For 802.1X the driver is expected to issue the
> NL80211_CMD_CONNECT notification twice. First without the new
> attribute to inform user-space that 802.1X authentication can
> start and a second one with the new attribute to indicate the
> completion of the handshakes.
So I was going to apply this, but now I'm no longer sure.
First of all, I'm concerned it could confuse older tools that don't
expect to see the notification twice. OTOH, they'd get the connected
notification now and not really know whether or not data can be passed,
so it seems unlikely they'd rely on it - but are we really sure about
that?
Additionally, I just discussed this with Avi, and it's not clear to us
what the second notification is actually useful for? If you were going
to say maybe it makes sense for when you can't send ROAMED, but still
connected again to the same network so you've already done the 4-way-HS
at the time of the first notification - that I think makes sense.
But it seems that wpa_s moves all state machines to COMPLETE when it
sends the PMK to the device for offload, so it won't really care about
when that finished?
However, I think this might actually be a BAD thing, because it would
leave higher layers trying to do DHCP when the link isn't actually
ready yet.
(This, btw, is another problem we can solve with the EAPOL-over-nl80211
since then we can set the carrier later when the port is authorized.)
So - I have no objections to this patch, but I think the double
notification needs to be revised, and if needed a separate notification
for "4-way-HS is done now" can be added.
johannes
next prev parent reply other threads:[~2017-06-13 9:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-09 12:08 [PATCH V3 0/9] nl80211: add support for PTK/GTK handshake offload Arend van Spriel
2017-06-09 12:08 ` [PATCH V3 1/9] cfg80211: support 4-way handshake offloading for WPA/WPA2-PSK Arend van Spriel
2017-06-09 12:08 ` [PATCH V3 2/9] cfg80211: support 4-way handshake offloading for 802.1X Arend van Spriel
2017-06-09 12:08 ` [PATCH V3 3/9] nl80211: add authorized flag to CONNECT event Arend van Spriel
2017-06-13 9:02 ` Johannes Berg [this message]
2017-06-14 9:14 ` Arend van Spriel
2017-06-14 20:28 ` Johannes Berg
2017-06-09 12:08 ` [PATCH V3 4/9] nl80211: add authorized flag to ROAM event Arend van Spriel
2017-06-09 12:08 ` [PATCH V3 5/9] nl80211: remove desciption about request from NL80211_CMD_ROAM Arend van Spriel
2017-06-09 12:08 ` [PATCH V3 6/9] brcmfmac: support 4-way handshake offloading for WPA/WPA2-PSK Arend van Spriel
2017-06-14 5:09 ` [V3, " Kalle Valo
2017-06-30 6:24 ` Kalle Valo
2017-06-30 6:42 ` Kalle Valo
2017-06-09 12:08 ` [PATCH V3 7/9] brcmfmac: support 4-way handshake offloading for 802.1X Arend van Spriel
2017-06-09 12:08 ` [PATCH V3 8/9] brcmfmac: switch to using cfg80211_connect_done() Arend van Spriel
2017-06-09 12:08 ` [PATCH V3 9/9] brcmfmac: provide port authorized state in CONNECT event Arend van Spriel
2017-06-13 9:05 ` [PATCH V3 0/9] nl80211: add support for PTK/GTK handshake offload Johannes Berg
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=1497344524.6068.5.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=arend.vanspriel@broadcom.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 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).