diff options
author | Stefan Sperling <ssperling@sysmocom.de> | 2018-02-08 17:06:38 +0100 |
---|---|---|
committer | Stefan Sperling <ssperling@sysmocom.de> | 2018-02-08 17:06:38 +0100 |
commit | eb78fe93f8c847e4556cea08e70aa4e765ecda8f (patch) | |
tree | d423855a09925fac5635e151f8b12e859a1a5f76 /src/libbsc | |
parent | d77b8969f200fa6bd7d8c3c05bfe474e9f11db70 (diff) |
rename another helper function
Change-Id: If2a102f37faf670207555952b57ebe262d7c0ae5
Diffstat (limited to 'src/libbsc')
-rw-r--r-- | src/libbsc/acc_ramp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libbsc/acc_ramp.c b/src/libbsc/acc_ramp.c index 9bd335de1..8d1d6de57 100644 --- a/src/libbsc/acc_ramp.c +++ b/src/libbsc/acc_ramp.c @@ -33,7 +33,7 @@ static bool bts_allows_acc(struct gsm_bts *bts, unsigned int acc) return (bts->si_common.rach_control.t3 & (1 << (acc))) == 0; } -static void allow_acc(struct acc_ramp *acc_ramp, unsigned int acc) +static void allow_one_acc(struct acc_ramp *acc_ramp, unsigned int acc) { assert(acc >= 0 && acc <= 9); LOGP(DRLL, LOGL_DEBUG, "(bts=%d) ACC RAMP: allowing Access Control Class %u\n", acc_ramp->bts->nr, acc); @@ -67,7 +67,7 @@ static void allow_all_allowed_accs(struct acc_ramp *acc_ramp) unsigned int acc; for (acc = 0; acc < 10; acc++) { if (bts_allows_acc(acc_ramp->bts, acc)) - allow_acc(acc_ramp, acc); + allow_one_acc(acc_ramp, acc); } } @@ -122,14 +122,14 @@ static void do_ramping_step(void *data) unsigned int acc = idx - 1; /* one of ACC0-ACC7 is still bared */ if (bts_allows_acc(acc_ramp->bts, acc)) - allow_acc(acc_ramp, acc); + allow_one_acc(acc_ramp, acc); } else { idx = ffs(acc_ramp->barred_t2); if (idx == 1 || idx == 2) { unsigned int acc = idx - 1 + 8; /* ACC8 or ACC9 is still barred */ if (bts_allows_acc(acc_ramp->bts, acc)) - allow_acc(acc_ramp, acc); + allow_one_acc(acc_ramp, acc); } else { /* all ACCs are now allowed */ break; |