[PATCH 60/92] NAN: Pass protected SDFs to NAN module

Andrei Otcheretianski andrei.otcheretianski at intel.com
Wed Apr 22 05:23:51 PDT 2026


From: Avraham Stern <avraham.stern at intel.com>

Followup frames from a paired peer are dual protected action frames.
Pass this type of frames to the NAN module.

Signed-off-by: Avraham Stern <avraham.stern at intel.com>
---
 wpa_supplicant/events.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 7ba58f055b..8ee53ae9aa 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -5949,8 +5949,9 @@ static void wpas_event_rx_mgmt_action(struct wpa_supplicant *wpa_s,
 	}
 #endif /* CONFIG_FST */
 
-	if (category == WLAN_ACTION_PUBLIC && plen >= 5 &&
-	    payload[0] == WLAN_PA_VENDOR_SPECIFIC) {
+	if ((category == WLAN_ACTION_PUBLIC ||
+	     category == WLAN_ACTION_PROTECTED_DUAL) &&
+	    plen >= 5 && payload[0] == WLAN_PA_VENDOR_SPECIFIC) {
 		if  (WPA_GET_BE32(&payload[1]) == NAN_SDF_VENDOR_TYPE) {
 			payload += 5;
 			plen -= 5;
-- 
2.53.0




More information about the Hostap mailing list