BTS_Tests: simplify MA length calculation in f_resolve_fh_params()
Change-Id: I13f1d45162b520eff0d2e9823604fda85b71970b Related: SYS#4868, OS#4708
This commit is contained in:
parent
9308cd665d
commit
cc4e149a2f
|
@ -547,9 +547,7 @@ friend function f_resolve_fh_params(inout ConnHdlrPars pars, uint8_t trx_nr := 0
|
|||
|
||||
if (ispresent(pars.maio_hsn)) {
|
||||
/* Prepare the Mobile Allocation bitmask (length & padding) */
|
||||
pars.ma_map.len := mp_transceiver_num / 8;
|
||||
if (mp_transceiver_num mod 8 > 0)
|
||||
{ pars.ma_map.len := pars.ma_map.len + 1; }
|
||||
pars.ma_map.len := (mp_transceiver_num + 8 - 1) / 8; /* in bytes */
|
||||
pars.ma_map.ma := f_pad_bit('0'B, pars.ma_map.len * 8, '0'B);
|
||||
|
||||
/* Compose the actual Mobile Allocation and the bitmask */
|
||||
|
|
Loading…
Reference in New Issue