mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-17 17:39:28 +01:00
device: Move device_is_busy out of wiphy.c
This commit is contained in:
parent
6e57e4a00c
commit
e23ea59f95
@ -131,6 +131,15 @@ const char *device_get_path(struct device *device)
|
||||
return path;
|
||||
}
|
||||
|
||||
bool device_is_busy(struct device *device)
|
||||
{
|
||||
if (device->state != DEVICE_STATE_DISCONNECTED &&
|
||||
device->state != DEVICE_STATE_AUTOCONNECT)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void device_disassociated(struct device *device)
|
||||
{
|
||||
struct network *network = device->connected_network;
|
||||
|
@ -140,15 +140,6 @@ static const char *device_state_to_string(enum device_state state)
|
||||
return "invalid";
|
||||
}
|
||||
|
||||
bool device_is_busy(struct device *device)
|
||||
{
|
||||
if (device->state != DEVICE_STATE_DISCONNECTED &&
|
||||
device->state != DEVICE_STATE_AUTOCONNECT)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
struct wiphy *device_get_wiphy(struct device *device)
|
||||
{
|
||||
return device->wiphy;
|
||||
|
Loading…
Reference in New Issue
Block a user