diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-06-01 15:11:54 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-06-02 14:37:05 +0200 |
commit | d0fd37c449fdb6eb75ab9df4681a4d0e8ea8df75 (patch) | |
tree | a11a64a2b20308672c4d270190149bf580b12b3d /src | |
parent | 53eaf74ffa3a8e4f39efc32affeae3f37b56c2b1 (diff) |
Move call to bts_set_current_frame_number() earlier in the code path
The FN time counter is not really PDCH specific, but to the whole BTS,
and all other calls t the bts_set_current_frame_number() are already
laced in pcu_l1_if.cpp; move it there.
Change-Id: If36f22a1067c904fa7fda87bed5062b6738f0dd1
Diffstat (limited to 'src')
-rw-r--r-- | src/pcu_l1_if.cpp | 3 | ||||
-rw-r--r-- | src/pdch.cpp | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp index 3f881cf3..0370aeba 100644 --- a/src/pcu_l1_if.cpp +++ b/src/pcu_l1_if.cpp @@ -341,6 +341,9 @@ int pcu_rx_data_ind_pdtch(struct gprs_rlcmac_bts *bts, struct gprs_rlcmac_pdch * { int rc; + /* First of all, update TDMA clock: */ + bts_set_current_frame_number(bts, fn); + if (!pdch->is_enabled()) { LOGPDCH(pdch, DL1IF, LOGL_INFO, "Received DATA.ind (PDTCH) on disabled TS\n"); return -EINVAL; diff --git a/src/pdch.cpp b/src/pdch.cpp index a8becca4..b265d713 100644 --- a/src/pdch.cpp +++ b/src/pdch.cpp @@ -986,9 +986,6 @@ free_ret: int gprs_rlcmac_pdch::rcv_block(uint8_t *data, uint8_t len, uint32_t fn, struct pcu_l1_meas *meas) { - /* First of all, update TDMA clock: */ - bts_set_current_frame_number(trx->bts, fn); - /* No successfully decoded UL block was received during this FN: */ if (len == 0) return 0; |