projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4473eff
)
If previously powered off then don't enable when leaving offline mode
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 22 Jul 2009 12:30:36 +0000
(14:30 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 22 Jul 2009 12:30:36 +0000
(14:30 +0200)
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
044aef5
..
ad44c7c
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-1554,6
+1554,9
@@
static void set_offlinemode(struct connman_element *element, gpointer user_data)
if (device->powered == powered)
return;
+ if (device->powered_persistent == FALSE)
+ powered = FALSE;
+
set_powered(device, powered);
}