common: Avoid changing OPSTATE to Enabled upon RSL up

the RSL link has nothing to do regarding the state of the Radio Carrier,
as in it being up is not enough to have a working (enabled) Radio
Carrier.

Change-Id: Iefb5c4e1097233b5c31e4d621c544d51516af678
This commit is contained in:
Pau Espin 2020-07-06 14:29:02 +02:00 committed by pespin
parent 5432f69f16
commit 22a949f38e
1 changed files with 2 additions and 5 deletions

View File

@ -153,13 +153,10 @@ const char *gsm_trx_unit_id(struct gsm_bts_trx *trx)
int trx_link_estab(struct gsm_bts_trx *trx)
{
struct e1inp_sign_link *link = trx->rsl_link;
uint8_t radio_state = link ? NM_OPSTATE_ENABLED : NM_OPSTATE_DISABLED;
int rc;
LOGP(DSUM, LOGL_INFO, "RSL link (TRX %02x) state changed to %s, sending Status'.\n",
trx->nr, link ? "up" : "down");
oml_mo_state_chg(&trx->mo, radio_state, NM_AVSTATE_OK);
LOGPTRX(trx, DSUM, LOGL_INFO, "RSL link %s\n",
link ? "up" : "down");
if (link)
rc = rsl_tx_rf_res(trx);