diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-12-03 18:34:40 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-12-03 18:34:40 +0100 |
commit | 80f9b84a6473d74d2f5b677911b961809c21618a (patch) | |
tree | 4f2ee79abf2e6142bf83dc7fd9c13da51e6caaad /src/common | |
parent | bd3eabc13e5563424597bf4c7e20c0c999fc110b (diff) |
rsl_rx_chan_act: Apply bitmask when parsing IE MS_POWER
Change-Id: I99c6a4d353f405582d5e4f9d12c01c25c7bb4dff
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/rsl.c | 2 |
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; } |