aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcu_l1_if.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-03-16 16:15:01 +0100
committerHarald Welte <laforge@gnumonks.org>2013-03-17 17:16:18 +0100
commit570b44b29bf1186448e2838a537e1c2e250585fe (patch)
tree929e4e5a4b592eba2f6efc771cb19bfea941c5d9 /src/pcu_l1_if.cpp
parent0b874b64ef36fb2abc87ed2c0ea52b6fa582fa4b (diff)
Add RSSI of data blocks to PCU interface0.2.00.2
This bumps the PCU API version to 5 and requires osmo-bts >= 0.2.0.
Diffstat (limited to 'src/pcu_l1_if.cpp')
-rw-r--r--src/pcu_l1_if.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp
index 8d98c1ed..75071f27 100644
--- a/src/pcu_l1_if.cpp
+++ b/src/pcu_l1_if.cpp
@@ -197,9 +197,9 @@ static void pcu_l1if_tx_bcch(uint8_t *data, int len)
}
extern "C" int pcu_rx_data_ind_pdtch(uint8_t trx, uint8_t ts, uint8_t *data,
- uint8_t len, uint32_t fn)
+ uint8_t len, uint32_t fn, int8_t rssi)
{
- return gprs_rlcmac_rcv_block(trx, ts, data, len, fn);
+ return gprs_rlcmac_rcv_block(trx, ts, data, len, fn, rssi);
}
static int pcu_rx_data_ind(struct gsm_pcu_if_data *data_ind)
@@ -214,7 +214,8 @@ static int pcu_rx_data_ind(struct gsm_pcu_if_data *data_ind)
switch (data_ind->sapi) {
case PCU_IF_SAPI_PDTCH:
rc = pcu_rx_data_ind_pdtch(data_ind->trx_nr, data_ind->ts_nr,
- data_ind->data, data_ind->len, data_ind->fn);
+ data_ind->data, data_ind->len, data_ind->fn,
+ data_ind->rssi);
break;
default:
LOGP(DL1IF, LOGL_ERROR, "Received PCU data indication with "