Change in osmo-bts[master]: ta_control: cosmetic: use correct naming for MIN/MAX constraints

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Mon Feb 15 01:15:13 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/22905 )


Change subject: ta_control: cosmetic: use correct naming for MIN/MAX constraints
......................................................................

ta_control: cosmetic: use correct naming for MIN/MAX constraints

Change-Id: I112e0b51df06984e2e3f9b567d6d9897e9f9ba28
---
M src/common/ta_control.c
1 file changed, 4 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/05/22905/1

diff --git a/src/common/ta_control.c b/src/common/ta_control.c
index 2ccc41a..5a3cbf5 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 @@
 	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);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/22905
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I112e0b51df06984e2e3f9b567d6d9897e9f9ba28
Gerrit-Change-Number: 22905
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210215/c5ce99bf/attachment.htm>


More information about the gerrit-log mailing list