aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcommon/acc_ramp.c
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-02-06 17:49:38 +0100
committerStefan Sperling <ssperling@sysmocom.de>2018-02-06 17:49:38 +0100
commit3d3bd3bb43b807aee5e0fb8ce1f5805085a9ffb8 (patch)
treeeeb651c59a4da0d1fed70aa977e23e5d3b87621d /src/libcommon/acc_ramp.c
parent9623ed4a24f0252c93cb1584d331dd0712dbd1bd (diff)
only set lower 2 bits of t2
Diffstat (limited to 'src/libcommon/acc_ramp.c')
-rw-r--r--src/libcommon/acc_ramp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcommon/acc_ramp.c b/src/libcommon/acc_ramp.c
index 79509215d..17c9a8594 100644
--- a/src/libcommon/acc_ramp.c
+++ b/src/libcommon/acc_ramp.c
@@ -44,7 +44,7 @@ static void allow_one_acc(struct acc_ramp *acc_ramp, unsigned int acc)
LOGP(DRLL, LOGL_DEBUG, "(bts=%d) ACC RAMP: allowing Access Control Class %u\n", acc_ramp->bts->nr, acc);
assert(acc >= 0 && acc <= 9);
if (acc == 8 || acc == 9)
- acc_ramp->barred_t2 &= ~(1 << (acc - 8));
+ acc_ramp->barred_t2 &= (~(1 << (acc - 8)) & 0x03);
else
acc_ramp->barred_t3 &= ~(1 << acc);
}