From da34bf01a340850b114e7136502c55e79bec68e1 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 17 Jul 2016 16:37:56 +0200 Subject: Add define for invalid TA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add GSM48_TA_INVALID which is invalid Timing Advance value according to 3GPP TS 44.018 § 10.5.2.40. Change-Id: I061760ccac656f39164562a7883f8ab522cd0911 Related: OS#1526 --- include/osmocom/gsm/protocol/gsm_04_08.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmocom/gsm/protocol/gsm_04_08.h b/include/osmocom/gsm/protocol/gsm_04_08.h index 7efd7e87..885ac8af 100644 --- a/include/osmocom/gsm/protocol/gsm_04_08.h +++ b/include/osmocom/gsm/protocol/gsm_04_08.h @@ -947,6 +947,8 @@ static inline uint8_t gsm48_hdr_trans_id(const struct gsm48_hdr *hdr) return (hdr->proto_discr & 0xf0) >> 4; } +#define GSM48_TA_INVALID 220 + /*! \brief Check if TA is valid according to 3GPP TS 44.018 § 10.5.2.40 * \param[in] ta Timing Advance value * \returns true if ta is valid, false otherwise -- cgit v1.2.3