diff --git a/src/device.c b/src/device.c index f3327dd6..8ec0271a 100644 --- a/src/device.c +++ b/src/device.c @@ -140,6 +140,11 @@ bool device_is_busy(struct device *device) return false; } +struct wiphy *device_get_wiphy(struct device *device) +{ + return device->wiphy; +} + void device_disassociated(struct device *device) { struct network *network = device->connected_network; diff --git a/src/wiphy.c b/src/wiphy.c index 75179612..4466ca58 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 wiphy *device_get_wiphy(struct device *device) -{ - return device->wiphy; -} - void device_enter_state(struct device *device, enum device_state state) { l_debug("Old State: %s, new state: %s",