Diff between c4858bbf246e266040eb98f81eb076ef796de7d8 and 91b4b3633d2b63cf5c622bcd54b5829a0496e97d

Changed Files

File Additions Deletions Status
profiles/alert/main.c +0 -8 modified
profiles/deviceinfo/main.c +0 -5 modified
profiles/gatt/main.c +0 -5 modified
profiles/heartrate/main.c +0 -5 modified
profiles/input/hog_manager.c +0 -8 modified
profiles/proximity/main.c +0 -8 modified
profiles/scanparam/main.c +0 -5 modified
profiles/thermometer/main.c +0 -8 modified
profiles/time/main.c +0 -8 modified

Full Patch

diff --git a/profiles/alert/main.c b/profiles/alert/main.c
index 5e6910a..b9df0d4 100644
--- a/profiles/alert/main.c
+++ b/profiles/alert/main.c
@@ -37,19 +37,11 @@
 
 static int alert_init(void)
 {
-	if (!main_opts.gatt_enabled) {
-		DBG("GATT is disabled");
-		return -ENOTSUP;
-	}
-
 	return alert_manager_init();
 }
 
 static void alert_exit(void)
 {
-	if (!main_opts.gatt_enabled)
-		return;
-
 	alert_manager_exit();
 }
 
diff --git a/profiles/deviceinfo/main.c b/profiles/deviceinfo/main.c
index 82ecc82..3884579 100644
--- a/profiles/deviceinfo/main.c
+++ b/profiles/deviceinfo/main.c
@@ -35,11 +35,6 @@
 
 static int deviceinfo_init(void)
 {
-	if (!main_opts.gatt_enabled) {
-		error("DIS cannot start: GATT is disabled");
-		return -ENOTSUP;
-	}
-
 	return deviceinfo_manager_init();
 }
 
diff --git a/profiles/gatt/main.c b/profiles/gatt/main.c
index efe92f5..ecd4455 100644
--- a/profiles/gatt/main.c
+++ b/profiles/gatt/main.c
@@ -35,11 +35,6 @@
 
 static int gatt_init(void)
 {
-	if (!main_opts.gatt_enabled) {
-		error("GATT can not start: EnableGatt is false");
-		return -ENOTSUP;
-	}
-
 	return gatt_manager_init();
 }
 
diff --git a/profiles/heartrate/main.c b/profiles/heartrate/main.c
index 40f34bc..80a6ba4 100644
--- a/profiles/heartrate/main.c
+++ b/profiles/heartrate/main.c
@@ -35,11 +35,6 @@
 
 static int heartrate_init(void)
 {
-	if (!main_opts.gatt_enabled) {
-		DBG("GATT is disabled");
-		return -ENOTSUP;
-	}
-
 	return heartrate_manager_init();
 }
 
diff --git a/profiles/input/hog_manager.c b/profiles/input/hog_manager.c
index 9dbaff2..d37b903 100644
--- a/profiles/input/hog_manager.c
+++ b/profiles/input/hog_manager.c
@@ -149,19 +149,11 @@ static void hog_manager_exit(void)
 
 static int hog_init(void)
 {
-	if (!main_opts.gatt_enabled) {
-		DBG("GATT is disabled");
-		return -ENOTSUP;
-	}
-
 	return hog_manager_init();
 }
 
 static void hog_exit(void)
 {
-	if (!main_opts.gatt_enabled)
-		return;
-
 	hog_manager_exit();
 }
 
diff --git a/profiles/proximity/main.c b/profiles/proximity/main.c
index 0f57511..1e627a3 100644
--- a/profiles/proximity/main.c
+++ b/profiles/proximity/main.c
@@ -59,11 +59,6 @@ static GKeyFile *open_config_file(const char *file)
 
 static int proximity_init(void)
 {
-	if (!main_opts.gatt_enabled) {
-		DBG("GATT is disabled");
-		return -ENOTSUP;
-	}
-
 	config = open_config_file(CONFIGDIR "/proximity.conf");
 
 	if (proximity_manager_init(config) < 0)
@@ -74,9 +69,6 @@ static int proximity_init(void)
 
 static void proximity_exit(void)
 {
-	if (!main_opts.gatt_enabled)
-		return;
-
 	if (config)
 		g_key_file_free(config);
 
diff --git a/profiles/scanparam/main.c b/profiles/scanparam/main.c
index ba4b2c0..74e8a55 100644
--- a/profiles/scanparam/main.c
+++ b/profiles/scanparam/main.c
@@ -37,11 +37,6 @@
 
 static int scan_param_init(void)
 {
-	if (!main_opts.gatt_enabled) {
-		DBG("Scan Parameters: GATT is disabled");
-		return -ENOTSUP;
-	}
-
 	return scan_param_manager_init();
 }
 
diff --git a/profiles/thermometer/main.c b/profiles/thermometer/main.c
index fd4b8e2..6c1c40c 100644
--- a/profiles/thermometer/main.c
+++ b/profiles/thermometer/main.c
@@ -35,19 +35,11 @@
 
 static int thermometer_init(void)
 {
-	if (!main_opts.gatt_enabled) {
-		DBG("GATT is disabled");
-		return -ENOTSUP;
-	}
-
 	return thermometer_manager_init();
 }
 
 static void thermometer_exit(void)
 {
-	if (!main_opts.gatt_enabled)
-		return;
-
 	thermometer_manager_exit();
 }
 
diff --git a/profiles/time/main.c b/profiles/time/main.c
index 9ef5bf1..08abed2 100644
--- a/profiles/time/main.c
+++ b/profiles/time/main.c
@@ -37,19 +37,11 @@
 
 static int time_init(void)
 {
-	if (!main_opts.gatt_enabled) {
-		DBG("GATT is disabled");
-		return -ENOTSUP;
-	}
-
 	return time_manager_init();
 }
 
 static void time_exit(void)
 {
-	if (!main_opts.gatt_enabled)
-		return;
-
 	time_manager_exit();
 }