From e23ea59f95ebf941cdafe55b5866cb9bd6962471 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 14 Jun 2016 11:34:35 -0500 Subject: [PATCH] device: Move device_is_busy out of wiphy.c --- src/device.c | 9 +++++++++ src/wiphy.c | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) 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;