aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-12-03 18:34:40 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2019-12-03 18:34:40 +0100
commit80f9b84a6473d74d2f5b677911b961809c21618a (patch)
tree4f2ee79abf2e6142bf83dc7fd9c13da51e6caaad
parentbd3eabc13e5563424597bf4c7e20c0c999fc110b (diff)
rsl_rx_chan_act: Apply bitmask when parsing IE MS_POWER
-rw-r--r--src/common/rsl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 09a9217d..67eb622c 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1150,7 +1150,7 @@ static int rsl_rx_chan_activ(struct msgb *msg)
lchan->bs_power = *TLVP_VAL(&tp, RSL_IE_BS_POWER);
/* 9.3.13 MS Power */
if (TLVP_PRES_LEN(&tp, RSL_IE_MS_POWER, 1)) {
- lchan->ms_power_ctrl.max = *TLVP_VAL(&tp, RSL_IE_MS_POWER);
+ lchan->ms_power_ctrl.max = *TLVP_VAL(&tp, RSL_IE_MS_POWER) & 0x1F;
lchan->ms_power_ctrl.current = lchan->ms_power_ctrl.max;
lchan->ms_power_ctrl.fixed = false;
}