summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2011-09-02 13:34:57 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2011-09-12 11:40:49 +0200
commitc50cb7e7fbc92fb2c58ec730bbaacf6e0b5e2601 (patch)
tree2082c18fe8d6c909cc9b829cc7e99dffed7a1938 /src/device.c
parent68d25b8a5706b2682ff546dda3f62f28c7d25cf7 (diff)
downloadconnman-c50cb7e7fbc92fb2c58ec730bbaacf6e0b5e2601.tar.gz
connman-c50cb7e7fbc92fb2c58ec730bbaacf6e0b5e2601.tar.bz2
connman-c50cb7e7fbc92fb2c58ec730bbaacf6e0b5e2601.zip
device: Set PENDING_DISABLE on device disable
Set powered pending state to PENDING_DISABLE when the device is being disabled.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index d8ab1fc0..ec60449c 100644
--- a/src/device.c
+++ b/src/device.c
@@ -294,6 +294,7 @@ int __connman_device_disable(struct connman_device *device)
if (device->powered_pending == PENDING_NONE && device->powered == FALSE)
return -EALREADY;
+ device->powered_pending = PENDING_DISABLE;
device->reconnect = FALSE;
clear_scan_trigger(device);