All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: iwd@lists.01.org
Subject: Re: [PATCH 5/5] station: handle EAP_COMPLETE event
Date: Thu, 08 Apr 2021 15:12:21 -0500	[thread overview]
Message-ID: <b58785af-4fe4-a622-ab15-150434712f51@gmail.com> (raw)
In-Reply-To: <20210408154646.1182833-5-prestwoj@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1075 bytes --]

Hi James,

On 4/8/21 10:46 AM, James Prestwood wrote:
> Notify netdev via netdev_handshake_set_pmk that EAP has finished.
> ---
>   src/station.c | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/src/station.c b/src/station.c
> index 064872c6..8dda113d 100644
> --- a/src/station.c
> +++ b/src/station.c
> @@ -740,6 +740,10 @@ static void station_handshake_event(struct handshake_state *hs,
>   		l_warn("Unable to securely rekey on this hw/kernel...");
>   		station_reconnect(station);
>   		break;
> +	case HANDSHAKE_EVENT_EAP_COMPLETE:
> +		l_debug("EAP complete");
> +		netdev_handshake_set_pmk(hs);
> +		break;

Why not handle PMK setting just like ptk/gtk/igtk/rekey offload bits?  So maybe 
add __eapol_set_install_pmk_func() and inside the netdev implementation check 
whether the current connection type is OFFLOAD_8021X.  That would cut out 
station as a middle-man completely.

>   	case HANDSHAKE_EVENT_COMPLETE:
>   	case HANDSHAKE_EVENT_SETTING_KEYS_FAILED:
>   	case HANDSHAKE_EVENT_EAP_NOTIFY:
> 

Regards,
-Denis

      reply	other threads:[~2021-04-08 20:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-08 15:46 [PATCH 1/5] handshake: add HANDSHAKE_EVENT_EAP_COMPLETE James Prestwood
2021-04-08 15:46 ` [PATCH 2/5] eapol: notify with EAP complete handshake event James Prestwood
2021-04-08 15:46 ` [PATCH 3/5] netdev: implement netdev_handshake_state_set_pmk James Prestwood
2021-04-08 20:14   ` Denis Kenzior
2021-04-09 16:09     ` James Prestwood
2021-04-09 16:29       ` Denis Kenzior
2021-04-08 15:46 ` [PATCH 4/5] netdev: add CONNECTION_TYPE_8021X_OFFLOAD James Prestwood
2021-04-08 15:46 ` [PATCH 5/5] station: handle EAP_COMPLETE event James Prestwood
2021-04-08 20:12   ` Denis Kenzior [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=b58785af-4fe4-a622-ab15-150434712f51@gmail.com \
    --to=denkenz@gmail.com \
    --cc=iwd@lists.01.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.