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

device: Add additional debugs

This commit is contained in:
Denis Kenzior 2016-08-04 10:39:41 -05:00
parent d95f9a29c5
commit cec2104ffa

View File

@ -533,6 +533,8 @@ void device_disassociated(struct device *device)
struct network *network = device->connected_network;
struct l_dbus *dbus = dbus_get_bus();
l_debug("%d", device->index);
if (network) {
if (device->state == DEVICE_STATE_CONNECTED)
network_disconnected(network);
@ -582,6 +584,8 @@ static void device_connect_cb(struct netdev *netdev, enum netdev_result result,
{
struct device *device = user_data;
l_debug("%d, result: %d", device->index, result);
if (device->connect_pending) {
struct l_dbus_message *reply;
@ -770,6 +774,8 @@ static void device_disconnect_cb(struct netdev *netdev, bool success,
struct device *device = user_data;
struct l_dbus_message *reply;
l_debug("%d, success: %d", device->index, success);
if (!success) {
if (!device->disconnect_pending)
return;