summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/htdocs/luci-static
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-01-07 00:57:50 +0000
committerDaniel Golle <daniel@makrotopia.org>2022-01-07 01:09:48 +0000
commit7eeea43df17ebb58714876ad31152345018a0684 (patch)
tree81fbc7b71f1b8deccc1f9c559049db90911f9b45 /modules/luci-mod-status/htdocs/luci-static
parent48599d8d1dbb1f9f2777d74c2a873aa9c873b7eb (diff)
luci-mod-status: display full HE rate information
Associated Stations on the status page should also show full HE rate information which was added by commit f35e877dc6 ("luci-mod-network: add 802.11ax HE support") However, it was only added to the Wireless page and not to the summary on the Status page. Add it there as well. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js
index 333884449f..c4fa31fcf6 100644
--- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js
+++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js
@@ -28,7 +28,9 @@ return baseclass.extend({
var s = '%.1f\xa0%s, %d\xa0%s'.format(rt.rate / 1000, _('Mbit/s'), rt.mhz, _('MHz')),
ht = rt.ht, vht = rt.vht,
mhz = rt.mhz, nss = rt.nss,
- mcs = rt.mcs, sgi = rt.short_gi;
+ mcs = rt.mcs, sgi = rt.short_gi,
+ he = rt.he, he_gi = rt.he_gi,
+ he_dcm = rt.he_dcm;
if (ht || vht) {
if (vht) s += ', VHT-MCS\xa0%d'.format(mcs);
@@ -37,6 +39,13 @@ return baseclass.extend({
if (sgi) s += ', ' + _('Short GI').replace(/ /g, '\xa0');
}
+ if (he) {
+ s += ', HE-MCS\xa0%d'.format(mcs);
+ if (nss) s += ', HE-NSS\xa0%d'.format(nss);
+ if (he_gi) s += ', HE-GI\xa0%d'.format(he_gi);
+ if (he_dcm) s += ', HE-DCM\xa0%d'.format(he_dcm);
+ }
+
return s;
},