[PATCH] OWE: Use driver port authorization for OWE offload

Chung-Hsien Hsu chung-hsien.hsu at infineon.com
Tue Jun 2 19:23:10 PDT 2026


With OWE STA offload, the driver handles OWE processing and reports port
authorization. Use the same association completion path as PSK 4-way
handshake offload. This avoids leaving OWE offload associations waiting
for user spec EAPOL-Key processing.

Signed-off-by: Avishad Verma <avishad.verma at infineon.com>
Signed-off-by: Chung-Hsien Hsu <chung-hsien.hsu at infineon.com>
---
 wpa_supplicant/events.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 0684ada719bd..356d282b11f6 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -4848,8 +4848,10 @@ static void wpa_supplicant_event_assoc(struct wpa_supplicant *wpa_s,
 		wpa_supplicant_set_state(wpa_s, WPA_COMPLETED);
 		eapol_sm_notify_portValid(wpa_s->eapol, true);
 		eapol_sm_notify_eap_success(wpa_s->eapol, true);
-	} else if ((wpa_s->drv_flags & WPA_DRIVER_FLAGS_4WAY_HANDSHAKE_PSK) &&
-		   wpa_key_mgmt_wpa_psk(wpa_s->key_mgmt)) {
+	} else if (((wpa_s->drv_flags & WPA_DRIVER_FLAGS_4WAY_HANDSHAKE_PSK) &&
+		    wpa_key_mgmt_wpa_psk(wpa_s->key_mgmt)) ||
+		   ((wpa_s->drv_flags2 & WPA_DRIVER_FLAGS2_OWE_OFFLOAD_STA) &&
+		    wpa_s->key_mgmt == WPA_KEY_MGMT_OWE)) {
 		if (already_authorized) {
 			/*
 			 * We are done; the driver will take care of RSN 4-way
-- 
2.25.1




More information about the Hostap mailing list