diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-12 19:18:57 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-10-12 19:18:57 +0200 |
commit | 38a9c873bc6390009bee610d734d616d11cc1bda (patch) | |
tree | 3af32915b2e00f052423d0371739f53c9bc7564f | |
parent | 85aa87b61ff36eb297bd3b3d5936d7270f30476c (diff) |
tbf: Use define to flag control_ts unset special value
Change-Id: Idd3ccec509b40b6229544b45e54da1142805b6f9
-rw-r--r-- | src/tbf.cpp | 4 | ||||
-rw-r--r-- | src/tbf.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp index 7ebd2689..153ba809 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -96,7 +96,7 @@ gprs_rlcmac_tbf::gprs_rlcmac_tbf(struct gprs_rlcmac_bts *bts_, GprsMs *ms, gprs_ trx(NULL), first_ts(0), first_common_ts(0), - control_ts(0xff), + control_ts(TBF_CONTROL_TS_UNSET), fT(0), num_fT_exp(0), upgrade_to_multislot(false), @@ -328,7 +328,7 @@ int gprs_rlcmac_tbf::update() int tbf_assign_control_ts(struct gprs_rlcmac_tbf *tbf) { - if (tbf->control_ts == 0xff) + if (tbf->control_ts == TBF_CONTROL_TS_UNSET) LOGPTBF(tbf, LOGL_INFO, "Setting Control TS %d\n", tbf->first_common_ts); else if (tbf->control_ts != tbf->first_common_ts) @@ -116,6 +116,8 @@ enum tbf_counters { /* TBF counters from 3GPP TS 44.060 ยง13.4 */ #define GPRS_RLCMAC_FLAG_TO_DL_ACK 3 /* DL TBF: Failed to receive last polled DL ACK/NACK */ #define GPRS_RLCMAC_FLAG_TO_MASK 0xf0 /* timeout bits */ +#define TBF_CONTROL_TS_UNSET 0xff + #define T_START(tbf, t, T, r, f) tbf->t_start(t, T, r, f, __FILE__, __LINE__) #ifdef __cplusplus |