3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-26 18:12:42 +01:00

knownnetworks: use get_name/get_type for dbus

The name/type on the dbus object will now refect the values
returned from the network_info ops
This commit is contained in:
James Prestwood 2019-08-21 12:06:15 -07:00 committed by Denis Kenzior
parent 313553aadd
commit 0d0377ede7

View File

@ -436,7 +436,8 @@ static bool known_network_property_get_name(struct l_dbus *dbus,
{
struct network_info *network = user_data;
l_dbus_message_builder_append_basic(builder, 's', network->ssid);
l_dbus_message_builder_append_basic(builder, 's',
network_info_get_name(network));
return true;
}
@ -449,7 +450,7 @@ static bool known_network_property_get_type(struct l_dbus *dbus,
struct network_info *network = user_data;
l_dbus_message_builder_append_basic(builder, 's',
security_to_str(network->type));
network_info_get_type(network));
return true;
}