From e98af8127fcffc54a6a3c969bbd9a4c5793395ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Hundeb=C3=B8ll?= Date: Tue, 16 Jul 2019 21:10:51 +0200 Subject: [PATCH] quectel: add support for the Quectel MC60 modem The modem is AT-compatible with the Quectel M95 modem, but also features a GNSS module. --- plugins/quectel.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/quectel.c b/plugins/quectel.c index e84e3cf1..9cac92fa 100644 --- a/plugins/quectel.c +++ b/plugins/quectel.c @@ -56,7 +56,8 @@ static const char *cfun_prefix[] = { "+CFUN:", NULL }; static const char *cpin_prefix[] = { "+CPIN:", NULL }; static const char *qinistat_prefix[] = { "+QINISTAT:", NULL }; -static const char *cgmm_prefix[] = { "UC15", "Quectel_M95", NULL }; +static const char *cgmm_prefix[] = { "UC15", "Quectel_M95", "Quectel_MC60", + NULL }; static const char *none_prefix[] = { NULL }; static const uint8_t gsm0710_terminate[] = { @@ -342,6 +343,10 @@ static void cgmm_cb(int ok, GAtResult *result, void *user_data) DBG("%p model M95", modem); data->vendor = OFONO_VENDOR_QUECTEL_SERIAL; data->model = QUECTEL_M95; + } else if (strcmp(model, "Quectel_MC60") == 0) { + DBG("%p model MC60", modem); + data->vendor = OFONO_VENDOR_QUECTEL_SERIAL; + data->model = QUECTEL_MC60; } else { ofono_warn("%p unknown model: '%s'", modem, model); data->vendor = OFONO_VENDOR_QUECTEL;