enable and disable ACC ramping when link comes up / goes down

Change-Id: I07930f25e8ff25ee0e3b0d0a561693140ba3dc56
This commit is contained in:
Stefan Sperling 2018-02-08 18:44:05 +01:00
parent 82d1160539
commit a137e3529d
2 changed files with 10 additions and 2 deletions

View File

@ -106,7 +106,10 @@ void acc_ramp_set_step_interval_dynamic(struct acc_ramp *acc_ramp);
*/
void acc_ramp_start(struct acc_ramp *acc_ramp);
/* Abort the ramping process. If the process has already finished, this function has no effect. */
/*
* Abort the ramping process. If ramping is disabled or has already finished,
* then this function has no effect.
*/
void acc_ramp_abort(struct acc_ramp *acc_ramp);
/*

View File

@ -331,6 +331,9 @@ static void bootstrap_rsl(struct gsm_bts_trx *trx)
bsc_gsmnet->network_code, trx->bts->location_area_code,
trx->bts->cell_identity, trx->bts->bsic);
if (trx->bts->acc_ramping_enabled)
acc_ramp_start(&trx->bts->acc_ramp);
if (trx->bts->type == GSM_BTS_TYPE_NOKIA_SITE) {
rsl_nokia_si_begin(trx);
}
@ -400,8 +403,10 @@ static int inp_sig_cb(unsigned int subsys, unsigned int signal,
if (isd->link_type == E1INP_SIGN_OML)
rate_ctr_inc(&trx->bts->bts_ctrs->ctr[BTS_CTR_BTS_OML_FAIL]);
else if (isd->link_type == E1INP_SIGN_RSL)
else if (isd->link_type == E1INP_SIGN_RSL) {
rate_ctr_inc(&trx->bts->bts_ctrs->ctr[BTS_CTR_BTS_RSL_FAIL]);
acc_ramp_abort(&trx->bts->acc_ramp);
}
/*
* free all allocated channels. change the nm_state so the