From: Patrik Flykt <[email protected]>
When adding an rfkill device wich is unblocked, soft block it immediately
if offline mode is enabled or the technology (enable_persistent) is
disabled.
---
Noticed a bug on ConnMan startup where an rfkill driven technology which is
not soft blocked is always enabled even though the global settings file is
missing or the technology was disabled previously.
Cheers,
Patrik
src/technology.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/technology.c b/src/technology.c
index 1ff8fb7..b0346a8 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -1454,8 +1454,8 @@ done:
technology->enable_persistent == TRUE)
return __connman_rfkill_block(type, FALSE);
else if (technology->softblocked == FALSE &&
- global_offlinemode == TRUE &&
- technology->enable_persistent == FALSE)
+ (global_offlinemode == TRUE ||
+ technology->enable_persistent == FALSE))
return __connman_rfkill_block(type, TRUE);
return 0;
--
1.7.10.4
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman