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
This commit is contained in:
Max 2016-07-17 16:37:56 +02:00 committed by Harald Welte
parent 47390764dd
commit da34bf01a3
1 changed files with 2 additions and 0 deletions

View File

@ -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