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)
commit68b61b0a6e21a4dc5d5ee665ed60c82d3dba1f81
tree82a04b76ef22a8050afc2c2be1a83a0b321d1f23
parent5efd69109218550780952b570a2b9b48d4092903
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

SVN-Revision: 48073
target/linux/generic/files/drivers/leds/ledtrig-netdev.c