summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/iwinfo/src/iwinfo.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-02-05 18:20:48 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-02-05 18:20:48 +0000
commit59992443bc0bc57b9601940824cbe1f285be07b9 (patch)
treef58c594f99963c177b14d7ab31499a4763f6130e /contrib/package/iwinfo/src/iwinfo.h
parent8cd629e14820d30c3f4ecd981b35c58b99cf592d (diff)
libiwinfo: fix integer overflow in dbm to mw conversion, also allow odd dbm numbers
Diffstat (limited to 'contrib/package/iwinfo/src/iwinfo.h')
-rw-r--r--contrib/package/iwinfo/src/iwinfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo.h b/contrib/package/iwinfo/src/iwinfo.h
index a9889bd9f7..aa2f8335a1 100644
--- a/contrib/package/iwinfo/src/iwinfo.h
+++ b/contrib/package/iwinfo/src/iwinfo.h
@@ -64,8 +64,8 @@ struct iwinfo_assoclist_entry {
};
struct iwinfo_txpwrlist_entry {
- uint8_t dbm;
- uint8_t mw;
+ uint8_t dbm;
+ uint16_t mw;
};
struct iwinfo_freqlist_entry {