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
1 changed files with 4 additions and 0 deletions

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",