Core service is used to register other services and shall be always consider registered. --- android/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/main.c b/android/main.c index 12284f7..03720e8 100644 --- a/android/main.c +++ b/android/main.c @@ -74,7 +74,8 @@ static guint adapter_timeout = 0; static GIOChannel *hal_cmd_io = NULL; static GIOChannel *hal_notif_io = NULL; -static bool services[HAL_SERVICE_ID_MAX + 1] = { false }; +/* Core Service (ID=0) should be always consider registered */ +static bool services[HAL_SERVICE_ID_MAX + 1] = { true, false }; static void service_register(void *buf, uint16_t len) { -- 1.8.4.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html