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:
parent
aedbdd01ae
commit
e0c27a2ca8
@ -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;
|
||||
|
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user