mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-02 17:42:34 +01:00
netdev: Add netdev_get_device
This commit is contained in:
parent
3788156f39
commit
28916dc5ca
@ -296,6 +296,11 @@ struct handshake_state *netdev_get_handshake(struct netdev *netdev)
|
|||||||
return netdev->handshake;
|
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,
|
static void netdev_set_powered_result(int error, uint16_t type,
|
||||||
const void *data,
|
const void *data,
|
||||||
uint32_t len, void *user_data)
|
uint32_t len, void *user_data)
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
struct netdev;
|
struct netdev;
|
||||||
|
struct device;
|
||||||
struct scan_bss;
|
struct scan_bss;
|
||||||
struct handshake_state;
|
struct handshake_state;
|
||||||
struct eapol_sm;
|
struct eapol_sm;
|
||||||
@ -108,6 +109,7 @@ int netdev_set_4addr(struct netdev *netdev, bool use_4addr,
|
|||||||
bool netdev_get_4addr(struct netdev *netdev);
|
bool netdev_get_4addr(struct netdev *netdev);
|
||||||
const char *netdev_get_name(struct netdev *netdev);
|
const char *netdev_get_name(struct netdev *netdev);
|
||||||
bool netdev_get_is_up(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_handshake_state_new(struct netdev *netdev);
|
||||||
struct handshake_state *netdev_get_handshake(struct netdev *netdev);
|
struct handshake_state *netdev_get_handshake(struct netdev *netdev);
|
||||||
|
Loading…
Reference in New Issue
Block a user