mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-27 03:19:24 +01:00
netdev: Add netdev_get_ifindex
This commit is contained in:
parent
7c359ee2c2
commit
7a3f823d26
@ -117,6 +117,11 @@ void netdev_set_linkmode_and_operstate(uint32_t ifindex,
|
|||||||
l_free(rtmmsg);
|
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)
|
static void netdev_config_notify(struct l_genl_msg *msg, void *user_data)
|
||||||
{
|
{
|
||||||
struct l_genl_attr attr;
|
struct l_genl_attr attr;
|
||||||
|
@ -30,5 +30,7 @@ void netdev_set_linkmode_and_operstate(uint32_t ifindex,
|
|||||||
uint8_t linkmode, uint8_t operstate,
|
uint8_t linkmode, uint8_t operstate,
|
||||||
netdev_command_func_t cb, void *user_data);
|
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_init(struct l_genl_family *in);
|
||||||
bool netdev_exit(void);
|
bool netdev_exit(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user