projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
023db1c
)
device: prevent interface up/down calls for external devices
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 6 May 2014 18:02:00 +0000
(20:02 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 6 May 2014 18:02:00 +0000
(20:02 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
device.c
patch
|
blob
|
history
diff --git
a/device.c
b/device.c
index f484c289e2c47311e272e408f63c555d2f835d03..7d606c6e5782108444308a6777e3f13f48ed6b45 100644
(file)
--- 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