mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
client: network connection check
This commit is contained in:
parent
c6b05c722b
commit
bc17967c91
@ -46,7 +46,13 @@ static void check_errors_method_callback(struct l_dbus_message *message,
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user