diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-03-17 16:33:11 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-03-17 17:43:02 +0100 |
commit | 5cbc7e91676a70bce1855ef2613c227baca8ef4f (patch) | |
tree | 41112f2c49b9f8ce6f6114fef047e6ec77af7161 /src | |
parent | 4ad8d4d3c0e46fa50fe421c6957db1ea4b048b62 (diff) |
Get RSSI from received uplink data and send to PCU
This bumps the PCU API version and thus requires a new version of the
code on the sysmoBTS side!
Diffstat (limited to 'src')
-rw-r--r-- | src/common/pcu_sock.c | 4 | ||||
-rw-r--r-- | src/osmo-bts-sysmo/l1_if.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c index 27d0f39d..a90caacf 100644 --- a/src/common/pcu_sock.c +++ b/src/common/pcu_sock.c @@ -315,7 +315,8 @@ int pcu_tx_rts_req(struct gsm_bts_trx_ts *ts, uint8_t is_ptcch, uint32_t fn, } int pcu_tx_data_ind(struct gsm_bts_trx_ts *ts, uint8_t is_ptcch, uint32_t fn, - uint16_t arfcn, uint8_t block_nr, uint8_t *data, uint8_t len) + uint16_t arfcn, uint8_t block_nr, uint8_t *data, uint8_t len, + int8_t rssi) { struct msgb *msg; struct gsm_pcu_if *pcu_prim; @@ -338,6 +339,7 @@ int pcu_tx_data_ind(struct gsm_bts_trx_ts *ts, uint8_t is_ptcch, uint32_t fn, data_ind->trx_nr = ts->trx->nr; data_ind->ts_nr = ts->nr; data_ind->block_nr = block_nr; + data_ind->rssi = rssi; memcpy(data_ind->data, data, len); data_ind->len = len; diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c index bdba4c22..d2aecd5e 100644 --- a/src/osmo-bts-sysmo/l1_if.c +++ b/src/osmo-bts-sysmo/l1_if.c @@ -787,7 +787,8 @@ static int handle_ph_data_ind(struct femtol1_hdl *fl1, GsmL1_PhDataInd_t *data_i data_ind->u32Fn, data_ind->u16Arfcn, data_ind->u8BlockNbr, data_ind->msgUnitParam.u8Buffer + 1, - data_ind->msgUnitParam.u8Size - 1); + data_ind->msgUnitParam.u8Size - 1, + (int8_t) (data_ind->measParam.fRssi)); break; case GsmL1_Sapi_Ptcch: /* PTCCH frame handling */ @@ -795,7 +796,8 @@ static int handle_ph_data_ind(struct femtol1_hdl *fl1, GsmL1_PhDataInd_t *data_i data_ind->u32Fn, data_ind->u16Arfcn, data_ind->u8BlockNbr, data_ind->msgUnitParam.u8Buffer, - data_ind->msgUnitParam.u8Size); + data_ind->msgUnitParam.u8Size, + (int8_t) (data_ind->measParam.fRssi)); break; default: LOGP(DL1C, LOGL_NOTICE, "Rx PH-DATA.ind for unknown L1 SAPI %s\n", |