diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-06-03 22:27:51 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-06-04 19:42:43 +0000 |
commit | cdaf3ec006d5cf580da758370350f97f3505c5b6 (patch) | |
tree | b8745887dd6024371f6e145e9481a684d0997cca /src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c | |
parent | 20e335886752295842dba125b9145b164fc3aae1 (diff) |
Make interference measurement parameters configurable
According to 3GPP TS 45.008, the BSS shall monitor the levels of
interference on its IDLE traffic channels. The actual measurements
are performed in the BTS and then reported to the BSC over the
A-bis/RSL link(s) in RF RESource INDication messages.
3GPP TS 45.008 defines the following measurement parameters:
* Intave: Interference Averaging period (see table A.1),
* Interference level Boundaries (see table A.1).
Both parameters are sent to the BTS over the A-bis/OML, and can
now be configured via the VTY interface. Only those BTS models
which 'speak' the OML protocol defined in 3GPP TS 52.021 will
actually get the configured parameters, others will keep using
the hard-coded parameters.
Change-Id: I99ebf57aac1f3ca7e0497c3b4f6b0738c6ed7e47
Related: SYS#5313, OS#1866
Diffstat (limited to 'src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c')
-rw-r--r-- | src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c b/src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c index 885f4cc21..ed3a80212 100644 --- a/src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c +++ b/src/osmo-bsc/bts_ipaccess_nanobts_omlattr.c @@ -35,11 +35,12 @@ struct msgb *nanobts_attr_bts_get(struct gsm_bts *bts) if (!msgb) return NULL; - memcpy(buf, "\x55\x5b\x61\x67\x6d\x73", 6); - msgb_tv_fixed_put(msgb, NM_ATT_INTERF_BOUND, 6, buf); - - /* interference avg. period in numbers of SACCH multifr */ - msgb_tv_put(msgb, NM_ATT_INTAVE_PARAM, 0x06); + /* Interference level Boundaries: 0 .. X5 (3GPP TS 52.021, section 9.4.25) */ + msgb_tv_fixed_put(msgb, NM_ATT_INTERF_BOUND, + sizeof(bts->interf_meas_params.bounds_dbm), + &bts->interf_meas_params.bounds_dbm[0]); + /* Intave: Interference Averaging period (3GPP TS 52.021, section 9.4.24) */ + msgb_tv_put(msgb, NM_ATT_INTAVE_PARAM, bts->interf_meas_params.avg_period); rlt = gsm_bts_get_radio_link_timeout(bts); if (rlt == -1) { |