From e059aa3db77a9be69f20c25f5e8a6182e6619af1 Mon Sep 17 00:00:00 2001 From: Eric Wild Date: Mon, 17 Jun 2019 13:14:03 +0200 Subject: RSL: Fix fixed MS power control in RSL CHAN ACTIV Dynamic MS power control should only be active if a power parameters IE was supplied. Change-Id: I0bbe171a287b10d71fc853cd721f66e4c84db8c5 --- src/common/rsl.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common/rsl.c') diff --git a/src/common/rsl.c b/src/common/rsl.c index 7630a8cc..0a613bb8 100644 --- a/src/common/rsl.c +++ b/src/common/rsl.c @@ -1116,6 +1116,14 @@ static int rsl_rx_chan_activ(struct msgb *msg) /* 9.3.32 BS Power Parameters */ /* 9.3.31 MS Power Parameters */ + if (TLVP_PRESENT(&tp, RSL_IE_MS_POWER_PARAM)) + lchan->ms_power_ctrl.fixed = 0; + else { + /* Spec explicitly states BTS should only perform + * autonomous MS power control loop in BTS if 'MS Power + * Parameters' IE is present! */ + lchan->ms_power_ctrl.fixed = 1; + } /* 9.3.16 Physical Context */ /* 9.3.29 SACCH Information */ -- cgit v1.2.3