3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

client: network connection check

This commit is contained in:
Tim Kourt 2017-04-27 12:36:25 -07:00 committed by Denis Kenzior
parent c6b05c722b
commit bc17967c91

View File

@ -46,7 +46,13 @@ static void check_errors_method_callback(struct l_dbus_message *message,
bool network_is_connected(const char *path) bool network_is_connected(const char *path)
{ {
return false; const struct network *network;
const struct proxy_interface *proxy =
proxy_interface_find(IWD_NETWORK_INTERFACE, path);
network = proxy_interface_get_data(proxy);
return network->connected;
} }
void network_connect(const char *path) void network_connect(const char *path)