[PATCH 19/55] nl80211: Indicate EPP peer in FT authentication

Ilan Peer ilan.peer at intel.com
Thu Dec 3 02:44:18 PST 2026


Add an epp_peer flag to the authentication parameters and pass it to
the driver as NL80211_ATTR_EPP_PEER. Unlike EPPKE and IEEE 802.1X
authentication, FT does not imply an EPP peer, and the PTK is installed
before the Reassociation Request frame is sent, so the driver has to be
told at authentication time.

Signed-off-by: Ilan Peer <ilan.peer at intel.com>
---
 src/drivers/driver.h         | 6 ++++++
 src/drivers/driver_nl80211.c | 8 ++++++++
 src/drivers/driver_nl80211.h | 1 +
 3 files changed, 15 insertions(+)

diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 590748f3a987..e5ef3dfdb250 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -815,6 +815,12 @@ struct wpa_driver_auth_params {
 	 * The MLD AP address
 	 */
 	const u8 *ap_mld_addr;
+
+	/**
+	 * epp_peer - The (re)association following FT authentication is
+	 * encrypted
+	 */
+	bool epp_peer;
 };
 
 /**
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 358676e35975..c5975d6013f7 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -4522,6 +4522,7 @@ static void nl80211_copy_auth_params(struct wpa_driver_nl80211_data *drv,
 	drv->auth_wep_tx_keyidx = params->wep_tx_keyidx;
 	drv->auth_local_state_change = params->local_state_change;
 	drv->auth_p2p = params->p2p;
+	drv->auth_epp_peer = params->epp_peer;
 
 	if (params->bssid)
 		os_memcpy(drv->auth_bssid_, params->bssid, ETH_ALEN);
@@ -4749,6 +4750,12 @@ retry:
 			goto fail;
 	}
 
+	if (params->epp_peer) {
+		wpa_printf(MSG_DEBUG, "  * EPP peer");
+		if (nla_put_flag(msg, NL80211_ATTR_EPP_PEER))
+			goto fail;
+	}
+
 	ret = nl80211_put_bss_membership_selectors(drv, msg);
 	if (ret)
 		goto fail;
@@ -4855,6 +4862,7 @@ int wpa_driver_nl80211_authenticate_retry(struct wpa_driver_nl80211_data *drv)
 	params.wep_tx_keyidx = drv->auth_wep_tx_keyidx;
 	params.local_state_change = drv->auth_local_state_change;
 	params.p2p = drv->auth_p2p;
+	params.epp_peer = drv->auth_epp_peer;
 
 	if (!is_zero_ether_addr(drv->auth_bssid_))
 		params.bssid = drv->auth_bssid_;
diff --git a/src/drivers/driver_nl80211.h b/src/drivers/driver_nl80211.h
index aa73023c754d..67f5078f0b38 100644
--- a/src/drivers/driver_nl80211.h
+++ b/src/drivers/driver_nl80211.h
@@ -269,6 +269,7 @@ struct wpa_driver_nl80211_data {
 	int auth_wep_tx_keyidx;
 	int auth_local_state_change;
 	int auth_p2p;
+	bool auth_epp_peer;
 	bool auth_mld;
 	u8 auth_mld_link_id;
 	u8 auth_ap_mld_addr[ETH_ALEN];
-- 
2.55.0




More information about the Hostap mailing list