All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] ft: set OCVC false for FT-over-DS
@ 2021-09-28 16:45 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2021-09-28 16:45 UTC (permalink / raw)
  To: iwd

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

FT-over-DS cannot use OCV due to how the kernel works. This means
we could connect initially with OCVC set, but a FT-over-DS attempt
needs to unset OCVC. Set OCVC false when rebuilding the RSNE for
reassociation.
---
 src/ft.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/ft.c b/src/ft.c
index 9c5bc8b0..52506301 100644
--- a/src/ft.c
+++ b/src/ft.c
@@ -43,6 +43,8 @@ struct ft_sm {
 	ft_get_oci get_oci;
 
 	void *user_data;
+
+	bool over_ds:1;
 };
 
 /*
@@ -236,6 +238,10 @@ static int ft_tx_reassociate(struct ft_sm *ft)
 		rsn_info.num_pmkids = 1;
 		rsn_info.pmkids = hs->pmk_r1_name;
 
+		/* Always set OCVC false for FT-over-DS */
+		if (ft->over_ds)
+			rsn_info.ocvc = false;
+
 		rsne = alloca(256);
 		ie_build_rsne(&rsn_info, rsne);
 
@@ -929,6 +935,7 @@ struct auth_proto *ft_over_ds_sm_new(struct handshake_state *hs,
 	ft->tx_assoc = tx_assoc;
 	ft->hs = hs;
 	ft->user_data = user_data;
+	ft->over_ds = true;
 
 	ft->ap.rx_associate = ft_rx_associate;
 	ft->ap.start = ft_over_ds_start;
-- 
2.31.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v3] ft: set OCVC false for FT-over-DS
@ 2021-09-28 16:52 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2021-09-28 16:52 UTC (permalink / raw)
  To: iwd

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

Hi James,

On 9/28/21 11:45 AM, James Prestwood wrote:
> FT-over-DS cannot use OCV due to how the kernel works. This means
> we could connect initially with OCVC set, but a FT-over-DS attempt
> needs to unset OCVC. Set OCVC false when rebuilding the RSNE for
> reassociation.
> ---
>   src/ft.c | 7 +++++++
>   1 file changed, 7 insertions(+)
> 

Applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-28 16:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 16:45 [PATCH v3] ft: set OCVC false for FT-over-DS James Prestwood
2021-09-28 16:52 Denis Kenzior

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.