summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static
diff options
context:
space:
mode:
authorAndre Heider <a.heider@gmail.com>2022-11-22 20:10:07 +0100
committerAndre Heider <a.heider@gmail.com>2023-01-23 14:51:28 +0100
commitd53ea72a88a2f9fb7ddee66eea562838f2d5c9f0 (patch)
tree6cfc90582713e398f779a3373964928202c2102a /modules/luci-base/htdocs/luci-static
parenteb93ea0ac244397aaba57a9c9db7414c518c7693 (diff)
luci-base: use "hwmodes_text" to describe wireless radios
This is a preformatted string like "ac/ax/b/g/n" for presentation. Signed-off-by: Andre Heider <a.heider@gmail.com>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/network.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js
index e0013c8ec0..2568017c26 100644
--- a/modules/luci-base/htdocs/luci-static/resources/network.js
+++ b/modules/luci-base/htdocs/luci-static/resources/network.js
@@ -3396,13 +3396,14 @@ WifiDevice = baseclass.extend(/** @lends LuCI.network.WifiDevice.prototype */ {
getI18n: function() {
var hw = this.ubus('dev', 'iwinfo', 'hardware'),
type = L.isObject(hw) ? hw.name : null;
+ var modes = this.ubus('dev', 'iwinfo', 'hwmodes_text');
if (this.ubus('dev', 'iwinfo', 'type') == 'wl')
type = 'Broadcom';
- return '%s 802.11%s Wireless Controller (%s)'.format(
+ return '%s %s Wireless Controller (%s)'.format(
type || 'Generic',
- this.getHWModes().sort(L.naturalCompare).join(''),
+ modes ? '802.11' + modes : 'unknown',
this.getName());
},