libiwinfo: rework nl80211 interface code, plug remaining memory leaks

This commit is contained in:
Jo-Philipp Wich 2011-09-07 04:17:00 +00:00
parent b1cc78085e
commit ebc7582205
3 changed files with 380 additions and 337 deletions

View file

@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=libiwinfo
PKG_RELEASE:=15
PKG_RELEASE:=16
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)

File diff suppressed because it is too large Load diff

View 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);