add BTS TYPE field to facilitate future non-BS11 BTS support
This commit is contained in:
parent
85770c7aa4
commit
978cb42911
|
@ -160,6 +160,11 @@ struct gsm_bts_trx {
|
|||
struct gsm_bts_trx_ts ts[TRX_NR_TS];
|
||||
};
|
||||
|
||||
enum gsm_bts_type {
|
||||
GSM_BTS_TYPE_UNKNOWN,
|
||||
GSM_BTS_TYPE_BS11,
|
||||
};
|
||||
|
||||
/* One BTS */
|
||||
struct gsm_bts {
|
||||
struct gsm_network *network;
|
||||
|
@ -167,9 +172,12 @@ struct gsm_bts {
|
|||
u_int8_t nr;
|
||||
/* location area code of this BTS */
|
||||
u_int8_t location_area_code;
|
||||
/* type of BTS */
|
||||
enum gsm_bts_type type;
|
||||
|
||||
/* Abis network management O&M handle */
|
||||
struct abis_nm_h *nmh;
|
||||
|
||||
/* number of this BTS on given E1 link */
|
||||
u_int8_t bts_nr;
|
||||
|
||||
|
|
|
@ -98,6 +98,7 @@ struct gsm_network *gsm_network_init(unsigned int num_bts, u_int16_t country_cod
|
|||
|
||||
bts->network = net;
|
||||
bts->nr = i;
|
||||
bts->type = GSM_BTS_TYPE_BS11;
|
||||
|
||||
for (j = 0; j < BTS_MAX_TRX; j++) {
|
||||
struct gsm_bts_trx *trx = &bts->trx[j];
|
||||
|
|
Loading…
Reference in New Issue