bts-trx: Submit TRX SW_ACT when PHY becomes connected

Once the TRXC link is available, we can signal SW_ACT which will
transit rcarrier and bbtransc NM FSMs to Disabled Offline and announce
availability to be configured to the BSC through transmission of
Software Activated Report.

Change-Id: I6e62ec2fdd4cae58b52d83fa851552f7ed51c821
This commit is contained in:
Pau Espin 2021-09-20 19:27:13 +02:00 committed by pespin
parent ddd357f3e3
commit ce9ec4963c
3 changed files with 4 additions and 9 deletions

View File

@ -112,7 +112,6 @@ struct phy_instance {
} sysmobts;
struct {
struct trx_l1h *hdl;
bool sw_act_reported;
struct trx_dl_burst_req br[TRX_NR_TS];
} osmotrx;
struct {

View File

@ -224,14 +224,6 @@ static uint8_t trx_set_bts(struct gsm_bts *bts, struct tlv_parsed *new_attr)
l1h = pinst->u.osmotrx.hdl;
osmo_fsm_inst_dispatch(l1h->provision_fi, TRX_PROV_EV_CFG_BSIC, (void*)(intptr_t)bsic);
/* signal availability */
if (!pinst->u.osmotrx.sw_act_reported) {
/* HACK, we should change state when we receive first clock from
* transceiver */
osmo_fsm_inst_dispatch(trx->mo.fi, NM_EV_SW_ACT, NULL);
osmo_fsm_inst_dispatch(trx->bb_transc.mo.fi, NM_EV_SW_ACT, NULL);
pinst->u.osmotrx.sw_act_reported = true;
}
}
return 0;

View File

@ -33,6 +33,7 @@
#include <osmo-bts/bts_model.h>
#include <osmo-bts/bts.h>
#include <osmo-bts/rsl.h>
#include <osmo-bts/nm_common_fsm.h>
#include "l1_if.h"
#include "trx_provision_fsm.h"
@ -332,6 +333,9 @@ static void st_open_poweroff_on_enter(struct osmo_fsm_inst *fi, uint32_t prev_st
trx_if_cmd_rfmute(l1h, pinst->trx->mo.nm_state.administrative != NM_STATE_UNLOCKED);
else
trx_if_cmd_rfmute(l1h, true);
osmo_fsm_inst_dispatch(pinst->trx->mo.fi, NM_EV_SW_ACT, NULL);
osmo_fsm_inst_dispatch(pinst->trx->bb_transc.mo.fi, NM_EV_SW_ACT, NULL);
}
static void st_open_poweroff(struct osmo_fsm_inst *fi, uint32_t event, void *data)