luci-mod-status: 29_ports.js: handle devices without speed indication
authorJo-Philipp Wich <jo@mein.io>
Tue, 31 Oct 2023 22:53:25 +0000 (23:53 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 2 Nov 2023 10:43:53 +0000 (11:43 +0100)
commit13f654c993a64f4985d7695ac091db2a51eb701a
tree002411b495aa66034daee049c57d5044b07bb661
parentf875367413201aaaf25c7897eb9fd2a206c58f55
luci-mod-status: 29_ports.js: handle devices without speed indication

Use carrier state to distinguish connected/no link states and simply
print "Connected" if no speed indication is available.

Fixes: #6663
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0bf5e5ca06a53140667f12fd728257157a3d945e)
modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/29_ports.js