3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-17 17:39:28 +01:00

netdev: Add netdev_get_device

This commit is contained in:
Denis Kenzior 2018-08-17 14:59:01 -05:00
parent 3788156f39
commit 28916dc5ca
2 changed files with 7 additions and 0 deletions

View File

@ -296,6 +296,11 @@ struct handshake_state *netdev_get_handshake(struct netdev *netdev)
return netdev->handshake;
}
struct device *netdev_get_device(struct netdev *netdev)
{
return netdev->device;
}
static void netdev_set_powered_result(int error, uint16_t type,
const void *data,
uint32_t len, void *user_data)

View File

@ -23,6 +23,7 @@
#include <stdbool.h>
struct netdev;
struct device;
struct scan_bss;
struct handshake_state;
struct eapol_sm;
@ -108,6 +109,7 @@ int netdev_set_4addr(struct netdev *netdev, bool use_4addr,
bool netdev_get_4addr(struct netdev *netdev);
const char *netdev_get_name(struct netdev *netdev);
bool netdev_get_is_up(struct netdev *netdev);
struct device *netdev_get_device(struct netdev *netdev);
struct handshake_state *netdev_handshake_state_new(struct netdev *netdev);
struct handshake_state *netdev_get_handshake(struct netdev *netdev);