projects
/
oweals
/
iwinfo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add support for expected throughput
[oweals/iwinfo.git]
/
iwinfo_lua.c
diff --git
a/iwinfo_lua.c
b/iwinfo_lua.c
index 14211115c9881873b5a91e930a348876ffcf2bb5..eebab8e8987d2f95ecae8d85d5f494854261875a 100644
(file)
--- a/
iwinfo_lua.c
+++ b/
iwinfo_lua.c
@@
-328,6
+328,11
@@
static int iwinfo_L_assoclist(lua_State *L, int (*func)(const char *, char *, in
set_rateinfo(L, &e->rx_rate, true);
set_rateinfo(L, &e->tx_rate, false);
+ if (e->thr) {
+ lua_pushnumber(L, e->thr);
+ lua_setfield(L, -2, "expected_throughput");
+ }
+
lua_setfield(L, -2, macstr);
}
}