From fdf0bc74e1c8266fdfeba7a45f8e750b2db51cac Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 10 Nov 2011 22:46:59 +0000 Subject: [PATCH] luci-0.10: merge r7919 --- contrib/package/iwinfo/src/iwinfo.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/package/iwinfo/src/iwinfo.lua b/contrib/package/iwinfo/src/iwinfo.lua index 4a982dd994..811022052b 100755 --- a/contrib/package/iwinfo/src/iwinfo.lua +++ b/contrib/package/iwinfo/src/iwinfo.lua @@ -140,11 +140,13 @@ end function print_assoclist(api, dev) local iw = iwinfo[api] local al = iw.assoclist(dev) + local ns = iw.noise(dev) local ai, ae if al and next(al) then for ai, ae in pairs(al) do - printf("%s %s dBm", ai, s(ae.signal)) + printf("%s %s dBm / %d dBm (SNR %d)", + ai, s(ae.signal), ns, n(ae.signal) - ns) end else print("No client connected or no information available") -- 2.30.2