diff --git a/src/device.c b/src/device.c index 8ec0271a..d62e2114 100644 --- a/src/device.c +++ b/src/device.c @@ -145,6 +145,11 @@ struct wiphy *device_get_wiphy(struct device *device) return device->wiphy; } +uint32_t device_get_ifindex(struct device *device) +{ + return device->index; +} + void device_disassociated(struct device *device) { struct network *network = device->connected_network; diff --git a/src/wiphy.c b/src/wiphy.c index 4466ca58..f7bde988 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -212,11 +212,6 @@ const uint8_t *device_get_address(struct device *device) return netdev_get_address(device->netdev); } -uint32_t device_get_ifindex(struct device *device) -{ - return device->index; -} - void __iwd_device_foreach(iwd_device_foreach_func func, void *user_data) { const struct l_queue_entry *device_entry;