From e0c27a2ca819d644a4dbe8be1426033615992d96 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 14 Jun 2016 11:30:19 -0500 Subject: [PATCH] device: Move device_get_connected_network out of wiphy.c --- src/device.c | 5 +++++ src/wiphy.c | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/device.c b/src/device.c index c8f97455..6caab4c8 100644 --- a/src/device.c +++ b/src/device.c @@ -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; diff --git a/src/wiphy.c b/src/wiphy.c index c2c1efed..267e94ec 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -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 &&