diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-06-29 10:36:07 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-06-29 10:36:07 +0200 |
commit | 6818881d72cdde04eca4b1923a805190acde493c (patch) | |
tree | 02a808116ca27e88637e8880a02261b69138fbe3 /include | |
parent | c5e01c8bd463e42ea3bbe4142941f43c548f14c7 (diff) |
implement baseic uplink measurement processing + reporting
* gather measurements from each PH-DATA.ind
* check every TDMA frame about meas period expiration
* compute averages after period expired
* put MS DL MEAS REP into RSL MEAS RES messages, include UL meas
bugs:
* L3 INFO content seems to have some offset
* is_sub is not set anywhere
* measurement periods might have up/downlink offset
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-bts/Makefile.am | 3 | ||||
-rw-r--r-- | include/osmo-bts/measurement.h | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/include/osmo-bts/Makefile.am b/include/osmo-bts/Makefile.am index 64711f86..4f8753dd 100644 --- a/include/osmo-bts/Makefile.am +++ b/include/osmo-bts/Makefile.am @@ -1 +1,2 @@ -noinst_HEADERS = abis.h bts.h bts_model.h gsm_data.h logging.h oml.h paging.h rsl.h rtp.h signal.h vty.h +noinst_HEADERS = abis.h bts.h bts_model.h gsm_data.h logging.h measurement.h \ + oml.h paging.h rsl.h rtp.h signal.h vty.h diff --git a/include/osmo-bts/measurement.h b/include/osmo-bts/measurement.h new file mode 100644 index 00000000..5ad6795e --- /dev/null +++ b/include/osmo-bts/measurement.h @@ -0,0 +1,13 @@ +#ifndef OSMO_BTS_MEAS_H +#define OSMO_BTS_MEAS_H + +int lchan_new_ul_meas(struct gsm_lchan *lchan, struct bts_ul_meas *ulm); + +int lchan_meas_check_compute(struct gsm_lchan *lchan, uint32_t fn); +int ts_meas_check_compute(struct gsm_bts_trx_ts *ts, uint32_t fn); +int trx_meas_check_compute(struct gsm_bts_trx *trx, uint32_t fn); + +/* build the 3 byte RSL uplinke measurement IE content */ +int lchan_build_rsl_ul_meas(struct gsm_lchan *, uint8_t *buf); + +#endif |