diff --git a/src/device.c b/src/device.c index 06e35959..f3327dd6 100644 --- a/src/device.c +++ b/src/device.c @@ -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; diff --git a/src/wiphy.c b/src/wiphy.c index 97a32598..75179612 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -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;