eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit f61747f011bc024144eb03d17c86ca3198ac86e4
parent 25f36f56446466415ff2e567598b80d6b234a84c
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Tue,  4 Sep 2018 23:52:12 -0500

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

Diffstat:
Msrc/device.c | 13-------------
1 file changed, 0 insertions(+), 13 deletions(-)

diff --git 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;