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_ifindex

This commit is contained in:
Denis Kenzior 2016-06-01 15:27:05 -05:00
parent 7c359ee2c2
commit 7a3f823d26
2 changed files with 7 additions and 0 deletions

View File

@ -117,6 +117,11 @@ void netdev_set_linkmode_and_operstate(uint32_t ifindex,
l_free(rtmmsg);
}
uint32_t netdev_get_ifindex(struct netdev *netdev)
{
return netdev->index;
}
static void netdev_config_notify(struct l_genl_msg *msg, void *user_data)
{
struct l_genl_attr attr;

View File

@ -30,5 +30,7 @@ void netdev_set_linkmode_and_operstate(uint32_t ifindex,
uint8_t linkmode, uint8_t operstate,
netdev_command_func_t cb, void *user_data);
uint32_t netdev_get_ifindex(struct netdev *netdev);
bool netdev_init(struct l_genl_family *in);
bool netdev_exit(void);