diff options
author | Max <msuraev@sysmocom.de> | 2017-06-15 14:59:20 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-06-15 16:39:55 +0200 |
commit | 8b1a2f8cd7a81c6b8c7cdb0963dcf89de7c46100 (patch) | |
tree | bea26194de9bc7af60d12f8ea04e193bd591c669 /openbsc/include | |
parent | 70fdd24d04a37217724ec8f12873e292b10e5e4d (diff) |
bsc_init: Forget which SIs are valid for the trx
Previously the SI generation lead to setting the BCCH SIs for all TRX in
a multi-trx setup. This is because we create the SIs globally but
si_valid appears to be limited to the 'current' trx. Warn if we attempt
to set SIs for the BCCH on a trx that does not have a BCCH.
Change-Id: Ie0e288252a2e7709c4dae16b96a0b1512278847f
Tweaked-by: Max <msuraev@sysmocom.de>
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/abis_rsl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/openbsc/include/openbsc/abis_rsl.h b/openbsc/include/openbsc/abis_rsl.h index e61d4eafd..400e09f67 100644 --- a/openbsc/include/openbsc/abis_rsl.h +++ b/openbsc/include/openbsc/abis_rsl.h @@ -25,7 +25,7 @@ #include <stdbool.h> #include <osmocom/gsm/protocol/gsm_08_58.h> #include <osmocom/gsm/gsm_utils.h> - +#include <osmocom/gsm/sysinfo.h> #include <osmocom/core/msgb.h> struct gsm_bts; @@ -35,8 +35,7 @@ struct gsm_bts_trx_ts; #define GSM48_LEN2PLEN(a) (((a) << 2) | 1) -int rsl_bcch_info(struct gsm_bts_trx *trx, uint8_t type, - const uint8_t *data, int len); +int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len); int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len); int rsl_chan_activate(struct gsm_bts_trx *trx, uint8_t chan_nr, |