libiwinfo: remove unused struct
[project/luci.git] / contrib / package / iwinfo / src / iwinfo_nl80211.h
index 0cf7419..1fb5cf5 100644 (file)
 #include <fcntl.h>
 #include <unistd.h>
 #include <string.h>
-#include <sys/socket.h>
+#include <dirent.h>
+#include <signal.h>
 #include <sys/un.h>
-#include <net/if.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 "include/nl80211.h"
 
 struct nl80211_state {
@@ -44,8 +45,6 @@ struct nl80211_msg_conveyor {
        int custom_cb;
        struct nl_msg *msg;
        struct nl_cb *cb;
-       struct genlmsghdr *hdr;
-       struct nlattr *attr[NL80211_ATTR_MAX + 1];
 };
 
 struct nl80211_rssi_rate {
@@ -53,9 +52,8 @@ struct nl80211_rssi_rate {
        int8_t  rssi;
 };
 
-struct nl80211_assoc_count {
-       struct iwinfo_assoclist_entry *entry;
-       int noise;
+struct nl80211_array_buf {
+       void *buf;
        int count;
 };
 
@@ -78,6 +76,8 @@ int nl80211_get_txpwrlist(const char *ifname, char *buf, int *len);
 int nl80211_get_scanlist(const char *ifname, char *buf, int *len);
 int nl80211_get_freqlist(const char *ifname, char *buf, int *len);
 int nl80211_get_countrylist(const char *ifname, char *buf, int *len);
+int nl80211_get_hwmodelist(const char *ifname, int *buf);
 int nl80211_get_mbssid_support(const char *ifname, int *buf);
+void nl80211_close(void);
 
 #endif