3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 11:52:34 +01:00

netdev: Add stubs for netdev_disconnect

This commit is contained in:
Denis Kenzior 2016-06-14 12:15:18 -05:00
parent b2d8616ca4
commit d297fbb215
2 changed files with 10 additions and 0 deletions

View File

@ -225,6 +225,12 @@ int netdev_connect(struct netdev *netdev, struct scan_bss *bss,
return 0;
}
int netdev_disconnect(struct netdev *netdev,
netdev_disconnect_cb_t cb, void *user_data)
{
return 0;
}
static void netdev_get_interface_callback(struct l_genl_msg *msg,
void *user_data)
{

View File

@ -49,6 +49,8 @@ typedef void (*netdev_connect_cb_t)(struct netdev *netdev,
typedef void (*netdev_event_func_t)(struct netdev *netdev,
enum netdev_event event,
void *user_data);
typedef void (*netdev_disconnect_cb_t)(struct netdev *netdev, bool result,
void *user_data);
void netdev_set_linkmode_and_operstate(uint32_t ifindex,
uint8_t linkmode, uint8_t operstate,
@ -63,6 +65,8 @@ int netdev_connect(struct netdev *netdev, struct scan_bss *bss,
struct eapol_sm *sm,
netdev_event_func_t event_filter,
netdev_connect_cb_t cb, void *user_data);
int netdev_disconnect(struct netdev *netdev,
netdev_disconnect_cb_t cb, void *user_data);
struct netdev *netdev_find(int ifindex);