diff --git a/src/device.c b/src/device.c index fd96ff36..80849509 100644 --- a/src/device.c +++ b/src/device.c @@ -406,6 +406,11 @@ struct wiphy *device_get_wiphy(struct device *device) return device->wiphy; } +struct netdev *device_get_netdev(struct device *device) +{ + return device->netdev; +} + uint32_t device_get_ifindex(struct device *device) { return device->index; diff --git a/src/device.h b/src/device.h index 9fb79a8b..1851d402 100644 --- a/src/device.h +++ b/src/device.h @@ -55,6 +55,7 @@ struct network *device_get_connected_network(struct device *device); const char *device_get_path(struct device *device); bool device_is_busy(struct device *device); struct wiphy *device_get_wiphy(struct device *device); +struct netdev *device_get_netdev(struct device *device); uint32_t device_get_ifindex(struct device *device); const uint8_t *device_get_address(struct device *device);