2014-06-01 16:32:30 +02:00
|
|
|
#ifndef __WTP_KMOD_HEADER__
|
|
|
|
#define __WTP_KMOD_HEADER__
|
|
|
|
|
2014-06-07 22:37:19 +02:00
|
|
|
/* */
|
|
|
|
#ifdef HAVE_LIBNL_10
|
|
|
|
#define nl_sock nl_handle
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* */
|
|
|
|
struct wtp_kmod_handle {
|
|
|
|
struct nl_sock* nl;
|
|
|
|
int nl_fd;
|
|
|
|
struct nl_cb* nl_cb;
|
|
|
|
int nlsmartcapwap_id;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* */
|
|
|
|
#define WTP_KMOD_EVENT_MAX_ITEMS 2
|
|
|
|
struct wtp_kmod_event {
|
|
|
|
void (*event_handler)(int fd, void** params, int paramscount);
|
|
|
|
int paramscount;
|
|
|
|
void* params[WTP_KMOD_EVENT_MAX_ITEMS];
|
|
|
|
};
|
|
|
|
|
2014-06-01 16:32:30 +02:00
|
|
|
/* */
|
|
|
|
int wtp_kmod_init(void);
|
|
|
|
void wtp_kmod_free(void);
|
|
|
|
|
2014-06-07 22:37:19 +02:00
|
|
|
/* */
|
|
|
|
int wtp_kmod_isconnected(void);
|
|
|
|
int wtp_kmod_getfd(struct pollfd* fds, struct wtp_kmod_event* events, int count);
|
|
|
|
|
2014-06-04 22:58:34 +02:00
|
|
|
/* */
|
|
|
|
int wtp_kmod_join_mac80211_device(uint32_t ifindex);
|
|
|
|
|
2014-06-01 16:32:30 +02:00
|
|
|
#endif /* __WTP_KMOD_HEADER__ */
|