From: Marcel Holtmann Date: Sun, 28 Dec 2008 01:25:37 +0000 (+0100) Subject: Enable devices when policy is set to manual X-Git-Tag: 0.6~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e0df318a9d596ebe32f6691418e99f2eb750e40;p=platform%2Fupstream%2Fconnman.git Enable devices when policy is set to manual --- diff --git a/src/device.c b/src/device.c index d74b634..854fc17 100644 --- a/src/device.c +++ b/src/device.c @@ -833,7 +833,8 @@ static void device_enable(struct connman_device *device) { DBG("device %p", device); - if (device->policy != CONNMAN_DEVICE_POLICY_AUTO) + if (device->policy == CONNMAN_DEVICE_POLICY_IGNORE || + device->policy == CONNMAN_DEVICE_POLICY_OFF) return; if (device->powered == TRUE) @@ -847,7 +848,7 @@ static void device_disable(struct connman_device *device) { DBG("device %p", device); - if (device->policy != CONNMAN_DEVICE_POLICY_AUTO) + if (device->policy == CONNMAN_DEVICE_POLICY_IGNORE) return; if (device->powered == FALSE)