summaryrefslogtreecommitdiffhomepage
path: root/libs/iwinfo/src/iwinfo_lualib.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-24 14:23:49 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-24 14:23:49 +0000
commit0f242f2f503258c1902a9ea7317b04231360ec88 (patch)
treed5aab6a720256dfd1d8b806ec5e713b0a25bde2e /libs/iwinfo/src/iwinfo_lualib.c
parent0e88acfd4ef3abd5af048fda14810a207681c913 (diff)
libs/iwinfo: add signal and quality values to scan results
Diffstat (limited to 'libs/iwinfo/src/iwinfo_lualib.c')
-rw-r--r--libs/iwinfo/src/iwinfo_lualib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/iwinfo/src/iwinfo_lualib.c b/libs/iwinfo/src/iwinfo_lualib.c
index 0bd2fa59a..a798d7729 100644
--- a/libs/iwinfo/src/iwinfo_lualib.c
+++ b/libs/iwinfo/src/iwinfo_lualib.c
@@ -150,6 +150,16 @@ static int iwinfo_L_scanlist(lua_State *L, int (*func)(const char *, char *, int
lua_pushstring(L, (char *) e->mode);
lua_setfield(L, -2, "mode");
+ /* Quality, Signal */
+ lua_pushinteger(L, e->quality);
+ lua_setfield(L, -2, "quality");
+
+ lua_pushinteger(L, e->quality_max);
+ lua_setfield(L, -2, "quality_max");
+
+ lua_pushnumber(L, (e->signal - 0x100));
+ lua_setfield(L, -2, "signal");
+
/* Crypto */
lua_pushinteger(L, e->crypto.wpa_version);
lua_setfield(L, -2, "wpa");