introduce new gsm_bts_trx_by_nr() function
This commit is contained in:
parent
2ef156db43
commit
6e670aab5a
|
@ -648,6 +648,7 @@ void set_ts_e1link(struct gsm_bts_trx_ts *ts, u_int8_t e1_nr,
|
||||||
u_int8_t e1_ts, u_int8_t e1_ts_ss);
|
u_int8_t e1_ts, u_int8_t e1_ts_ss);
|
||||||
enum gsm_bts_type parse_btstype(const char *arg);
|
enum gsm_bts_type parse_btstype(const char *arg);
|
||||||
const char *btstype2str(enum gsm_bts_type type);
|
const char *btstype2str(enum gsm_bts_type type);
|
||||||
|
struct gsm_bts_trx *gsm_bts_trx_by_nr(struct gsm_bts *bts, int nr);
|
||||||
struct gsm_bts *gsm_bts_by_lac(struct gsm_network *net, unsigned int lac,
|
struct gsm_bts *gsm_bts_by_lac(struct gsm_network *net, unsigned int lac,
|
||||||
struct gsm_bts *start_bts);
|
struct gsm_bts *start_bts);
|
||||||
|
|
||||||
|
|
|
@ -365,6 +365,17 @@ const char *btstype2str(enum gsm_bts_type type)
|
||||||
return bts_types[type];
|
return bts_types[type];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct gsm_bts_trx *gsm_bts_trx_by_nr(struct gsm_bts *bts, int nr)
|
||||||
|
{
|
||||||
|
struct gsm_bts_trx *trx;
|
||||||
|
|
||||||
|
llist_for_each_entry(trx, &bts->trx_list, list) {
|
||||||
|
if (trx->nr == nr)
|
||||||
|
return trx;
|
||||||
|
}
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
/* Search for a BTS in the given Location Area; optionally start searching
|
/* Search for a BTS in the given Location Area; optionally start searching
|
||||||
* with start_bts (for continuing to search after the first result) */
|
* with start_bts (for continuing to search after the first result) */
|
||||||
struct gsm_bts *gsm_bts_by_lac(struct gsm_network *net, unsigned int lac,
|
struct gsm_bts *gsm_bts_by_lac(struct gsm_network *net, unsigned int lac,
|
||||||
|
|
Loading…
Reference in New Issue