aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-02-15 01:06:16 +0100
committerlaforge <laforge@osmocom.org>2021-02-15 10:58:54 +0000
commit7d29ff9345e2bae58fe99d7442848253e6312de7 (patch)
tree00f5bd6194aa35663d5f226cdd39798dbbc6ece8
parent3215344300c5a8aa8fa1dcb7955125ced8bf6dbd (diff)
ta_control: cosmetic: use correct naming for MIN/MAX constraints
-rw-r--r--src/common/ta_control.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/ta_control.c b/src/common/ta_control.c
index 2ccc41a8..5a3cbf57 100644
--- a/src/common/ta_control.c
+++ b/src/common/ta_control.c
@@ -26,8 +26,8 @@
#define TOA256_9OPERCENT 230
/* rqd_ta value range */
-#define TOA_MIN 0
-#define TOA_MAX 63
+#define TA_MIN 0
+#define TA_MAX 63
void lchan_ms_ta_ctrl(struct gsm_lchan *lchan)
{
@@ -38,12 +38,12 @@ void lchan_ms_ta_ctrl(struct gsm_lchan *lchan)
if (lchan->meas.num_ul_meas < 4)
return;
- if (toa256 < -TOA256_9OPERCENT && lchan->rqd_ta > TOA_MIN) {
+ if (toa256 < -TOA256_9OPERCENT && lchan->rqd_ta > TA_MIN) {
LOGPLCHAN(lchan, DLOOP, LOGL_INFO,
"TOA is too early (%d), now lowering TA from %d to %d\n",
toa256, lchan->rqd_ta, lchan->rqd_ta - 1);
lchan->rqd_ta--;
- } else if (toa256 > TOA256_9OPERCENT && lchan->rqd_ta < TOA_MAX) {
+ } else if (toa256 > TOA256_9OPERCENT && lchan->rqd_ta < TA_MAX) {
LOGPLCHAN(lchan, DLOOP, LOGL_INFO,
"TOA is too late (%d), now raising TA from %d to %d\n",
toa256, lchan->rqd_ta, lchan->rqd_ta + 1);