ledtrig-netdev: add support for renamed devices
authorJohn Crispin <john@openwrt.org>
Fri, 1 Jan 2016 21:19:41 +0000 (21:19 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 1 Jan 2016 21:19:41 +0000 (21:19 +0000)
commitdf165974c32a6ad2499b815d9d9f72b250d622f8
tree05cfce6ab3253ee914e36530b17c61f854a3026c
parent6f95d749d6a5c9cce47a14a926a378bc7621a049
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>
SVN-Revision: 48048
target/linux/generic/files/drivers/leds/ledtrig-netdev.c