diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-10-05 00:07:20 +0600 |
---|---|---|
committer | fixeria <vyanitskiy@sysmocom.de> | 2021-10-08 10:48:51 +0000 |
commit | 187e099c3ba7f6bbd663c528bd2e1391cbfb5f2b (patch) | |
tree | 4c8e7ec1d2254a72f6a719edd3288606137a0023 | |
parent | e73516ed00fb3ba34de3dc363c885125585e3381 (diff) |
rsl_tx_rf_res(): also report noise levels for PDTCH
This information may be useful for the BSC to determine whether
dynamic PDCH timeslots might be better used for new circuit
switched connections, or whether alternative PDCH slots should
be allocated for interference reasons.
Change-Id: I5b4d1da0920e788ac8063cc765fe5b0223c76758
Related: SYS#5313
-rw-r--r-- | src/common/rsl.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c index e4531aa1..638caf85 100644 --- a/src/common/rsl.c +++ b/src/common/rsl.c @@ -449,13 +449,20 @@ int rsl_tx_rf_res(struct gsm_bts_trx *trx) if (lchan->meas.interf_meas_avg_dbm == 0) continue; - /* We're not interested in active lchans */ - if (lchan->state == LCHAN_S_ACTIVE) - continue; - - /* Only for GSM_LCHAN_{SDCCH,TCH_F,TCH_H} */ - if (!lchan_is_dcch(lchan)) + /* Only for GSM_LCHAN_{SDCCH,TCH_F,TCH_H,PDTCH} */ + switch (lchan->type) { + case GSM_LCHAN_SDCCH: + case GSM_LCHAN_TCH_F: + case GSM_LCHAN_TCH_H: + /* We're not interested in active CS lchans */ + if (lchan->state == LCHAN_S_ACTIVE) + continue; + break; + case GSM_LCHAN_PDTCH: + break; + default: continue; + } msgb_v_put(nmsg, gsm_lchan2chan_nr_rsl(lchan)); msgb_v_put(nmsg, (lchan->meas.interf_band & 0x07) << 5); |