summaryrefslogtreecommitdiffhomepage
path: root/device.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-01-19 17:14:52 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-01-19 17:14:52 +0100
commitfcbec58e1494281dfeb2f19576c52667a512fad2 (patch)
treef302b217dc2f0d81ad2c39e6430f34420b26ff8f /device.c
parent395891b0e4c67591523dd0e2c2ac0c8aa22e88e7 (diff)
export carrier status in device stats
Diffstat (limited to 'device.c')
-rw-r--r--device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/device.c b/device.c
index 784905b..7253bb9 100644
--- a/device.c
+++ b/device.c
@@ -672,6 +672,8 @@ device_dump_status(struct blob_buf *b, struct device *dev)
blobmsg_add_u8(b, "up", !!dev->active);
if (dev->type->dump_info)
dev->type->dump_info(dev, b);
+ else
+ system_if_dump_info(dev, b);
s = blobmsg_open_table(b, "statistics");
if (dev->type->dump_stats)