3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 03:32:42 +01:00

device: add device_get_netdev

This commit is contained in:
Denis Kenzior 2016-09-14 11:10:10 -05:00
parent 959ebd505b
commit a3fdb88a9a
2 changed files with 6 additions and 0 deletions

View File

@ -406,6 +406,11 @@ struct wiphy *device_get_wiphy(struct device *device)
return device->wiphy; return device->wiphy;
} }
struct netdev *device_get_netdev(struct device *device)
{
return device->netdev;
}
uint32_t device_get_ifindex(struct device *device) uint32_t device_get_ifindex(struct device *device)
{ {
return device->index; return device->index;

View File

@ -55,6 +55,7 @@ struct network *device_get_connected_network(struct device *device);
const char *device_get_path(struct device *device); const char *device_get_path(struct device *device);
bool device_is_busy(struct device *device); bool device_is_busy(struct device *device);
struct wiphy *device_get_wiphy(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); uint32_t device_get_ifindex(struct device *device);
const uint8_t *device_get_address(struct device *device); const uint8_t *device_get_address(struct device *device);