git.99rst.org
/
openwrt-luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
eb93ea0
)
luci-base: use "hwmodes_text" to describe wireless radios
author
Andre Heider
<redacted>
Tue, 22 Nov 2022 19:10:07 +0000
(20:10 +0100)
committer
Andre Heider
<redacted>
Mon, 23 Jan 2023 13:51:28 +0000
(14:51 +0100)
This is a preformatted string like "ac/ax/b/g/n" for presentation.
Signed-off-by: Andre Heider <redacted>
modules/luci-base/htdocs/luci-static/resources/network.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/network.js
b/modules/luci-base/htdocs/luci-static/resources/network.js
index e0013c8ec05ab7715d409cc3a012578a79b547ee..2568017c26d6613c5fc109b6132c87226fd43c00 100644
(file)
--- 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());
},
git clone https://git.99rst.org/PROJECT