bts-init: Initialize the BTS like it will look after a reset
Reset the BTS MO State on BTS bootstrap. This way we will always test the BTS disconnect/reconnect case of the BTS. Do not reset the administrative state of objects. The BSC might have set these and wants to maintain them across disconnect/ reconnect. Right now this is true for the TRX state.
This commit is contained in:
parent
95fd72b9f7
commit
fe1ca353bb
|
@ -406,6 +406,9 @@ static int bootstrap_bts(struct gsm_bts *bts)
|
|||
|
||||
bts->si_common.ncc_permitted = 0xff;
|
||||
|
||||
/* Initialize the BTS state */
|
||||
gsm_bts_mo_reset(bts);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
|
||||
void gsm_abis_mo_reset(struct gsm_abis_mo *mo)
|
||||
{
|
||||
mo->nm_state.administrative = NM_STATE_NULL;
|
||||
mo->nm_state.operational = NM_OPSTATE_NULL;
|
||||
mo->nm_state.availability = NM_AVSTATE_POWER_OFF;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue