summaryrefslogtreecommitdiffstats
path: root/package/network/utils/iwinfo/src/iwinfo_nl80211.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-21 12:33:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-21 12:33:27 +0000
commitb5eec473f0168d76fee9c9d89b8589c91ae2ef7f (patch)
treeefd7bd3b25741c6dfe11ef9bc3879bc30b04a70e /package/network/utils/iwinfo/src/iwinfo_nl80211.h
parent6c02355830a47bff8d8b5d7b0d770df6b4a4410a (diff)
downloadmaster-31e0f0ae-b5eec473f0168d76fee9c9d89b8589c91ae2ef7f.tar.gz
master-31e0f0ae-b5eec473f0168d76fee9c9d89b8589c91ae2ef7f.tar.bz2
master-31e0f0ae-b5eec473f0168d76fee9c9d89b8589c91ae2ef7f.zip
iwinfo: move nl80211_ops to iwinfo_nl80211.c, make functions static
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40812
Diffstat (limited to 'package/network/utils/iwinfo/src/iwinfo_nl80211.h')
-rw-r--r--package/network/utils/iwinfo/src/iwinfo_nl80211.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/package/network/utils/iwinfo/src/iwinfo_nl80211.h b/package/network/utils/iwinfo/src/iwinfo_nl80211.h
new file mode 100644
index 0000000000..a3e696bde4
--- /dev/null
+++ b/package/network/utils/iwinfo/src/iwinfo_nl80211.h
@@ -0,0 +1,70 @@
+/*
+ * iwinfo - Wireless Information Library - NL80211 Headers
+ *
+ * Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org>
+ *
+ * The iwinfo library is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ *
+ * The iwinfo library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with the iwinfo library. If not, see http://www.gnu.org/licenses/.
+ */
+
+#ifndef __IWINFO_NL80211_H_
+#define __IWINFO_NL80211_H_
+
+#include <errno.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <string.h>
+#include <dirent.h>
+#include <signal.h>
+#include <sys/un.h>
+#include <netlink/netlink.h>
+#include <netlink/genl/genl.h>
+#include <netlink/genl/family.h>
+#include <netlink/genl/ctrl.h>
+
+#include "iwinfo.h"
+#include "iwinfo/utils.h"
+#include "iwinfo/api/nl80211.h"
+
+struct nl80211_state {
+ struct nl_sock *nl_sock;
+ struct nl_cache *nl_cache;
+ struct genl_family *nl80211;
+ struct genl_family *nlctrl;
+};
+
+struct nl80211_msg_conveyor {
+ struct nl_msg *msg;
+ struct nl_cb *cb;
+};
+
+struct nl80211_event_conveyor {
+ int wait;
+ int recv;
+};
+
+struct nl80211_group_conveyor {
+ const char *name;
+ int id;
+};
+
+struct nl80211_rssi_rate {
+ int16_t rate;
+ int8_t rssi;
+};
+
+struct nl80211_array_buf {
+ void *buf;
+ int count;
+};
+
+#endif