3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

client: Remove support for WDS property

This commit is contained in:
Denis Kenzior 2019-10-24 11:41:01 -05:00
parent 8a80b30201
commit 6ef5549faf

View File

@ -161,27 +161,6 @@ static void update_powered(void *data, struct l_dbus_message_iter *variant)
device->powered = value; device->powered = value;
} }
static const char *get_wds_tostr(const void *data)
{
const struct device *device = data;
return device->wds ? "on" : "off";
}
static void update_wds(void *data, struct l_dbus_message_iter *variant)
{
struct device *device = data;
bool value;
if (!l_dbus_message_iter_get_variant(variant, "b", &value)) {
device->wds = false;
return;
}
device->wds = value;
}
static void update_adapter(void *data, struct l_dbus_message_iter *variant) static void update_adapter(void *data, struct l_dbus_message_iter *variant)
{ {
struct device *device = data; struct device *device = data;
@ -205,9 +184,6 @@ static const struct proxy_interface_property device_properties[] = {
properties_on_off_opts }, properties_on_off_opts },
{ "Adapter", "o", update_adapter }, { "Adapter", "o", update_adapter },
{ "Address", "s", update_address, get_address }, { "Address", "s", update_address, get_address },
{ "WDS", "b", update_wds, get_wds_tostr, true,
properties_builder_append_on_off_variant,
properties_on_off_opts },
{ } { }
}; };