device: Update profile in enable_persistent callback
[platform/upstream/connman.git] / src / technology.c
index cb065e2..2e91b41 100644 (file)
@@ -693,6 +693,11 @@ int __connman_technology_enabled(enum connman_service_type type)
                state_changed(technology);
        }
 
+       if (__connman_profile_get_offlinemode() == TRUE) {
+               __connman_profile_set_offlinemode(FALSE, FALSE);
+               __connman_profile_save_default();
+       }
+
        return 0;
 }