Skip to contentSkip to conversation

ft: set OCVC false for FT-over-DS

PATCH Applied James Prestwood 2 participants 2 messages Sep 28, 2021

lore
Share & tools
lore

James Prestwood

author
#0 lore raw

PATCH v3 1/1 ft: set OCVC false for FT-over-DS

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(+)
src/ft.c +7 -0
index 9c5bc8b0..52506301 100644
@@ -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;
Signature · 1 line
2.31.1
Applied
#1 lore raw

Hi James,

Quoted 8 lines · James Prestwood

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