From f61747f011bc024144eb03d17c86ca3198ac86e4 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 4 Sep 2018 23:52:12 -0500 Subject: [PATCH] device: Allow switching mode even if station is busy Since device will no longer be aware of what is happening on the station interface, we should allow switching modes in any situation --- src/device.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/device.c b/src/device.c index 6dce36a6..adbaa09d 100644 --- a/src/device.c +++ b/src/device.c @@ -61,15 +61,6 @@ struct device { static uint32_t netdev_watch; -/* TODO: Remove when Station/Device is split */ -static bool device_is_busy(struct device *device) -{ - if (!device->powered || !device->station) - return false; - - return station_is_busy(device->station); -} - static void device_ap_roam_frame_event(struct netdev *netdev, const struct mmpdu_header *hdr, const void *body, size_t body_len, @@ -448,10 +439,6 @@ static struct l_dbus_message *device_property_set_mode(struct l_dbus *dbus, return NULL; } - /* TODO: Special case, remove when Device/Station split is made */ - if (iftype != NETDEV_IFTYPE_STATION && device_is_busy(device)) - return dbus_error_busy(message); - cb_data = l_new(struct set_generic_cb_data, 1); cb_data->device = device; cb_data->dbus = dbus;