udev: Use Qualcomm Gobi driver if QMI based modem
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 25 Nov 2012 19:00:07 +0000 (20:00 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 25 Nov 2012 19:00:07 +0000 (20:00 +0100)
plugins/udevng.c

index 3bc72f1..a0879c8 100644 (file)
@@ -338,9 +338,15 @@ static gboolean setup_huawei(struct modem_info *modem)
                }
        }
 
+       if (qmi != NULL && net != NULL) {
+               ofono_modem_set_driver(modem->modem, "gobi");
+               goto done;
+       }
+
        if (mdm == NULL || pcui == NULL)
                return FALSE;
 
+done:
        DBG("mdm=%s pcui=%s diag=%s qmi=%s net=%s", mdm, pcui, diag, qmi, net);
 
        ofono_modem_set_string(modem->modem, "Device", qmi);