diff options
author | Eric Wild <ewild@sysmocom.de> | 2019-06-17 13:14:03 +0200 |
---|---|---|
committer | laforge <laforge@gnumonks.org> | 2019-07-16 04:05:54 +0000 |
commit | e059aa3db77a9be69f20c25f5e8a6182e6619af1 (patch) | |
tree | 27fc27b7754c9425d9303dfecbfe074a860cae4f /src/common | |
parent | 04e980dd10ddb5aac4b0ffeb016162a1291f2c60 (diff) |
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
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/rsl.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |