diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-07 04:19:49 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-09-07 04:19:49 +0000 |
commit | 8bfa762e0cd5fcb4bb8159db578fd0b3fb23964a (patch) | |
tree | 8b059c501290e5757a35ddf1a52483077e74ec8a /contrib/package/iwinfo | |
parent | ebc7582205400edebbaf9d9d2ecdba4676096f76 (diff) |
libiwinfo: remove unused struct
Diffstat (limited to 'contrib/package/iwinfo')
-rw-r--r-- | contrib/package/iwinfo/src/iwinfo_nl80211.c | 8 | ||||
-rw-r--r-- | contrib/package/iwinfo/src/iwinfo_nl80211.h | 8 |
2 files changed, 5 insertions, 11 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo_nl80211.c b/contrib/package/iwinfo/src/iwinfo_nl80211.c index abaeb511d0..dba67077a3 100644 --- a/contrib/package/iwinfo/src/iwinfo_nl80211.c +++ b/contrib/package/iwinfo/src/iwinfo_nl80211.c @@ -1046,7 +1046,7 @@ int nl80211_get_encryption(const char *ifname, char *buf) static int nl80211_get_assoclist_cb(struct nl_msg *msg, void *arg) { - struct nl80211_arraybuf *arr = arg; + struct nl80211_array_buf *arr = arg; struct iwinfo_assoclist_entry *e = arr->buf; struct nlattr **attr = nl80211_parse(msg); struct nlattr *sinfo[NL80211_STA_INFO_MAX + 1]; @@ -1092,7 +1092,7 @@ int nl80211_get_assoclist(const char *ifname, char *buf, int *len) int i, noise = 0; struct dirent *de; struct nl80211_msg_conveyor *req; - struct nl80211_arraybuf arr = { .buf = buf, .count = 0 }; + struct nl80211_array_buf arr = { .buf = buf, .count = 0 }; struct iwinfo_assoclist_entry *e; if ((d = opendir("/sys/class/net")) != NULL) @@ -1434,7 +1434,7 @@ static int nl80211_get_freqlist_cb(struct nl_msg *msg, void *arg) { int bands_remain, freqs_remain; - struct nl80211_arraybuf *arr = arg; + struct nl80211_array_buf *arr = arg; struct iwinfo_freqlist_entry *e = arr->buf; struct nlattr **attr = nl80211_parse(msg); @@ -1486,7 +1486,7 @@ static int nl80211_get_freqlist_cb(struct nl_msg *msg, void *arg) int nl80211_get_freqlist(const char *ifname, char *buf, int *len) { struct nl80211_msg_conveyor *req; - struct nl80211_arraybuf arr = { .buf = buf, .count = 0 }; + struct nl80211_array_buf arr = { .buf = buf, .count = 0 }; req = nl80211_msg(ifname, NL80211_CMD_GET_WIPHY, 0); if (req) diff --git a/contrib/package/iwinfo/src/iwinfo_nl80211.h b/contrib/package/iwinfo/src/iwinfo_nl80211.h index edad085b43..1fb5cf5f60 100644 --- a/contrib/package/iwinfo/src/iwinfo_nl80211.h +++ b/contrib/package/iwinfo/src/iwinfo_nl80211.h @@ -52,13 +52,7 @@ struct nl80211_rssi_rate { int8_t rssi; }; -struct nl80211_assoc_count { - struct iwinfo_assoclist_entry *entry; - int noise; - int count; -}; - -struct nl80211_arraybuf { +struct nl80211_array_buf { void *buf; int count; }; |