mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-19 18:22:32 +01:00
wiphy: Fix deauthenticate event from AP
If AP issued deauthenticate event, netdev->connect_pending is null. iwd crashes without this check.
This commit is contained in:
parent
cda62d8068
commit
46cdef5f7b
@ -761,10 +761,14 @@ static void mlme_deauthenticate_event(struct l_genl_msg *msg,
|
||||
}
|
||||
|
||||
l_info("Deauthentication completed");
|
||||
netdev->connected_bss = NULL;
|
||||
|
||||
if (!netdev->connect_pending)
|
||||
return;
|
||||
|
||||
reply = l_dbus_message_new_method_return(netdev->connect_pending);
|
||||
l_dbus_message_set_arguments(reply, "");
|
||||
dbus_pending_reply(&netdev->connect_pending, reply);
|
||||
netdev->connected_bss = NULL;
|
||||
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user