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)
|
static void netdev_lost_beacon(struct netdev *netdev)
|
||||||
{
|
{
|
||||||
|
eapol_cancel(netdev->index);
|
||||||
|
|
||||||
if (!netdev->event_filter)
|
if (!netdev->event_filter)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -354,6 +356,8 @@ static void netdev_disconnect_event(struct l_genl_msg *msg,
|
||||||
if (!disconnect_by_ap)
|
if (!disconnect_by_ap)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
eapol_cancel(netdev->index);
|
||||||
|
|
||||||
if (netdev->event_filter)
|
if (netdev->event_filter)
|
||||||
netdev->event_filter(netdev, NETDEV_EVENT_DISCONNECT_BY_AP,
|
netdev->event_filter(netdev, NETDEV_EVENT_DISCONNECT_BY_AP,
|
||||||
netdev->user_data);
|
netdev->user_data);
|
||||||
|
|
Loading…
Reference in New Issue