diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-04-05 02:27:12 +0200 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-04-06 04:38:28 +0200 |
commit | b77c5eb0bc5d2b4a64ff98eb61817f14f2076fb5 (patch) | |
tree | d31f9c50e01b96de38406d7b1e82bacc200a7e63 | |
parent | e2034e0283b785811e5f757b38f9603cd5e92443 (diff) |
[hopping] generate_cell_chan_list(): make some pointers const
Change-Id: Ied4ee60224d71567ec613942ba1c03088e9b02f3
-rw-r--r-- | src/osmo-bsc/system_information.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bsc/system_information.c b/src/osmo-bsc/system_information.c index 5357d209e..e2ac04d4e 100644 --- a/src/osmo-bsc/system_information.c +++ b/src/osmo-bsc/system_information.c @@ -577,8 +577,8 @@ static int bitvec2freq_list(uint8_t *chan_list, const struct bitvec *bv, /* generate a cell channel list as per Section 10.5.2.1b of 04.08 */ int generate_cell_chan_list(uint8_t *chan_list, struct gsm_bts *bts) { - struct gsm_bts_trx *trx; struct bitvec *bv = &bts->si_common.cell_alloc; + const struct gsm_bts_trx *trx; /* Zero-initialize the bit-vector */ memset(bv->data, 0, bv->data_len); @@ -589,7 +589,7 @@ int generate_cell_chan_list(uint8_t *chan_list, struct gsm_bts *bts) /* Always add the TRX's ARFCN */ bitvec_set_bit_pos(bv, trx->arfcn, 1); for (i = 0; i < ARRAY_SIZE(trx->ts); i++) { - struct gsm_bts_trx_ts *ts = &trx->ts[i]; + const struct gsm_bts_trx_ts *ts = &trx->ts[i]; /* Add any ARFCNs present in hopping channels */ for (j = 0; j < 1024; j++) { if (bitvec_get_bit_pos(&ts->hopping.arfcns, j)) |