3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

netdev: Ignore locally generated deauth frames

Fixes: 2bebb4bdc7 ("netdev: Handle deauth frames prior to
association")
This commit is contained in:
Denis Kenzior 2021-02-04 13:54:33 -06:00
parent ce5e1e1933
commit 603988476a

View File

@ -1092,6 +1092,10 @@ static void netdev_deauthenticate_event(struct l_genl_msg *msg,
if (L_WARN_ON(!hdr))
return;
/* Ignore any locally generated frames */
if (!memcmp(hdr->address_2, netdev->addr, sizeof(netdev->addr)))
return;
reason_code = l_get_u8(mmpdu_body(hdr));
l_info("deauth event, src="MAC" dest="MAC" bssid="MAC" reason=%u",