From d7fda89cbc83480c967c63f5909009a491682c3d Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 21 Aug 2017 04:36:14 +0200 Subject: [PATCH] qmi/discovery: include control service into service list There is no need to exclude it. It helps debugging because the service is now logged. --- drivers/qmimodem/qmi.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/qmimodem/qmi.c b/drivers/qmimodem/qmi.c index 1af86aac..96c70d17 100644 --- a/drivers/qmimodem/qmi.c +++ b/drivers/qmimodem/qmi.c @@ -1136,15 +1136,12 @@ static void discover_callback(uint16_t message, uint16_t length, if (type == QMI_SERVICE_CONTROL) { device->control_major = major; device->control_minor = minor; - continue; } - list[count].type = type; - list[count].major = major; - list[count].minor = minor; - list[count].name = name; - - count++; + list[i].type = type; + list[i].major = major; + list[i].minor = minor; + list[i].name = name; if (name) __debug_device(device, "found service [%s %d.%d]", @@ -1153,6 +1150,7 @@ static void discover_callback(uint16_t message, uint16_t length, __debug_device(device, "found service [%d %d.%d]", type, major, minor); } + count = service_list->count; ptr = tlv_get(buffer, length, 0x10, &len); if (!ptr)