3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 11:52:34 +01:00

device: Handle successful connections

This commit is contained in:
Denis Kenzior 2016-06-16 10:53:26 -05:00
parent d82754636b
commit 1ab6415e8c

View File

@ -194,6 +194,18 @@ static void device_connect_cb(struct netdev *netdev, enum netdev_result result,
device_disassociated(device); device_disassociated(device);
return; return;
} }
if (device->connect_pending) {
struct l_dbus_message *reply;
reply = l_dbus_message_new_method_return(
device->connect_pending);
l_dbus_message_set_arguments(reply, "");
dbus_pending_reply(&device->connect_pending, reply);
}
network_connected(device->connected_network);
device_enter_state(device, DEVICE_STATE_CONNECTED);
} }
static void device_netdev_event(struct netdev *netdev, enum netdev_event event, static void device_netdev_event(struct netdev *netdev, enum netdev_event event,