luci-mod-network: give wireless.js ES2016 treatment and refactor
authorPaul Donald <[email protected]>
Tue, 8 Apr 2025 01:46:28 +0000 (03:46 +0200)
committerPaul Donald <[email protected]>
Tue, 8 Apr 2025 01:46:28 +0000 (03:46 +0200)
typo

Signed-off-by: Paul Donald <[email protected]>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js

index e219a12175014a2e86d76cd4677c519375089d35..9cc9cd5bdd79b5fd2dbcbf38bd7523e40f27f1ae 100644 (file)
@@ -203,7 +203,7 @@ function format_wifirate(rate) {
        const eht_dcm = rate?.eht_dcm ?? 0;
 
        if (ht || vht) s += [
-               vht && `, VHT-MCS\xa0${$mcs}`,
+               vht && `, VHT-MCS\xa0${mcs}`,
                nss && `, VHT-NSS\xa0${nss}`,
                ht  && `, MCS\xa0${mcs}`,
                sgi && ', ' + _('Short GI').replace(/ /g, '\xa0')