Useful for coming patches: enabling/disabling technologies will be done differently whether technology is rfkill driven or not: - if rfkill driven -> enabled will rely on rfkill states - if not -> enabled will rely on driver/devices states --- src/technology.c | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/src/technology.c b/src/technology.c index 3f7141a..4c74912 100644 --- a/src/technology.c +++ b/src/technology.c @@ -73,6 +73,7 @@ struct connman_technology { GSList *scan_pending; + connman_bool_t rfkill_driven; connman_bool_t hardblocked; connman_bool_t dbus_registered; }; @@ -984,6 +985,8 @@ static struct connman_technology *technology_get(enum connman_service_type type) technology->refcount = 1; + technology->rfkill_driven = FALSE; + if (type == CONNMAN_SERVICE_TYPE_ETHERNET) technology->hardblocked = FALSE; else @@ -1379,6 +1382,8 @@ done: if (technology == NULL) return -ENXIO; + technology->rfkill_driven = TRUE; + technology_apply_hardblock_change(technology, hardblock); /* -- 1.7.12 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman