aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-10-04 12:05:32 +0200
committerpespin <pespin@sysmocom.de>2021-10-04 14:33:09 +0000
commit344010472315b240f6776b6282a80b400d09a69c (patch)
tree15e3471c742d520ee7e94a2394a2705c010a47bb
parentfa9dd74d83ddfb69eb13c5f7138ae315b81db67f (diff)
trx_provision_fsm: Drop unneeded reset of fields
Since recently, reset of all fields is already properly done in trx_provision_reset(). Change-Id: I3e6bc8205704e425644507dd1f1b299dea4cd851
-rw-r--r--src/osmo-bts-trx/trx_provision_fsm.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/osmo-bts-trx/trx_provision_fsm.c b/src/osmo-bts-trx/trx_provision_fsm.c
index 52736ade..758789d8 100644
--- a/src/osmo-bts-trx/trx_provision_fsm.c
+++ b/src/osmo-bts-trx/trx_provision_fsm.c
@@ -584,7 +584,6 @@ static void st_open_poweron(struct osmo_fsm_inst *fi, uint32_t event, void *data
struct phy_instance *pinst = l1h->phy_inst;
struct phy_link *plink = pinst->phy_link;
struct trx_prov_ev_cfg_ts_data* ts_data;
- uint8_t tn;
switch (event) {
case TRX_PROV_EV_CLOSE:
@@ -594,11 +593,6 @@ static void st_open_poweron(struct osmo_fsm_inst *fi, uint32_t event, void *data
trx_if_cmd_poweroff(l1h, l1if_poweronoff_cb);
plink->u.osmotrx.poweronoff_sent = true;
}
- l1h->config.rxgain_sent = false;
- l1h->config.maxdly_sent = false;
- l1h->config.maxdlynb_sent = false;
- for (tn = 0; tn < TRX_NR_TS; tn++)
- l1h->config.setslot_sent[tn] = false;
} else if (!pinst->phy_link->u.osmotrx.poweronoff_sent) {
bts_model_trx_close_cb(pinst->trx, 0);
} /* else: poweroff in progress, cb will be called upon TRXC RSP */