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_is_busy out of wiphy.c

This commit is contained in:
Denis Kenzior 2016-06-14 11:34:35 -05:00
parent 6e57e4a00c
commit e23ea59f95
2 changed files with 9 additions and 9 deletions

View File

@ -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;

View File

@ -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;