summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-07-17 16:37:56 +0200
committerHarald Welte <laforge@gnumonks.org>2016-07-23 19:31:30 +0000
commitda34bf01a340850b114e7136502c55e79bec68e1 (patch)
tree52a23d991811f17a9477b4f9cdf7db736bbb4e29
parent47390764ddeb98109e39aa379d433ddc064e058b (diff)
Add define for invalid TA
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
-rw-r--r--include/osmocom/gsm/protocol/gsm_04_08.h2
1 files changed, 2 insertions, 0 deletions
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