libiwinfo: rework nl80211 interface code, plug remaining memory leaks
This commit is contained in:
parent
b1cc78085e
commit
ebc7582205
3 changed files with 380 additions and 337 deletions
|
@ -7,7 +7,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=libiwinfo
|
PKG_NAME:=libiwinfo
|
||||||
PKG_RELEASE:=15
|
PKG_RELEASE:=16
|
||||||
|
|
||||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -45,8 +45,6 @@ struct nl80211_msg_conveyor {
|
||||||
int custom_cb;
|
int custom_cb;
|
||||||
struct nl_msg *msg;
|
struct nl_msg *msg;
|
||||||
struct nl_cb *cb;
|
struct nl_cb *cb;
|
||||||
struct genlmsghdr *hdr;
|
|
||||||
struct nlattr *attr[NL80211_ATTR_MAX + 1];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct nl80211_rssi_rate {
|
struct nl80211_rssi_rate {
|
||||||
|
@ -60,6 +58,11 @@ struct nl80211_assoc_count {
|
||||||
int count;
|
int count;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct nl80211_arraybuf {
|
||||||
|
void *buf;
|
||||||
|
int count;
|
||||||
|
};
|
||||||
|
|
||||||
int nl80211_probe(const char *ifname);
|
int nl80211_probe(const char *ifname);
|
||||||
int nl80211_get_mode(const char *ifname, char *buf);
|
int nl80211_get_mode(const char *ifname, char *buf);
|
||||||
int nl80211_get_ssid(const char *ifname, char *buf);
|
int nl80211_get_ssid(const char *ifname, char *buf);
|
||||||
|
|
Loading…
Reference in a new issue