diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-08 11:05:45 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-06-22 10:39:06 +0200 |
commit | 20f6fd1b63355b9a3ab1423cb24b73ca27f57243 (patch) | |
tree | 2c2c07032358dd63a34c045ac04bc3da9eecb52d /tests | |
parent | b4584ff6c433551f9b633d3e0c6d00380119fa89 (diff) |
l1: Pass all L1 measurements upwards
Currently only the RSSI value is passed to the upper layers. Other
values like TA and BER which are needed for TA update respectively CS
selection are not propagated.
This commit introduces and passes a struct that contains a set of
measurement values.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tbf/TbfTest.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp index e5e71566..c7393f4a 100644 --- a/tests/tbf/TbfTest.cpp +++ b/tests/tbf/TbfTest.cpp @@ -438,6 +438,7 @@ static void test_tbf_single_phase() int tfi = 0; gprs_rlcmac_ul_tbf *ul_tbf; struct gprs_rlcmac_pdch *pdch; + struct pcu_l1_meas meas; printf("=== start %s ===\n", __func__); @@ -462,7 +463,7 @@ static void test_tbf_single_phase() }; pdch = &the_bts.bts_data()->trx[trx_no].pdch[ts_no]; - pdch->rcv_block(&data_msg[0], sizeof(data_msg), fn, 0); + pdch->rcv_block(&data_msg[0], sizeof(data_msg), fn, &meas); ms = the_bts.ms_by_tlli(0xf1223344); OSMO_ASSERT(ms != NULL); @@ -491,6 +492,8 @@ static void test_tbf_two_phase() bitvec *rlc_block; uint8_t buf[64]; int num_bytes; + struct pcu_l1_meas meas; + meas.set_rssi(31); printf("=== start %s ===\n", __func__); @@ -520,7 +523,7 @@ static void test_tbf_two_phase() bitvec_free(rlc_block); pdch = &the_bts.bts_data()->trx[trx_no].pdch[ts_no]; - pdch->rcv_block(&buf[0], num_bytes, 2654270, 31); + pdch->rcv_block(&buf[0], num_bytes, 2654270, &meas); /* check the TBF */ ul_tbf = the_bts.ul_tbf_by_tfi(tfi, trx_no); @@ -543,7 +546,7 @@ static void test_tbf_two_phase() uint8_t(1), /* BSN:7, E:1 */ }; - pdch->rcv_block(&data_msg[0], sizeof(data_msg), rts_fn, 31); + pdch->rcv_block(&data_msg[0], sizeof(data_msg), rts_fn, &meas); ms = the_bts.ms_by_tlli(0xf1223344); OSMO_ASSERT(ms != NULL); |