diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2021-07-05 17:38:28 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-07-09 11:51:40 +0000 |
commit | 9d4865ecaea5dc17e3058777620d52e8efa4c8a5 (patch) | |
tree | 116172ceed098ba7c2f8f652862606640bc2a70e /include/osmocom/bsc/meas_rep.h | |
parent | 7225fe49026bcc8e312ef6e5a2f40f4e385529cf (diff) |
hodec2: [2/2] implement automatic choice between FULL and SUBSET measurements
Add TDMA_MEAS_SET_AUTO to indicate automatic choice between FULL and
SUBSET measurements depending on DTX. So far use only in hodec2.
TDMA_MEAS_SET_AUTO looks at each individual measurement report's DTX
flag and for each report chooses FULL if DTX is not used, or SUB if DTX
is used.
The default setting for 'handover2 tdma-measurement' is still 'subset'.
To use the automatic choice, users need configure
handover2 tdma-measurement auto
Change-Id: I67dce55ccf892c8679272ee5dfedc25620f0f725
Diffstat (limited to 'include/osmocom/bsc/meas_rep.h')
-rw-r--r-- | include/osmocom/bsc/meas_rep.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmocom/bsc/meas_rep.h b/include/osmocom/bsc/meas_rep.h index 5cfeb98fb..402a888b1 100644 --- a/include/osmocom/bsc/meas_rep.h +++ b/include/osmocom/bsc/meas_rep.h @@ -68,6 +68,12 @@ enum tdma_meas_set { TDMA_MEAS_SET_AUTO, }; +extern const struct value_string tdma_meas_set_names[]; +static inline const char *tdma_meas_set_name(enum tdma_meas_set val) +{ return get_value_string(tdma_meas_set_names, val); } +static inline enum tdma_meas_set tdma_meas_set_from_str(const char *name) +{ return get_string_value(tdma_meas_set_names, name); } + /* obtain an average over the last 'num' fields in the meas reps */ int get_meas_rep_avg(const struct gsm_lchan *lchan, enum tdma_meas_field field, enum tdma_meas_dir dir, enum tdma_meas_set set, |