From: DengYingAn <[email protected]>
Fix the issue cannot enable technologies if devices are rfkilled. The
unregistered device should not be powered down.
---
src/device.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/device.c b/src/device.c
index 4ea24d1..9d34079 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1001,6 +1001,9 @@ int connman_device_set_powered(struct connman_device
*device,
{
DBG("driver %p powered %d", device, powered);
+ if ((powered == FALSE) && (device->registered == FALSE))
+ return -EOPNOTSUPP;
+
if (device->timeout > 0) {
g_source_remove(device->timeout);
device->timeout = 0;
--
1.7.2.2
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman