mirror of
https://github.com/openwrt/luci.git
synced 2026-10-12 05:07:26 +04:00
The negotiated link speed of a network device isn't shown on the Network configuration pages, so a link stuck below its capability (e.g. a gigabit port at 100 Mbit/s) goes unnoticed. Add a "Link Speed" column to the Devices tab showing the negotiated speed, with the device's ethtool-supported speeds in a tooltip when available, and "-" when the device has no carrier or reports no speed. The columns are ordered by OSI layer: link speed (L1) before MAC (L2) and MTU (L3). The current speed comes from the device link state; the supported speeds are the distinct network.device status "link-supported" modes, fetched once in load(). Add the network.device "status" ACL grant so the view can call it. Signed-off-by: Paul Tobias <github@tobias.pt>