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

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:50:25 UTC 2021


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

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

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

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

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h b/include/osmocom/gsm/protocol/gsm_04_08.h
index 3fa9419..ea77e76 100644
--- a/include/osmocom/gsm/protocol/gsm_04_08.h
+++ b/include/osmocom/gsm/protocol/gsm_04_08.h
@@ -593,6 +593,12 @@
 #endif
 } __attribute__ ((packed));
 
+/*! Check if the given mr contains valid measurement results */
+static inline bool gsm48_meas_res_is_valid(const struct gsm48_meas_res *mr)
+{
+	return (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: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211104/0d92bb91/attachment.htm>


More information about the gerrit-log mailing list