mirror of git://git.sysmocom.de/ofono
udevng: detect ublox TOBY L4
ttyACM0 (USB interface 02) is reportedly unreliable (breaking DHCP setup) so the recommended approach is to use ttyACM2 (USB interface 06) exclusively.
This commit is contained in:
parent
83834419e5
commit
85c64b1784
|
@ -1090,11 +1090,17 @@ static gboolean setup_ublox(struct modem_info *modem)
|
|||
* - high throughput profile : 224/1/3
|
||||
*/
|
||||
} else if (g_strcmp0(info->interface, "2/2/1") == 0) {
|
||||
if (g_strcmp0(info->number, "02") == 0)
|
||||
aux = info->devnode;
|
||||
else if (g_strcmp0(info->number, "00") == 0)
|
||||
if (!g_strcmp0(modem->model, "1010")) {
|
||||
if (g_strcmp0(info->number, "06") == 0)
|
||||
aux = info->devnode;
|
||||
} else {
|
||||
if (g_strcmp0(info->number, "02") == 0)
|
||||
aux = info->devnode;
|
||||
}
|
||||
if (g_strcmp0(info->number, "00") == 0)
|
||||
mdm = info->devnode;
|
||||
} else if (g_strcmp0(info->interface, "2/6/0") == 0 ||
|
||||
g_strcmp0(info->interface, "2/13/0") == 0 ||
|
||||
g_strcmp0(info->interface, "10/0/0") == 0 ||
|
||||
g_strcmp0(info->interface, "224/1/3") == 0) {
|
||||
net = info->devnode;
|
||||
|
@ -1691,6 +1697,8 @@ static struct {
|
|||
{ "quectelqmi", "qcserial", "2c7c", "0121" },
|
||||
{ "quectelqmi", "qmi_wwan", "2c7c", "0125" },
|
||||
{ "quectelqmi", "qcserial", "2c7c", "0125" },
|
||||
{ "ublox", "cdc_acm", "1546", "1010" },
|
||||
{ "ublox", "cdc_ncm", "1546", "1010" },
|
||||
{ "ublox", "cdc_acm", "1546", "1102" },
|
||||
{ "ublox", "rndis_host", "1546", "1146" },
|
||||
{ "ublox", "cdc_acm", "1546", "1146" },
|
||||
|
|
Loading…
Reference in New Issue