mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
netdev: Add netdev_get_handshake
Getter for current handshake_state object.
This commit is contained in:
parent
c36d0fcfa4
commit
f73b751124
@ -191,6 +191,11 @@ bool netdev_get_is_up(struct netdev *netdev)
|
|||||||
return (netdev->ifi_flags & IFF_UP) != 0;
|
return (netdev->ifi_flags & IFF_UP) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct handshake_state *netdev_get_handshake(struct netdev *netdev)
|
||||||
|
{
|
||||||
|
return netdev->handshake;
|
||||||
|
}
|
||||||
|
|
||||||
struct set_powered_cb_data {
|
struct set_powered_cb_data {
|
||||||
struct netdev *netdev;
|
struct netdev *netdev;
|
||||||
netdev_set_powered_cb_t callback;
|
netdev_set_powered_cb_t callback;
|
||||||
|
@ -81,6 +81,7 @@ uint32_t netdev_get_ifindex(struct netdev *netdev);
|
|||||||
uint32_t netdev_get_iftype(struct netdev *netdev);
|
uint32_t netdev_get_iftype(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 handshake_state *netdev_get_handshake(struct netdev *netdev);
|
||||||
|
|
||||||
int netdev_connect(struct netdev *netdev, struct scan_bss *bss,
|
int netdev_connect(struct netdev *netdev, struct scan_bss *bss,
|
||||||
struct handshake_state *hs,
|
struct handshake_state *hs,
|
||||||
|
Loading…
Reference in New Issue
Block a user