3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 06:02:37 +01:00

netdev: Add netdev_get_iftype

This commit is contained in:
Denis Kenzior 2016-06-01 17:04:10 -05:00
parent 1bd7baf44b
commit 1573bf7d99
2 changed files with 6 additions and 0 deletions

View File

@ -128,6 +128,11 @@ uint32_t netdev_get_ifindex(struct netdev *netdev)
return netdev->index;
}
uint32_t netdev_get_iftype(struct netdev *netdev)
{
return netdev->type;
}
static void netdev_free(void *data)
{
struct netdev *netdev = data;

View File

@ -32,6 +32,7 @@ void netdev_set_linkmode_and_operstate(uint32_t ifindex,
const uint8_t *netdev_get_address(struct netdev *netdev);
uint32_t netdev_get_ifindex(struct netdev *netdev);
uint32_t netdev_get_iftype(struct netdev *netdev);
struct netdev *netdev_find(int ifindex);