ledtrig-netdev: add support for renamed devices
authorrmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 2 Jan 2016 22:15:31 +0000 (22:15 +0000)
committerrmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 2 Jan 2016 22:15:31 +0000 (22:15 +0000)
commit92daa01f7faa43072526dd4e78a79444f50db548
tree7ab28f794789d24d73bc8a9db37a73bdff8790f2
parenta255d388d7a9979123cb2ff36c5c58ceecad31da
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>
Backport of r48048

git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48073 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/leds/ledtrig-netdev.c