From: Denis Kenzior <denkenz@gmail.com>
To: ofono@lists.linux.dev
Cc: Denis Kenzior <denkenz@gmail.com>
Subject: [PATCH 2/2] udevng: Add support for Telit FN990
Date: Tue, 30 Apr 2024 12:37:35 -0500 [thread overview]
Message-ID: <20240430173817.3044-2-denkenz@gmail.com> (raw)
In-Reply-To: <20240430173817.3044-1-denkenz@gmail.com>
---
plugins/udevng.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
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" },
--
2.44.0
next prev parent reply other threads:[~2024-04-30 17:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 17:37 [PATCH 1/2] gobi: Use LOW_POWER instead of PERSIST_LOW_POWER Denis Kenzior
2024-04-30 17:37 ` Denis Kenzior [this message]
2024-05-01 21:00 ` patchwork-bot+ofono
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240430173817.3044-2-denkenz@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox