2013-12-20 23:14:34 +01:00
|
|
|
#ifndef __WIFI_NL80211_HEADER__
|
|
|
|
#define __WIFI_NL80211_HEADER__
|
|
|
|
|
2014-01-21 19:54:59 +01:00
|
|
|
#include "capwap_hash.h"
|
2014-02-08 18:03:38 +01:00
|
|
|
#include "netlink_link.h"
|
2014-01-21 19:54:59 +01:00
|
|
|
|
2013-12-20 23:14:34 +01:00
|
|
|
/* Compatibility functions */
|
2014-02-08 18:03:38 +01:00
|
|
|
#ifdef HAVE_LIBNL_10
|
2013-12-20 23:14:34 +01:00
|
|
|
#define nl_sock nl_handle
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* */
|
|
|
|
typedef int (*nl_valid_cb)(struct nl_msg* msg, void* data);
|
|
|
|
|
|
|
|
/* Global handle */
|
|
|
|
struct nl80211_global_handle {
|
|
|
|
struct nl_sock* nl;
|
|
|
|
struct nl_cb* nl_cb;
|
|
|
|
int nl80211_id;
|
|
|
|
|
2014-01-13 19:00:51 +01:00
|
|
|
struct nl_sock* nl_event;
|
|
|
|
int nl_event_fd;
|
|
|
|
|
2014-02-08 18:03:38 +01:00
|
|
|
struct netlink* netlinkhandle;
|
|
|
|
|
2013-12-20 23:14:34 +01:00
|
|
|
int sock_util;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Device handle */
|
|
|
|
struct nl80211_device_handle {
|
|
|
|
struct nl80211_global_handle* globalhandle;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* WLAN handle */
|
|
|
|
struct nl80211_wlan_handle {
|
|
|
|
struct nl80211_device_handle* devicehandle;
|
|
|
|
|
|
|
|
struct nl_sock* nl;
|
2013-12-21 23:50:15 +01:00
|
|
|
int nl_fd;
|
2013-12-20 23:14:34 +01:00
|
|
|
struct nl_cb* nl_cb;
|
|
|
|
|
2014-01-13 19:00:51 +01:00
|
|
|
uint64_t last_cookie;
|
2014-01-21 19:54:59 +01:00
|
|
|
};
|
|
|
|
|
2013-12-20 23:14:34 +01:00
|
|
|
#endif /* __WIFI_NL80211_HEADER__ */
|