aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-01-12 21:19:54 +0100
committerfixeria <vyanitskiy@sysmocom.de>2021-01-13 09:52:58 +0000
commitcd30a40be15267c7257b733da4e9ffdf17f0614d (patch)
tree22912d9990ef6ea57c6845693765b09d5bcd923f
parentl1sap: use rxlev_full when no DTX was used (diff)
downloadOsmoBTS-cd30a40be15267c7257b733da4e9ffdf17f0614d.tar.xz
OsmoBTS-cd30a40be15267c7257b733da4e9ffdf17f0614d.zip
power_control: BS power shall not be reduced on C0
It does not make sense to trigger the BS power control loop on C0, as it's only allowed to reduce power on additional transceivers. Change-Id: I4fdfe097ae6f9edde5f39ed4da8a559a14b3b38f Related: SYS#4918
-rw-r--r--src/common/l1sap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 3f601fde..439db03d 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -1566,7 +1566,8 @@ static int l1sap_ph_data_ind(struct gsm_bts_trx *trx,
lchan->meas.flags |= LC_UL_M_F_L1_VALID;
lchan_ms_pwr_ctrl(lchan, data[0] & 0x1f, data_ind->rssi);
- lchan_bs_pwr_ctrl(lchan, (const struct gsm48_hdr *) &data[5]);
+ if (trx->bts->c0 != trx) /* BS Power Control shall not be used on C0 */
+ lchan_bs_pwr_ctrl(lchan, (const struct gsm48_hdr *) &data[5]);
} else
le = &lchan->lapdm_ch.lapdm_dcch;