From: Jouni Malinen Date: Tue, 13 Feb 2024 22:59:15 +0000 (+0200) Subject: DPP: Fix DPP Action frame check for EVENT_RX_MGMT events X-Git-Tag: hostap_2_11~374 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b5d370c00cedff0b0689fd1d73bab5975043ea5;p=thirdparty%2Fhostap.git DPP: Fix DPP Action frame check for EVENT_RX_MGMT events This was missing a check for the Category field and could have matched other Action frames than Public Action frames. Fixes: 9c2b8204e662 ("DPP: Integration for hostapd") Signed-off-by: Jouni Malinen --- diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index 26c2c591ae..504e0f8bf4 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -1606,6 +1606,7 @@ static void hostapd_action_rx(struct hostapd_data *hapd, #endif /* CONFIG_FST */ #ifdef CONFIG_DPP if (plen >= 2 + 4 && + mgmt->u.action.category == WLAN_ACTION_PUBLIC && mgmt->u.action.u.vs_public_action.action == WLAN_PA_VENDOR_SPECIFIC && WPA_GET_BE24(mgmt->u.action.u.vs_public_action.oui) ==