diff mbox series

[2/2] udevng: Add support for Telit FN990

Message ID 20240430173817.3044-2-denkenz@gmail.com (mailing list archive)
State Accepted
Commit e41785fbd3976d502b1ab7c40783be69f733e407
Headers show
Series [1/2] gobi: Use LOW_POWER instead of PERSIST_LOW_POWER | expand

Commit Message

Denis Kenzior April 30, 2024, 5:37 p.m. UTC
---
 plugins/udevng.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/plugins/udevng.c b/plugins/udevng.c
index 243dcd6e91ec..83e8f3e98a22 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -834,7 +834,8 @@  static gboolean setup_telitqmi(struct modem_info *modem)
 		DBG("%s %s %s %s %s", info->devnode, info->interface,
 				info->number, info->label, subsystem);
 
-		if (g_strcmp0(info->interface, "255/255/255") == 0 &&
+		if ((!g_strcmp0(info->interface, "255/255/255") ||
+				!g_strcmp0(info->interface, "255/255/80")) &&
 				g_strcmp0(info->number, "02") == 0) {
 			if (g_strcmp0(subsystem, "net") == 0)
 				net = info;
@@ -849,7 +850,8 @@  static gboolean setup_telitqmi(struct modem_info *modem)
 	if (setup_qmi(modem, qmi, net) < 0)
 		return FALSE;
 
-	ofono_modem_set_boolean(modem->modem, "ForceSimLegacy", TRUE);
+	if (g_strcmp0(modem->model, "1070"))
+		ofono_modem_set_boolean(modem->modem, "ForceSimLegacy", TRUE);
 
 	return TRUE;
 }
@@ -2037,6 +2039,8 @@  static struct {
 	{ "telit",	"cdc_acm",	"1bc7", "0021"	},
 	{ "telitqmi",	"qmi_wwan",	"1bc7", "1201"	},
 	{ "telitqmi",	"option",	"1bc7", "1201"	},
+	{ "telitqmi",	"qmi_wwan",	"1bc7", "1070"	},
+	{ "telitqmi",	"option",	"1bc7", "1070"	},
 	{ "droid",	"qmi_wwan",	"22b8", "2a70"	},
 	{ "droid",	"option",	"22b8", "2a70"	},
 	{ "nokia",	"option",	"0421", "060e"	},