libiwinfo: rework nl80211 interface code, plug remaining memory leaks
[project/luci.git] / contrib / package / iwinfo / src / iwinfo_nl80211.h
index 7f6ffea..edad085 100644 (file)
@@ -45,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 {
@@ -60,6 +58,11 @@ struct nl80211_assoc_count {
        int count;
 };
 
+struct nl80211_arraybuf {
+       void *buf;
+       int count;
+};
+
 int nl80211_probe(const char *ifname);
 int nl80211_get_mode(const char *ifname, char *buf);
 int nl80211_get_ssid(const char *ifname, char *buf);