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)
commit17ee56e48c6b032ae89d030979c972f9a23cc4f4
tree55f7a956c11d574da08fca1ee455f80141b78775
parentc5be33cb81d53c19da0791073e6a90d0469e941e
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