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
|
@ -767,10 +767,15 @@ static void mlme_associate_event(struct l_genl_msg *msg, struct netdev *netdev)
|
|||
}
|
||||
|
||||
l_info("Association completed");
|
||||
|
||||
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