ledtrig-netdev: add support for renamed devices
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 1 Jan 2016 21:19:41 +0000 (21:19 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 1 Jan 2016 21:19:41 +0000 (21:19 +0000)
commitc2303e220356d91dfd4cdcdb90d19692a5ca991d
tree55f7a956c11d574da08fca1ee455f80141b78775
parent5faa60dc966237660bde25eefe0ba1d290c02966
ledtrig-netdev: add support for renamed devices

The ppp0 interface is renamed after the connection is established. Due
to a missing NETDEV_REGISTER event, the ledtrig-netdev isn't aware of
the renamed interface and literally ignores the device
(no tx/rx indication, led isn't switched off with 'ifdown wan').

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48048 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/leds/ledtrig-netdev.c