gsm_data: Include a structure for the geographical location in gsm_bts
This commit is contained in:
parent
5e95f45af0
commit
47b5b3eeb2
|
@ -498,11 +498,29 @@ enum neigh_list_manual_mode {
|
||||||
NL_MODE_MANUAL_SI5SEP = 2, /* SI2 and SI5 have separate neighbor lists */
|
NL_MODE_MANUAL_SI5SEP = 2, /* SI2 and SI5 have separate neighbor lists */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum bts_loc_fix {
|
||||||
|
BTS_LOC_FIX_INVALID = 0,
|
||||||
|
BTS_LOC_FIX_2D = 1,
|
||||||
|
BTS_LOC_FIX_3D = 2,
|
||||||
|
};
|
||||||
|
|
||||||
|
struct bts_location {
|
||||||
|
struct llist_head list;
|
||||||
|
time_t tstamp;
|
||||||
|
enum bts_loc_fix valid;
|
||||||
|
double lat;
|
||||||
|
double lon;
|
||||||
|
double height;
|
||||||
|
};
|
||||||
|
|
||||||
/* One BTS */
|
/* One BTS */
|
||||||
struct gsm_bts {
|
struct gsm_bts {
|
||||||
/* list header in net->bts_list */
|
/* list header in net->bts_list */
|
||||||
struct llist_head list;
|
struct llist_head list;
|
||||||
|
|
||||||
|
/* Geographical location of the BTS */
|
||||||
|
struct llist_head loc_list;
|
||||||
|
|
||||||
/* number of ths BTS in network */
|
/* number of ths BTS in network */
|
||||||
uint8_t nr;
|
uint8_t nr;
|
||||||
/* human readable name / description */
|
/* human readable name / description */
|
||||||
|
|
|
@ -410,6 +410,8 @@ struct gsm_bts *gsm_bts_alloc_register(struct gsm_network *net, enum gsm_bts_typ
|
||||||
|
|
||||||
INIT_LLIST_HEAD(&bts->abis_queue);
|
INIT_LLIST_HEAD(&bts->abis_queue);
|
||||||
|
|
||||||
|
INIT_LLIST_HEAD(&bts->loc_list);
|
||||||
|
|
||||||
return bts;
|
return bts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue