summaryrefslogtreecommitdiff
path: root/iwinfo_lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'iwinfo_lua.c')
-rw-r--r--iwinfo_lua.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/iwinfo_lua.c b/iwinfo_lua.c
index 1421111..eebab8e 100644
--- 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);
}
}