From 27cecc14302de7ed2c5cbb63e6969dd7e77f893a Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 6 May 2014 20:02:00 +0200 Subject: device: prevent interface up/down calls for external devices Signed-off-by: Felix Fietkau --- device.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'device.c') diff --git a/device.c b/device.c index f484c28..7d606c6 100644 --- a/device.c +++ b/device.c @@ -61,6 +61,9 @@ void device_unlock(void) static int set_device_state(struct device *dev, bool state) { + if (dev->external) + return 0; + if (state) system_if_up(dev); else -- cgit v1.2.3