aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/l1sap.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-02-08 16:50:20 +0100
committerMax <msuraev@sysmocom.de>2018-02-08 16:50:20 +0100
commit9955cc4306f30c20cc372e72f7ed9999d3a57177 (patch)
treeb859ed03f27be21ed228ea713140b9d121c59c00 /src/common/l1sap.c
parentc2e3ff58bcd4203fb3426b99c986e71386fbd2b4 (diff)
osmo-bts-trx: ignore frame offset error on startup
Previously we always printed error on startup: l1sap.c:461 Invalid condition detected: Frame difference is 627202-0=627202 > 1! This is expected and of little practical use. Let's suppress it by checking that FN was actually initialized. Change-Id: I4f7cf285e437db0e980e1a2a3ab48a7255945448
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r--src/common/l1sap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index d3f31112..e181a73b 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -456,9 +456,10 @@ static int l1sap_info_time_ind(struct gsm_bts *bts,
/* Calculate and check frame difference */
frames_expired = info_time_ind->fn - btsb->gsm_time.fn;
if (frames_expired > 1) {
- LOGP(DL1P, LOGL_ERROR,
- "Invalid condition detected: Frame difference is %"PRIu32"-%"PRIu32"=%d > 1!\n",
- info_time_ind->fn, btsb->gsm_time.fn, frames_expired);
+ if (btsb->gsm_time.fn)
+ LOGP(DL1P, LOGL_ERROR,
+ "Invalid condition detected: Frame difference is %"PRIu32"-%"PRIu32"=%d > 1!\n",
+ info_time_ind->fn, btsb->gsm_time.fn, frames_expired);
}
/* Update our data structures with the current GSM time */