static gboolean setup_telit(struct modem_info *modem)
{
- const char *mdm = NULL, *aux = NULL, *gps = NULL;
+ const char *mdm = NULL, *aux = NULL, *gps = NULL, *diag = NULL;
GSList *list;
DBG("%s", modem->syspath);
} else if (g_strcmp0(info->interface, "255/255/255") == 0) {
if (g_strcmp0(info->number, "00") == 0)
mdm = info->devnode;
+ else if (g_strcmp0(info->number, "01") == 0)
+ diag = info->devnode;
else if (g_strcmp0(info->number, "02") == 0)
gps = info->devnode;
else if (g_strcmp0(info->number, "03") == 0)
if (aux == NULL || mdm == NULL)
return FALSE;
- DBG("modem=%s aux=%s gps=%s", mdm, aux, gps);
+ DBG("modem=%s aux=%s gps=%s diag=%s", mdm, aux, gps, diag);
ofono_modem_set_string(modem->modem, "Modem", mdm);
ofono_modem_set_string(modem->modem, "Data", aux);