diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-02-08 17:23:03 +0100 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-02-08 17:23:03 +0100 |
commit | ea0e993bc464e4118ab7753855a65a01d91317ed (patch) | |
tree | 1b5298822f50a8532b484a645e17b183b415ea1c /src/libbsc/acc_ramp.c | |
parent | ac3d8c94320216202c289c8bf00cc4a3d2dbb49c (diff) |
don't read barred bitmasks directly where it isn't needed
Change-Id: Ida05eef654a8762cdc8fee2eb0b9df7abcc6a492
Diffstat (limited to 'src/libbsc/acc_ramp.c')
-rw-r--r-- | src/libbsc/acc_ramp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libbsc/acc_ramp.c b/src/libbsc/acc_ramp.c index d5614f566..73df4fe93 100644 --- a/src/libbsc/acc_ramp.c +++ b/src/libbsc/acc_ramp.c @@ -119,14 +119,14 @@ static void do_ramping_step(void *data) /* Allow 'step_size' ACCs, starting from ACC0. ACC9 will be allowed last. */ for (i = 0; i < acc_ramp->step_size; i++) { - int idx = ffs(acc_ramp->barred_t3); + int idx = ffs(acc_ramp_get_barred_t3(acc_ramp)); if (idx > 0) { /* One of ACC0-ACC7 is still bared. */ unsigned int acc = idx - 1; if (bts_allows_acc(acc_ramp->bts, acc)) allow_one_acc(acc_ramp, acc); } else { - idx = ffs(acc_ramp->barred_t2); + idx = ffs(acc_ramp_get_barred_t2(acc_ramp)); if (idx == 1 || idx == 2) { /* ACC8 or ACC9 is still barred. */ unsigned int acc = idx - 1 + 8; |