device: add debug prints for mode switching

Its useful to know when the device has switched modes
This commit is contained in:
James Prestwood 2018-07-03 14:11:50 -07:00 committed by Denis Kenzior
parent 5b8f052524
commit d4e521027b
1 changed files with 4 additions and 0 deletions

View File

@ -2065,6 +2065,8 @@ static struct l_dbus_message *device_set_mode_ap(struct device *device,
device->state != DEVICE_STATE_AUTOCONNECT)
return dbus_error_busy(message);
l_debug("");
periodic_scan_stop(device);
/* Drop all state we can related to client mode */
@ -2106,6 +2108,8 @@ static struct l_dbus_message *device_set_mode_sta(struct device *device,
ap_remove_interface(device);
l_debug("");
return NULL;
}