From: Kuba Pawlak Date: Thu, 16 Oct 2014 12:29:05 +0000 (+0200) Subject: udev: add GPS port definition for HE910 X-Git-Tag: 1.16~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=88f46a9b010eea0d27e94a2aace0cebf749507ab;p=platform%2Fupstream%2Fofono.git udev: add GPS port definition for HE910 --- diff --git a/plugins/udevng.c b/plugins/udevng.c index 6dc9228..09740ae 100644 --- a/plugins/udevng.c +++ b/plugins/udevng.c @@ -636,7 +636,7 @@ static gboolean setup_telit(struct modem_info *modem) static gboolean setup_he910(struct modem_info *modem) { - const char *mdm = NULL, *aux = NULL; + const char *mdm = NULL, *aux = NULL, *gps = NULL; GSList *list; DBG("%s", modem->syspath); @@ -652,16 +652,19 @@ static gboolean setup_he910(struct modem_info *modem) mdm = info->devnode; else if (g_strcmp0(info->number, "06") == 0) aux = info->devnode; + else if (g_strcmp0(info->number, "0a") == 0) + gps = info->devnode; } } if (aux == NULL || mdm == NULL) return FALSE; - DBG("modem=%s aux=%s", mdm, aux); + DBG("modem=%s aux=%s gps=%s", mdm, aux, gps); ofono_modem_set_string(modem->modem, "Modem", mdm); ofono_modem_set_string(modem->modem, "Aux", aux); + ofono_modem_set_string(modem->modem, "GPS", gps); return TRUE; }