mirror of git://git.sysmocom.de/ofono
udevng: Detect huawei E3372 modem and pcui
When the modes are modified with AT^SETPORT="FF;12,1,16", this modem and pcui will appear using different ids. Update the interfaces identifier accordingly.
This commit is contained in:
parent
1978934740
commit
3079ccad45
|
@ -325,12 +325,14 @@ static gboolean setup_huawei(struct modem_info *modem)
|
|||
if (g_strcmp0(info->label, "modem") == 0 ||
|
||||
g_strcmp0(info->interface, "255/1/1") == 0 ||
|
||||
g_strcmp0(info->interface, "255/2/1") == 0 ||
|
||||
g_strcmp0(info->interface, "255/3/1") == 0 ||
|
||||
g_strcmp0(info->interface, "255/1/49") == 0) {
|
||||
mdm = info->devnode;
|
||||
} else if (g_strcmp0(info->label, "pcui") == 0 ||
|
||||
g_strcmp0(info->interface, "255/1/2") == 0 ||
|
||||
g_strcmp0(info->interface, "255/2/2") == 0 ||
|
||||
g_strcmp0(info->interface, "255/2/18") == 0 ||
|
||||
g_strcmp0(info->interface, "255/3/18") == 0 ||
|
||||
g_strcmp0(info->interface, "255/1/50") == 0) {
|
||||
pcui = info->devnode;
|
||||
} else if (g_strcmp0(info->label, "diag") == 0 ||
|
||||
|
|
Loading…
Reference in New Issue