3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-17 17:39:28 +01:00

device: Move device_get_connected_network

out of wiphy.c
This commit is contained in:
Denis Kenzior 2016-06-14 11:30:19 -05:00
parent aedbdd01ae
commit e0c27a2ca8
2 changed files with 5 additions and 5 deletions

View File

@ -116,6 +116,11 @@ void __device_watch_call_removed(struct device *device)
}
}
struct network *device_get_connected_network(struct device *device)
{
return device->connected_network;
}
void device_disassociated(struct device *device)
{
struct network *network = device->connected_network;

View File

@ -140,11 +140,6 @@ static const char *device_state_to_string(enum device_state state)
return "invalid";
}
struct network *device_get_connected_network(struct device *device)
{
return device->connected_network;
}
bool device_is_busy(struct device *device)
{
if (device->state != DEVICE_STATE_DISCONNECTED &&