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;