diff options
author | Max <msuraev@sysmocom.de> | 2016-07-28 14:46:00 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-08-08 17:41:27 +0000 |
commit | 4b76a323b3bb71f8d3f4dc7439ecd9bad0f13bcf (patch) | |
tree | 25fc6161bdc7eb8d070188d84b06b22e9a6b432d /src/common/l1sap.c | |
parent | b0f8fa814376d46ff9d7ef0e94e8480ce63442f9 (diff) |
Fill measurements data for L1SAP
Fill in values for BER, BTO, Link quality in L1SAP and send them to
PCU. Note: this increases the version of BTS <-> PCU protocol. It also
requires corresponding changes in libosmocore.
All BTS models provide measurements data unless direct DSP access for
PCU is enabled. For BTS-specific notes see below.
Octphy: conversion from sSNRDb to Link Quality uses formulae which works
in practice instead of what's documented for sSNRDb value. Subject to
change in future revisions.
TRX: C / I link quality estimator is not computed.
Change-Id: Ic9693a044756fb1c7bd2ff3cfa0db042c3c4e01c
Related: OS#1616
Diffstat (limited to 'src/common/l1sap.c')
-rw-r--r-- | src/common/l1sap.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c index 4f6cf05d..304f7185 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -820,7 +820,9 @@ static int l1sap_ph_data_ind(struct gsm_bts_trx *trx, if (L1SAP_IS_PTCCH(fn)) { pcu_tx_data_ind(&trx->ts[tn], 1, fn, 0 /* ARFCN */, L1SAP_FN2PTCCHBLOCK(fn), - data, len, rssi); + data, len, rssi, data_ind->ber10k, + data_ind->ta_offs_qbits, + data_ind->lqual_cb); return 0; } @@ -829,7 +831,8 @@ static int l1sap_ph_data_ind(struct gsm_bts_trx *trx, return 0; /* PDTCH / PACCH frame handling */ pcu_tx_data_ind(&trx->ts[tn], 0, fn, 0 /* ARFCN */, - L1SAP_FN2MACBLOCK(fn), data, len, rssi); + L1SAP_FN2MACBLOCK(fn), data, len, rssi, data_ind->ber10k, + data_ind->ta_offs_qbits, data_ind->lqual_cb); return 0; } |