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: 9c2b8204e6 ("DPP: Integration for hostapd")
Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2024-02-14 00:59:15 +02:00 committed by Jouni Malinen
parent 8270afcdee
commit 0b5d370c00

View 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) ==