Navigation Menu

Skip to content

Commit

Permalink
[connman] Fix errorous use of technology_load_values(). JB#50601
Browse files Browse the repository at this point in the history
  • Loading branch information
LaakkonenJussi committed Sep 7, 2020
1 parent 59f81f4 commit 5b40a90
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions connman/src/technology.c
Expand Up @@ -483,7 +483,7 @@ static void technology_load(struct connman_technology *technology)
return;
}

if (!technology_load_values(technology, keyfile))
if (technology_load_values(technology, keyfile))
DBG("Cannot load technology %p/%s keyfile %p", technology,
get_name(technology->type), keyfile);

Expand Down Expand Up @@ -1972,8 +1972,13 @@ bool __connman_technology_enable_from_config()
for (list = technology_list; list; list = list->next) {
struct connman_technology *technology = list->data;

if (!technology_load_values(technology, keyfile))
if (technology_load_values(technology, keyfile)) {
DBG("Cannot load technology %p/%s keyfile %p",
technology,
get_name(technology->type),
keyfile);
continue;
}

if (technology->rfkill_driven && technology->hardblocked) {
DBG("technology %p/%s hardblocked, not set as %s",
Expand Down

0 comments on commit 5b40a90

Please sign in to comment.