Change in osmo-ttcn3-hacks[master]: f_ms_tx_data_ind(): indicate actual Timing Advance in DATA.ind

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
Wed May 26 13:24:55 UTC 2021


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


Change subject: f_ms_tx_data_ind(): indicate actual Timing Advance in DATA.ind
......................................................................

f_ms_tx_data_ind(): indicate actual Timing Advance in DATA.ind

Change-Id: Id89a5ed1ea82a81f0ce4e75204117afb322f5264
---
M pcu/GPRS_Components.ttcn
M pcu/PCU_selftest.ttcn
2 files changed, 5 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/16/24416/1

diff --git a/pcu/GPRS_Components.ttcn b/pcu/GPRS_Components.ttcn
index 5cf9104..2297fb6 100644
--- a/pcu/GPRS_Components.ttcn
+++ b/pcu/GPRS_Components.ttcn
@@ -626,7 +626,7 @@
 function f_ms_tx_data_ind(inout GprsMS ms, octetstring data, uint32_t fn := 0,
 			  template (value) TsTrxBtsNum nr := ts_TsTrxBtsNum)
 runs on MS_BTS_IFACE_CT {
-	f_pcuif_tx_data_ind(data, ms.lqual_cb, fn, nr := nr);
+	f_pcuif_tx_data_ind(data, fn, ms.ta, ms.lqual_cb, nr := nr);
 }
 
 function f_ms_tx_ul_block(inout GprsMS ms, template (value) RlcmacUlBlock ul_data,
@@ -1070,14 +1070,15 @@
 }
 
 /* Enqueue DATA.ind (both TDMA frame and block numbers to be patched) */
-function f_pcuif_tx_data_ind(octetstring data, int16_t lqual_cb := 0, uint32_t fn := 0,
+function f_pcuif_tx_data_ind(octetstring data, uint32_t fn := 0,
+			     TimingAdvance ta := 0, int16_t lqual_cb := 0,
 			     template (value) TsTrxBtsNum nr := ts_TsTrxBtsNum)
 runs on MS_BTS_IFACE_CT {
 	var template RAW_PCU_EventParam ev_param := {tdma_fn := ? };
 	BTS.send(ts_PCUIF_DATA_IND(nr.bts_nr, nr.trx_nr, nr.ts_nr, nr.blk_nr,
 				   sapi := PCU_IF_SAPI_PDTCH, data := data,
 				   fn := fn, arfcn := f_trxnr2arfcn(valueof(nr.trx_nr)),
-				   lqual_cb := lqual_cb));
+				   ta_offs_qbits := ta * 4, lqual_cb := lqual_cb));
 	if (fn != 0) {
 		ev_param := {tdma_fn := fn };
 	}
diff --git a/pcu/PCU_selftest.ttcn b/pcu/PCU_selftest.ttcn
index 70138bf..a8bcaee 100644
--- a/pcu/PCU_selftest.ttcn
+++ b/pcu/PCU_selftest.ttcn
@@ -291,7 +291,7 @@
 		data := f_pad_oct(data, f_rlcmac_cs_mcs2block_len(schemes[i]), '00'O);
 
 		/* Send to PCU so that we get gsmtap traces to verify with wireshark */
-		f_pcuif_tx_data_ind(data, 0, 0);
+		f_pcuif_tx_data_ind(data);
 
 		log("Decoding ", schemes[i]);
 		ul_data := dec_RlcmacUlBlock(data);

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

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Id89a5ed1ea82a81f0ce4e75204117afb322f5264
Gerrit-Change-Number: 24416
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/20210526/a97bfb34/attachment.htm>


More information about the gerrit-log mailing list