Change in libosmocore[master]: gsm/protocol/gsm_04_08.h: add gsm48_meas_res_is_valid() macro

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Thu Nov 4 14:26:42 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/26104 )


Change subject: gsm/protocol/gsm_04_08.h: add gsm48_meas_res_is_valid() macro
......................................................................

gsm/protocol/gsm_04_08.h: add gsm48_meas_res_is_valid() macro

Change-Id: Iae2bd508a08c4b5093d36e514c22218763e11edf
---
M include/osmocom/gsm/protocol/gsm_04_08.h
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/04/26104/1

diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h b/include/osmocom/gsm/protocol/gsm_04_08.h
index 3fa9419..e54ce42 100644
--- a/include/osmocom/gsm/protocol/gsm_04_08.h
+++ b/include/osmocom/gsm/protocol/gsm_04_08.h
@@ -593,6 +593,10 @@
 #endif
 } __attribute__ ((packed));
 
+/* Check if the given mr contains valid measurement results */
+#define gsm48_meas_res_is_valid(mr) \
+	((mr)->meas_valid == 0) /* 0 means valid */
+
 /* Chapter 10.5.2.21aa */
 struct gsm48_multi_rate_conf {
 #if OSMO_IS_LITTLE_ENDIAN

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/26104
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Iae2bd508a08c4b5093d36e514c22218763e11edf
Gerrit-Change-Number: 26104
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211104/eac8494c/attachment.htm>


More information about the gerrit-log mailing list