---
 plugins/ofono.hwdb | 10 ++++++++++
 plugins/udevng.c   | 15 ++-------------
 2 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/plugins/ofono.hwdb b/plugins/ofono.hwdb
index 75e553b..881497d 100644
--- a/plugins/ofono.hwdb
+++ b/plugins/ofono.hwdb
@@ -1,3 +1,13 @@
+# Novatel
+usb:v1410*icFFiscFFipFF*
+ OFONO_DRIVER=novatel
+
+usb:v1410*icFFiscFFipFFin00
+ OFONO_LABEL=aux
+
+usb:v1410*icFFiscFFipFFin01
+ OFONO_LABEL=modem
+
 # ZTE
 usb:v19D2*icFFiscFFipFF*
  OFONO_DRIVER=zte
diff --git a/plugins/udevng.c b/plugins/udevng.c
index d95f71f..3662370 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -558,20 +558,10 @@ static gboolean setup_novatel(struct modem_info *modem)
                DBG("%s %s %s %s", info->devnode, info->interface,
                                                info->number, info->label);
 
-               if (g_strcmp0(info->label, "aux") == 0) {
+               if (g_strcmp0(info->label, "aux") == 0)
                        aux = info->devnode;
-                       if (mdm != NULL)
-                               break;
-               } else if (g_strcmp0(info->label, "modem") == 0) {
+               else if (g_strcmp0(info->label, "modem") == 0)
                        mdm = info->devnode;
-                       if (aux != NULL)
-                               break;
-               } else if (g_strcmp0(info->interface, "255/255/255") == 0) {
-                       if (g_strcmp0(info->number, "00") == 0)
-                               aux = info->devnode;
-                       else if (g_strcmp0(info->number, "01") == 0)
-                               mdm = info->devnode;
-               }
        }
 
        if (aux == NULL || mdm == NULL)
@@ -1438,7 +1428,6 @@ static struct {
        { "speedup",    "option",       "1c9e"          },
        { "speedup",    "option",       "2020"          },
        { "alcatel",    "option",       "1bbb", "0017"  },
-       { "novatel",    "option",       "1410"          },
        { "simcom",     "option",       "05c6", "9000"  },
        { "telit",      "usbserial",    "1bc7"          },
        { "telit",      "option",       "1bc7"          },
-- 
2.9.3

_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono

Reply via email to