]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Fix DPP Action frame check for EVENT_RX_MGMT events
authorJouni Malinen <quic_jouni@quicinc.com>
Tue, 13 Feb 2024 22:59:15 +0000 (00:59 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 13 Feb 2024 23:01:07 +0000 (01:01 +0200)
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 <quic_jouni@quicinc.com>
src/ap/drv_callbacks.c

index 26c2c591ae5023a4c63cdf2655eb9160dc56506a..504e0f8bf4ee6bc9b2aabae5d2ca1d1648a97055 100644 (file)
@@ -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) ==