Merge pull request #5633 from dangowrt/status-wifi-he-rates

luci-mod-status: display full HE rate information
This commit is contained in:
Jo-Philipp Wich 2022-01-07 08:59:25 +01:00 committed by GitHub
commit 825e9d9dc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
},