summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/technology.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/technology.c b/src/technology.c
index 290ec24..324a103 100644
--- a/src/technology.c
+++ b/src/technology.c
@@ -920,7 +920,7 @@ static const GDBusSignalTable technology_signals[] = {
static gboolean technology_dbus_register(struct connman_technology *technology)
{
if (technology->dbus_registered == TRUE ||
- (technology->rfkill_driven &&
+ (technology->rfkill_driven == TRUE &&
technology->hardblocked == TRUE))
return TRUE;
@@ -982,11 +982,7 @@ static struct connman_technology *technology_get(enum connman_service_type type)
technology->rfkill_driven = FALSE;
technology->softblocked = FALSE;
-
- if (type == CONNMAN_SERVICE_TYPE_ETHERNET)
- technology->hardblocked = FALSE;
- else
- technology->hardblocked = TRUE;
+ technology->hardblocked = FALSE;
technology->type = type;
technology->path = g_strdup_printf("%s/technology/%s",