diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-07-22 14:30:36 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-22 14:30:36 +0200 |
commit | f0ef986ba74e3ee45fa2f01998719b8f28694d3f (patch) | |
tree | c92dad151d820a87dfc490c537ea67e2e88dbe3f | |
parent | 4473efff0d79428459724f62045697b9967a6dc5 (diff) | |
download | connman-f0ef986ba74e3ee45fa2f01998719b8f28694d3f.tar.gz connman-f0ef986ba74e3ee45fa2f01998719b8f28694d3f.tar.bz2 connman-f0ef986ba74e3ee45fa2f01998719b8f28694d3f.zip |
If previously powered off then don't enable when leaving offline mode
-rw-r--r-- | src/device.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index 044aef52..ad44c7c7 100644 --- 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); } |