Sync from SUSE:SLFO:Main libqmi revision f090076fedd18a4e7cd8166963ba267e

This commit is contained in:
Adrian Schröter 2025-02-26 11:45:10 +01:00
parent e92be5994b
commit da1b67f704
5 changed files with 98 additions and 10 deletions

View File

@ -0,0 +1,36 @@
From 76063ef32c4231b68196dec43b21d091c778e87f Mon Sep 17 00:00:00 2001
From: Arnaud Ferraris <aferraris@debian.org>
Date: Sat, 21 Oct 2023 11:43:09 +0200
Subject: [PATCH] libqmi-glib,message: fix 16-bit service on big endian
architectures
The latest release introduces handling of 16-bit service indications.
However, only the raw message data is returned from
`qmi_message_get_service()`, leading to incorrect values on big-endian
architectures. As a consequence, `libqmi` ultimately fails to build as
the corresponding test errors out in this case.
This patch ensures the service indication is correct on all kinds of
architectures.
(cherry picked from commit 6662764338d3127924cfefaa9cf1b0cc4f90a189)
---
src/libqmi-glib/qmi-message.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libqmi-glib/qmi-message.c b/src/libqmi-glib/qmi-message.c
index 3e31b4b4..1918a456 100644
--- a/src/libqmi-glib/qmi-message.c
+++ b/src/libqmi-glib/qmi-message.c
@@ -226,7 +226,7 @@ qmi_message_get_service (QmiMessage *self)
if (MESSAGE_IS_QMUX (self))
return (QmiService)((struct full_message *)(self->data))->header.qmux.service;
- return (QmiService)((struct full_message *)(self->data))->header.qrtr.service;
+ return (QmiService)GUINT16_FROM_LE (((struct full_message *)(self->data))->header.qrtr.service);
}
guint8
--
GitLab

BIN
libqmi-1.32.4.tar.bz2 (Stored with Git LFS)

Binary file not shown.

BIN
libqmi-1.34.0.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,54 @@
-------------------------------------------------------------------
Tue Jan 23 15:14:21 UTC 2024 - Eugenio Paolantonio <eugenio.paolantonio@suse.com>
- Add patch:
* 0001-message-fix-16bit-service-on-big-endian.patch
- Fixes 16-bit service indications on big endian architectures.
Cherry-picked from upstream qmi-1-34 branch
-------------------------------------------------------------------
Fri Nov 10 14:01:04 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to update to 1.34.0:
* New services:
** New 'ATR' service to support AT commands over QMI,
defined by Telit, including "Send" request and "Received"
indication.
** New 'IMS' service, including "Get IMS Services Enabled
Setting" request/response.
** New 'IMSA' (IMS Application) service, including "Get
IMS Registration Status" and "Get IMS Services Status"
request/responses.
** New 'IMSP' (IMS Presence) service, including "Get
Enabler State" request/response.
** New 'SSC' service (Qualcomm Snapdragon Sensor Core),
including the "Control" request/response, and
"Report Small"/"Report Large" indications.
** nas: added the "WCDMA RSCP" TLV in "Get Signal Info"
response and "Signal Info" indication.
** wds: added the "Report Profile Changes" TLV in
** Support for 16-bit service ids added, used in the QRTR
backend.
** Response and indication parser messages are now
published in the API.
** The library now allows connecting to a unix domain
socket named 'qmux_socket' instead of a device file.
** Extended the 'QmiWdsProfileType' enum type with EPC and
ALL values.
** Extended the
'QmiUimCardApplicationPersonalizationFeature' enum type with
additional GW-related values.
** New 'QmiUimCardApplicationPersonalizationFeatureStatus'
enum type.
** New 'QmiImspEnablerState' enum type, used in the IMPS
service.
** New 'QmiImsaImsRegistrationStatus',
'QmiImsaServiceStatus' and
* qmicli:
** New '--uim-remote-unlock' command.
** New '--imsp-get-enabler-state' command.
** New '--imsa-get-ims-registration-status' and
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 3 17:57:50 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com> Mon Apr 3 17:57:50 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>

View File

@ -19,7 +19,7 @@
%define _soname libqmi-glib5 %define _soname libqmi-glib5
Name: libqmi Name: libqmi
Version: 1.32.4 Version: 1.34.0
Release: 0 Release: 0
# NOTE: The file headers state LESSER GPL, which is a mistake. The upstream intended license is LIBRARY GPL 2.0+ # NOTE: The file headers state LESSER GPL, which is a mistake. The upstream intended license is LIBRARY GPL 2.0+
Summary: Library to control QMI devices Summary: Library to control QMI devices
@ -27,6 +27,7 @@ License: LGPL-2.1-or-later AND GPL-2.0-or-later
Group: Hardware/Modem Group: Hardware/Modem
URL: https://gitlab.freedesktop.org/mobile-broadband/libqmi URL: https://gitlab.freedesktop.org/mobile-broadband/libqmi
Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2 Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2
Patch0: 0001-message-fix-16bit-service-on-big-endian.patch
BuildRequires: help2man BuildRequires: help2man
BuildRequires: pkgconfig BuildRequires: pkgconfig