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.

Signed-off-by: Frédéric Dalleau <[email protected]>
---
 plugins/udevng.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/udevng.c b/plugins/udevng.c
index 1a85246..933bf4f 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -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 ||
-- 
2.7.4

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

Reply via email to