netdev: Add netdev_get_handshake

Getter for current handshake_state object.
This commit is contained in:
Andrew Zaborowski 2016-12-23 05:38:07 -05:00 committed by Denis Kenzior
parent c36d0fcfa4
commit f73b751124
2 changed files with 6 additions and 0 deletions

View File

@ -191,6 +191,11 @@ bool netdev_get_is_up(struct netdev *netdev)
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 netdev *netdev;
netdev_set_powered_cb_t callback;

View File

@ -81,6 +81,7 @@ uint32_t netdev_get_ifindex(struct netdev *netdev);
uint32_t netdev_get_iftype(struct netdev *netdev);
const char *netdev_get_name(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,
struct handshake_state *hs,