diff --git a/profiles/alert/main.c b/profiles/alert/main.c index 5e6910ae9..b9df0d4d6 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 82ecc8281..38845798d 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 efe92f5b1..ecd44551e 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 40f34bc04..80a6ba421 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 9dbaff22d..d37b90315 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 0f5751197..1e627a34f 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 ba4b2c011..74e8a5543 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 fd4b8e288..6c1c40cdc 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 9ef5bf1be..08abed222 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(); }