2 * iwinfo - Wireless Information Library - NL80211 Headers
4 * Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
6 * The iwinfo library is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License version 2
8 * as published by the Free Software Foundation.
10 * The iwinfo library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with the iwinfo library. If not, see http://www.gnu.org/licenses/.
19 #ifndef __IWINFO_NL80211_H_
20 #define __IWINFO_NL80211_H_
29 #include <netlink/netlink.h>
30 #include <netlink/genl/genl.h>
31 #include <netlink/genl/family.h>
32 #include <netlink/genl/ctrl.h>
35 #include "iwinfo/utils.h"
36 #include "api/nl80211.h"
38 struct nl80211_state
{
39 struct nl_sock
*nl_sock
;
40 struct nl_cache
*nl_cache
;
41 struct genl_family
*nl80211
;
42 struct genl_family
*nlctrl
;
45 struct nl80211_msg_conveyor
{
50 struct nl80211_event_conveyor
{
51 uint32_t wait
[(NL80211_CMD_MAX
/ 32) + !!(NL80211_CMD_MAX
% 32)];
55 struct nl80211_group_conveyor
{
60 struct nl80211_rssi_rate
{
67 struct nl80211_array_buf
{