mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
netdev: Cleanup EAPoL state machine
In case of disconnection by AP or lost beacon, cancel EAPoL state machine
This commit is contained in:
parent
45dabb9e44
commit
de84aff10b
@ -240,6 +240,8 @@ struct netdev *netdev_find(int ifindex)
|
||||
|
||||
static void netdev_lost_beacon(struct netdev *netdev)
|
||||
{
|
||||
eapol_cancel(netdev->index);
|
||||
|
||||
if (!netdev->event_filter)
|
||||
return;
|
||||
|
||||
@ -354,6 +356,8 @@ static void netdev_disconnect_event(struct l_genl_msg *msg,
|
||||
if (!disconnect_by_ap)
|
||||
return;
|
||||
|
||||
eapol_cancel(netdev->index);
|
||||
|
||||
if (netdev->event_filter)
|
||||
netdev->event_filter(netdev, NETDEV_EVENT_DISCONNECT_BY_AP,
|
||||
netdev->user_data);
|
||||
|
Loading…
Reference in New Issue
Block a user