dyn TS: add ts->dyn state
Add state fields osmo_bts_trx_ts->dyn.* to record dynamic timeslot state. Initialize in gsm_bts_trx_alloc(). Change-Id: I0a4049df8500b4f7c864f1355c4e9238932d1b8f
This commit is contained in:
parent
f29dd5f15b
commit
c165876223
|
@ -348,6 +348,12 @@ struct gsm_bts_trx_ts {
|
||||||
|
|
||||||
enum gsm_phys_chan_config pchan;
|
enum gsm_phys_chan_config pchan;
|
||||||
|
|
||||||
|
struct {
|
||||||
|
enum gsm_phys_chan_config pchan_is;
|
||||||
|
enum gsm_phys_chan_config pchan_want;
|
||||||
|
struct msgb *pending_chan_activ;
|
||||||
|
} dyn;
|
||||||
|
|
||||||
unsigned int flags;
|
unsigned int flags;
|
||||||
struct gsm_abis_mo mo;
|
struct gsm_abis_mo mo;
|
||||||
struct tlv_parsed nm_attr;
|
struct tlv_parsed nm_attr;
|
||||||
|
|
|
@ -169,6 +169,8 @@ struct gsm_bts_trx *gsm_bts_trx_alloc(struct gsm_bts *bts)
|
||||||
ts->trx = trx;
|
ts->trx = trx;
|
||||||
ts->nr = k;
|
ts->nr = k;
|
||||||
ts->pchan = GSM_PCHAN_NONE;
|
ts->pchan = GSM_PCHAN_NONE;
|
||||||
|
ts->dyn.pchan_is = GSM_PCHAN_NONE;
|
||||||
|
ts->dyn.pchan_want = GSM_PCHAN_NONE;
|
||||||
ts->tsc = -1;
|
ts->tsc = -1;
|
||||||
|
|
||||||
gsm_mo_init(&ts->mo, bts, NM_OC_CHANNEL,
|
gsm_mo_init(&ts->mo, bts, NM_OC_CHANNEL,
|
||||||
|
|
Loading…
Reference in New Issue