ledtrig-netdev: add support for renamed devices
authorRafał Miłecki <zajec5@gmail.com>
Sat, 2 Jan 2016 22:15:31 +0000 (22:15 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Sat, 2 Jan 2016 22:15:31 +0000 (22:15 +0000)
commit14b19c7d407793b4d40f459dc366e3471a5c007c
tree7ab28f794789d24d73bc8a9db37a73bdff8790f2
parentc72f3c757450e2d5ec8a9059ca62419376fed2a2
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