switch: allow Ethernet port LEDs to show specific port speeds only
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 25 Feb 2016 13:31:26 +0000 (13:31 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 25 Feb 2016 13:31:26 +0000 (13:31 +0000)
commit5ea1bd7d4cce0888dacd4783ac88eb0905abc6ed
tree9c368b540b64e2b2269fb8221310d17de88a090f
parentafcd38fdaf932a3d549ee1275706fb2ff7694cd6
switch: allow Ethernet port LEDs to show specific port speeds only

This patch adds speed_mask special file to LEDs connected to switch ports
via 'switch' trigger. It allows to choose which speeds to signal when link
is up. If router has more than one LED per port, they may light up
differently depending on how fast connection is. Default setting is 'all
speeds' so backward compatibility with system scripts (for example uci) is
maintained.

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48775 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/swconfig_leds.c