mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
netdev: Ignore locally generated deauth frames
Fixes: 2bebb4bdc7
("netdev: Handle deauth frames prior to
association")
This commit is contained in:
parent
ce5e1e1933
commit
603988476a
@ -1092,6 +1092,10 @@ static void netdev_deauthenticate_event(struct l_genl_msg *msg,
|
|||||||
if (L_WARN_ON(!hdr))
|
if (L_WARN_ON(!hdr))
|
||||||
return;
|
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));
|
reason_code = l_get_u8(mmpdu_body(hdr));
|
||||||
|
|
||||||
l_info("deauth event, src="MAC" dest="MAC" bssid="MAC" reason=%u",
|
l_info("deauth event, src="MAC" dest="MAC" bssid="MAC" reason=%u",
|
||||||
|
Loading…
Reference in New Issue
Block a user