freewtp/src/wtp/binding/ieee80211/wifi_nl80211.h

46 lines
839 B
C
Raw Normal View History

2013-12-20 23:14:34 +01:00
#ifndef __WIFI_NL80211_HEADER__
#define __WIFI_NL80211_HEADER__
#include "capwap_hash.h"
#include "netlink_link.h"
2013-12-20 23:14:34 +01:00
/* Compatibility functions */
#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;
struct nl_sock* nl_event;
int nl_event_fd;
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;
uint64_t last_cookie;
};
2013-12-20 23:14:34 +01:00
#endif /* __WIFI_NL80211_HEADER__ */