{sysmo,lc15}: Correctly report BER to L1SAP in INFO_MEAS_IND
L1SAP uses 'ber10k' values, i.e. BER in 1/10000 units, where 10000 is all errors are bit-errors (= 100%). The PHY on osmo-bts-sysmo and osmo-bts-lc15 is reporting a float fBer value scaled to 1, i.e. 1.00 = 100% and hence must be 10000 as ber10k. Before this patch, BER values reported on those BTS models were too low by a factor of 100, resulting in way too optimistic RxQual values reported to the BSC. Closes: OS#3005 Change-Id: I17e2f8fe8055f613da1e554cd36ed13289f56fb3
This commit is contained in:
parent
f100992a20
commit
591c8993e9
|
@ -908,7 +908,7 @@ static int process_meas_res(struct gsm_bts_trx *trx, uint8_t chan_nr,
|
|||
l1sap.u.info.type = PRIM_INFO_MEAS;
|
||||
l1sap.u.info.u.meas_ind.chan_nr = chan_nr;
|
||||
l1sap.u.info.u.meas_ind.ta_offs_qbits = m->i16BurstTiming;
|
||||
l1sap.u.info.u.meas_ind.ber10k = (unsigned int) (m->fBer * 100);
|
||||
l1sap.u.info.u.meas_ind.ber10k = (unsigned int) (m->fBer * 10000);
|
||||
l1sap.u.info.u.meas_ind.inv_rssi = (uint8_t) (m->fRssi * -1);
|
||||
l1sap.u.info.u.meas_ind.fn = fn;
|
||||
|
||||
|
|
|
@ -905,7 +905,7 @@ static int process_meas_res(struct gsm_bts_trx *trx, uint8_t chan_nr,
|
|||
l1sap.u.info.type = PRIM_INFO_MEAS;
|
||||
l1sap.u.info.u.meas_ind.chan_nr = chan_nr;
|
||||
l1sap.u.info.u.meas_ind.ta_offs_qbits = m->i16BurstTiming;
|
||||
l1sap.u.info.u.meas_ind.ber10k = (unsigned int) (m->fBer * 100);
|
||||
l1sap.u.info.u.meas_ind.ber10k = (unsigned int) (m->fBer * 10000);
|
||||
l1sap.u.info.u.meas_ind.inv_rssi = (uint8_t) (m->fRssi * -1);
|
||||
l1sap.u.info.u.meas_ind.fn = fn;
|
||||
|
||||
|
|
Loading…
Reference in New Issue