mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-17 17:39:28 +01:00
wiphy: DBus reply was sent too early when connecting PSK network
We can give reply to connect DBus call in associating event only when we are connecting to Open network. For PSK AP, the reply can only be sent after we have finished 4-way handshaking.
This commit is contained in:
parent
b044385cdc
commit
24e79280a9
11
src/wiphy.c
11
src/wiphy.c
@ -767,9 +767,14 @@ static void mlme_associate_event(struct l_genl_msg *msg, struct netdev *netdev)
|
||||
}
|
||||
|
||||
l_info("Association completed");
|
||||
reply = l_dbus_message_new_method_return(netdev->connect_pending);
|
||||
l_dbus_message_set_arguments(reply, "");
|
||||
dbus_pending_reply(&netdev->connect_pending, reply);
|
||||
|
||||
if (netdev->connected_bss &&
|
||||
netdev->connected_bss->network->ssid_security ==
|
||||
SCAN_SSID_SECURITY_NONE) {
|
||||
reply = l_dbus_message_new_method_return(netdev->connect_pending);
|
||||
l_dbus_message_set_arguments(reply, "");
|
||||
dbus_pending_reply(&netdev->connect_pending, reply);
|
||||
}
|
||||
}
|
||||
|
||||
static void genl_associate_cb(struct l_genl_msg *msg, void *user_data)
|
||||
|
Loading…
Reference in New Issue
Block a user