power_control: send default parameters from bootstrap_rsl()
Thanks to this message, there is no need to include MS/BS Power Control parameters in every RSL CHANnel ACTIvation message. Instead, we send them only once, and then send empty IEs. Change-Id: I46ae4e6003a1839ee57f8e941a54bf479f7e532d Related: SYS#4918
This commit is contained in:
parent
8a2907e646
commit
f31c42e7eb
|
@ -310,6 +310,7 @@ static int generate_ma_for_ts(struct gsm_bts_trx_ts *ts)
|
|||
static void bootstrap_rsl(struct gsm_bts_trx *trx)
|
||||
{
|
||||
unsigned int i;
|
||||
int rc;
|
||||
|
||||
LOG_TRX(trx, DRSL, LOGL_NOTICE, "bootstrapping RSL "
|
||||
"on ARFCN %u using MCC-MNC %s LAC=%u CID=%u BSIC=%u\n",
|
||||
|
@ -340,6 +341,15 @@ static void bootstrap_rsl(struct gsm_bts_trx *trx)
|
|||
rsl_nokia_si_end(trx);
|
||||
}
|
||||
|
||||
if (trx->bts->model->power_ctrl_send_def_params != NULL) {
|
||||
rc = trx->bts->model->power_ctrl_send_def_params(trx);
|
||||
if (rc) {
|
||||
LOG_TRX(trx, DRSL, LOGL_ERROR, "Failed to send default "
|
||||
"MS/BS Power control parameters (rc=%d)\n", rc);
|
||||
/* TODO: should we drop RSL connection here? */
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(trx->ts); i++) {
|
||||
struct gsm_bts_trx_ts *ts = &trx->ts[i];
|
||||
generate_ma_for_ts(ts);
|
||||
|
|
Loading…
Reference in New Issue