From: Denis Kenzior <denkenz@gmail.com>
To: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>, ofono@lists.linux.dev
Cc: absicsz@gmail.com, merlijn@wizzup.org
Subject: Re: [PATCH 1/3] gobi: do not assume LTE is supported, detect it
Date: Tue, 29 Jul 2025 17:13:19 -0500 [thread overview]
Message-ID: <c9d38d00-fb53-4f72-8087-9b81efc2d2f2@gmail.com> (raw)
In-Reply-To: <20250729052132.779994-2-ivo.g.dimitrov.75@gmail.com>
Hi Ivo,
On 7/29/25 12:21 AM, Ivaylo Dimitrov wrote:
> ---
> plugins/gobi.c | 17 +++++++++++++----
> 1 file changed, 13 insertions(+), 4 deletions(-)
<snip>
> @@ -480,8 +480,17 @@ static void get_caps_cb(struct qmi_result *result, void *user_data)
> DBG("service capabilities %d", caps->data_capa);
> DBG("sim supported %d", caps->sim_supported);
>
> - for (i = 0; i < caps->radio_if_count; i++)
> - DBG("radio = %d", caps->radio_if[i]);
> + for (i = 0; i < caps->radio_if_count; i++) {
> + uint8_t iface = caps->radio_if[i];
> +
> + DBG("radio = %d", iface);
> +
> + if (iface & QMI_DMS_RADIO_IF_LTE)
QMI_DMS_RADIO_IF_* do not seem to be values that can be used in a bitset, so I
amended this line to use '==' instead of '&'.
> + data->features |= GOBI_LTE;
> + }
> +
> + if (data->features & GOBI_LTE)
> + ofono_modem_set_capabilities(modem, OFONO_MODEM_CAPABILITY_LTE);
>
> if (qmi_service_send(data->dms, QMI_DMS_GET_OPER_MODE, NULL,
> get_oper_mode_cb, modem, NULL) > 0)
Regards,
-Denis
next prev parent reply other threads:[~2025-07-29 22:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-29 5:21 [PATCH v2 0/3] droid: migrate to gobi QMI driver Ivaylo Dimitrov
2025-07-29 5:21 ` [PATCH 1/3] gobi: do not assume LTE is supported, detect it Ivaylo Dimitrov
2025-07-29 22:13 ` Denis Kenzior [this message]
2025-07-30 5:24 ` Ivaylo Dimitrov
2025-07-29 5:21 ` [PATCH 2/3] gobi: Add "OfflineOperatingMode" property Ivaylo Dimitrov
2025-07-29 5:21 ` [PATCH 3/3] plugins: drop droid and use gobi for droid4 modem instead Ivaylo Dimitrov
2025-07-29 22:13 ` Denis Kenzior
2025-07-29 22:20 ` [PATCH v2 0/3] droid: migrate to gobi QMI driver 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=c9d38d00-fb53-4f72-8087-9b81efc2d2f2@gmail.com \
--to=denkenz@gmail.com \
--cc=absicsz@gmail.com \
--cc=ivo.g.dimitrov.75@gmail.com \
--cc=merlijn@wizzup.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.