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

Change-Id: Iae2bd508a08c4b5093d36e514c22218763e11edf
This commit is contained in:
Vadim Yanitskiy 2021-11-04 17:21:11 +03:00
parent 843a84c425
commit 190b6efafd
1 changed files with 6 additions and 0 deletions

View File

@ -593,6 +593,12 @@ struct gsm48_meas_res {
#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