mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 00:38:24 -05:00
More consistent SA check for unexpected Data frames
Use the same rules for dropping driver notifications for Data frames from unassociated stations as were added for Management frame reception. This results in more consistent behavior in sending out Deauthentication frames with Reason Code 6/7. This case was already checking for unexpected multicast addresses, so there was no issue for the PMF protections for unexpected disconnection. Anyway, better avoid unnecessary Deauthentication frames consistently. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
c404cd8c7d
commit
3394def5a8
@ -5248,8 +5248,10 @@ void ieee802_11_rx_from_unknown(struct hostapd_data *hapd, const u8 *src,
|
||||
|
||||
wpa_printf(MSG_DEBUG, "Data/PS-poll frame from not associated STA "
|
||||
MACSTR, MAC2STR(src));
|
||||
if (is_multicast_ether_addr(src)) {
|
||||
/* Broadcast bit set in SA?! Ignore the frame silently. */
|
||||
if (is_multicast_ether_addr(src) || is_zero_ether_addr(src) ||
|
||||
os_memcmp(src, hapd->own_addr, ETH_ALEN) == 0) {
|
||||
/* Broadcast bit set in SA or unexpected SA?! Ignore the frame
|
||||
* silently. */
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user