summaryrefslogtreecommitdiff
path: root/plugins/quectel.c
diff options
context:
space:
mode:
authorMartin Hundebøll <martin@geanix.com>2019-07-16 21:10:51 +0200
committerDenis Kenzior <denkenz@gmail.com>2019-07-17 10:27:31 -0500
commite98af8127fcffc54a6a3c969bbd9a4c5793395ad (patch)
tree89e8dc4212145bd4881dfcb10df1568540c83d55 /plugins/quectel.c
parent5a255d6e62b3aeeaa3fe4ec7b97ef0adf887e157 (diff)
downloadofono-e98af8127fcffc54a6a3c969bbd9a4c5793395ad.tar.gz
quectel: add support for the Quectel MC60 modem
The modem is AT-compatible with the Quectel M95 modem, but also features a GNSS module.
Diffstat (limited to 'plugins/quectel.c')
-rw-r--r--plugins/quectel.c7
1 files changed, 6 insertions, 1 deletions
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;