3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 22:42:37 +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:
Jukka Rissanen 2015-03-19 15:21:44 +02:00 committed by Denis Kenzior
parent b044385cdc
commit 24e79280a9

View File

@ -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)