Compare commits
2 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| ebd87a014f | |||
| be66c0c2fb |
@@ -1,36 +0,0 @@
|
||||
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.34.0.tar.bz2
LFS
BIN
libqmi-1.34.0.tar.bz2
LFS
Binary file not shown.
3
libqmi-1.36.0.tar.bz2
Normal file
3
libqmi-1.36.0.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:67c97feee86e6709b9cdec303c3650059b298f1c2b886b6053a56aced1616b3f
|
||||
size 3736056
|
||||
@@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat May 24 09:09:04 UTC 2025 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Update to version 1.36.0:
|
||||
* New request/response/indications
|
||||
* New TLVs supported in existing messages
|
||||
* libqmi-glib:
|
||||
** Fix for 16-bit service indications on big-endian (BE)
|
||||
architectures
|
||||
** Fix qmi_wwan sysfs attr ownership to match that of the
|
||||
control device
|
||||
- Drop 0001-message-fix-16bit-service-on-big-endian.patch: Fixed
|
||||
upstream.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 23 15:14:21 UTC 2024 - Eugenio Paolantonio <eugenio.paolantonio@suse.com>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
%define _soname libqmi-glib5
|
||||
Name: libqmi
|
||||
Version: 1.34.0
|
||||
Version: 1.36.0
|
||||
Release: 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
|
||||
@@ -27,7 +27,6 @@ License: LGPL-2.1-or-later AND GPL-2.0-or-later
|
||||
Group: Hardware/Modem
|
||||
URL: https://gitlab.freedesktop.org/mobile-broadband/libqmi
|
||||
Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2
|
||||
Patch0: 0001-message-fix-16bit-service-on-big-endian.patch
|
||||
|
||||
BuildRequires: help2man
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
Reference in New Issue
Block a user