Commit Graph

102 Commits

Author SHA1 Message Date
Konrad Dybcio
73c0c96452 lookup: Add more services
42667c34e2/sec_config
2024-04-08 22:29:04 +02:00
Konrad Dybcio
2d7962efff Merge pull request #24 from a-wai/clean-service
Makefile: remove generated service file when cleaning
2024-04-08 22:25:25 +02:00
Konrad Dybcio
7777177772 Merge pull request #25 from Ristovski/patch-1
lookup: Add several new services
2024-04-08 22:24:32 +02:00
Konrad Dybcio
df4a4cbed5 Merge pull request #26 from flamingradian/ims-data-service
lookup: add IMS data service
2024-04-08 22:12:37 +02:00
Richard Acayan
22a69b4f5e lookup: add IMS data service
The IMS data service is the service responsible for configuring a
connection used by the modem for IMS. Add the service.

Signed-off-by: Richard Acayan <mailingradian@gmail.com>
2024-03-25 21:48:37 -04:00
Rafael Ristovski
d81b7a377c lookup: Add several new services 2023-11-01 17:14:40 +01:00
Arnaud Ferraris
936c1978d5 Makefile: remove generated service file when cleaning
After building the package, `make clean` doesn't delete the generated
service file. This patch ensures this file is included in the
`$(all-clean)` variable so it is removed when cleaning.
2023-08-17 12:16:03 +02:00
Dylan Van Assche
d0d471c96e lookup: add Snapdragon Sensor Core service
SDM845 and later expose a Snapdragon Sensor Core service (400) to access the sensors
 managed by a remoteproc. Add this service to the known list of services.

Signed-off-by: Dylan Van Assche <me@dylanvanassche.be>
2023-01-17 22:59:41 -06:00
Jami Kettunen
a4398c8bf2 Makefile: allow $(CFLAGS), $(LDFLAGS) override
The caller might have specified CFLAGS or LDFLAGS. Let's respect those.
Additionally drop LDFLAGS var definition as it is empty.
2023-01-05 11:00:29 -06:00
Bjorn Andersson
9dc7a88548 libqrtr: Zero-initialize sockaddr_qrtr
Valgrind complains that sockaddr_qrtr isn't properly initialized, even
though all fields are initialized. So explicitly clear the
sockaddr_qrtrs.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
v1.0
2020-12-07 08:44:31 -08:00
Bjorn Andersson
983b223423 lookup: Add TFTP to known services list
Service 4096 is a QRTR based implementation of the TFTP RFCs.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2020-11-16 10:38:14 -06:00
Loic Poulain
cb1a6476e6 qrtr-lookup: Add DPM service name
Data Port Mapper service is ID 47.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
2020-11-06 22:09:30 -08:00
Adam Serbinski
47e48a8d93 Android: Disable "treat warnings as errors". 2020-09-28 10:21:36 -05:00
Adam Serbinski
33bf949e4f Clang: fix for arithmetic disallowed on void pointers 2020-09-28 10:21:21 -05:00
Alex Khouderchah
fef484babd libqrtr: Use size_t for offsets
Currently, offsetof produces an unsigned long, while qmi_elem_info's
offset member is a uint32_t. Since this is not the same type on all
platforms, this change uses a size_t for both. stddef.h is also
included for the standard offsetof definition, which also produces a
size_t.

This change also makes similar modifications to list.h.
2020-09-28 10:18:59 -05:00
Julien Massot
2ed52a30f6 qrtr-ns.service: do not install as executable
Fix
systemd[1]: Configuration file /lib/systemd/system/qrtr-ns.service is marked executable. Please remove executable permission bits. Proceeding anyway.
2020-09-28 10:17:11 -05:00
Bjorn Andersson
7bd5cf3024 ns: Go dormant when exsting name server is found
With the introduction of the in-kernel nameserver launching the user
space qrtr-ns will fail, but typically other services depends on its
presence. As such, go dormant instead of failing when noticed that the
name service is already present.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2020-03-01 18:05:04 -08:00
Amit Pundir
2afd6f87b3 ANDROID: Add Android.bp makefile
Add Android.bp makefile to build libqrtr.so, qrtr-ns,
qrtr-cfg and qrtr-lookup targets for AOSP.

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2020-02-03 09:17:15 -08:00
Bjorn Andersson
cd6bedd5d0 qrtr-ns.service: Add systemd service
Add qrtr-ns.service template and install this into /lib/systemd/system
after modifying it according to $(DESTDIR) and $(prefix)

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2019-07-24 23:25:16 -07:00
Bjorn Andersson
111403fe72 map: Fix removal of entries from the table
Removing entries from an open addressed hash table creates holes in the
collision chains, preventing previous colliding entries to be found.  By
inserting tombstones, rather than clearing deleted entries makes it
possible to distinguish the end of a chain from a hole.

Reviewed-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2019-04-18 17:29:11 -07:00
Eric Caruso
c1bdfb37db logging: add min priority and other cleanup
The dprintf macro shadows a real libc symbol which is called
differently, so we should change it to something else (in this
case LOGD) and change it to use the libqrtr logging facilities.
This also means we should add a minimum priority to the logging
library so we don't log DEBUG-level messages by default.

Additionally there were some warn/warnx calls left over that
have been changed to PLOGW/LOGW respectively.
2018-12-10 16:03:04 -08:00
Eric Caruso
c9c4a3cdbd qrtr-lookup: print better information about DIAG service
The DIAG service has its own encoding for the instance number which
is unrelated to the version. This means that the information we
show to the user in the version and instance columns of the table is
parsed incorrectly and often useless. Instead, treat the instance
number as special if the service is a DIAG service and print out a
more meaningful interpretation.

Signed-off-by: Eric Caruso <ejcaruso@chromium.org>
2018-12-10 15:59:56 -08:00
Bjorn Andersson
a1694a1c93 libqrtr: Correct "instance" composition
The "instance" id of a service is a composition of the instance id and
the version. In some plaeces in the library I made this two half words
instead of the actually expected 8 bits version + 24 bit instance. Fix
this in the library.

This was not spotted previously because all prior work has dealt with
instance id 0, but with the QRTR support in Diag this is now an issue.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-08-03 22:01:48 -07:00
Ben Chan
f9b5b38b50 qmi: pass `const struct qrtr_packet' to qmi_decode_header()
Similar to qmi_decode_message(), qmi_decode_header() doesn't modify the
`struct qrtr_packet' argument. This patch makes qmi_decode_header() to
take a `const struct qrtr_packet' argument like qmi_decode_message()
does.

Contributed by Jacob Rutherford <jruthe@chromium.org>
2018-07-26 06:15:57 -07:00
Arun Kumar Neelakantam
4c4987ba7d libqrtr : Add support for signed one byte enum.
Add support to encode/decode one BYTE signed enum data type.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-07-16 09:03:29 -07:00