From a3fdb88a9ab7fb307dec3ec9acada9d266c5170e Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 14 Sep 2016 11:10:10 -0500 Subject: [PATCH] device: add device_get_netdev --- src/device.c | 5 +++++ src/device.h | 1 + 2 files changed, 6 insertions(+) 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);