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:
parent
8270afcdee
commit
0b5d370c00
1 changed files with 1 additions and 0 deletions
|
@ -1606,6 +1606,7 @@ static void hostapd_action_rx(struct hostapd_data *hapd,
|
||||||
#endif /* CONFIG_FST */
|
#endif /* CONFIG_FST */
|
||||||
#ifdef CONFIG_DPP
|
#ifdef CONFIG_DPP
|
||||||
if (plen >= 2 + 4 &&
|
if (plen >= 2 + 4 &&
|
||||||
|
mgmt->u.action.category == WLAN_ACTION_PUBLIC &&
|
||||||
mgmt->u.action.u.vs_public_action.action ==
|
mgmt->u.action.u.vs_public_action.action ==
|
||||||
WLAN_PA_VENDOR_SPECIFIC &&
|
WLAN_PA_VENDOR_SPECIFIC &&
|
||||||
WPA_GET_BE24(mgmt->u.action.u.vs_public_action.oui) ==
|
WPA_GET_BE24(mgmt->u.action.u.vs_public_action.oui) ==
|
||||||
|
|
Loading…
Reference in a new issue