mirror of https://gerrit.osmocom.org/libosmocore
gsm: constify several readonly params
Change-Id: Ib11bfe57f546a5618f70152b9b75115808e54bf6
This commit is contained in:
parent
a9a9ce6db0
commit
6ca0a43294
|
@ -33,7 +33,7 @@
|
|||
|
||||
/* Table 5 Clause 7 TS 05.02 */
|
||||
static inline unsigned int
|
||||
gsm0502_get_n_pag_blocks(struct gsm48_control_channel_descr *chan_desc)
|
||||
gsm0502_get_n_pag_blocks(const struct gsm48_control_channel_descr *chan_desc)
|
||||
{
|
||||
if (chan_desc->ccch_conf == RSL_BCCH_CCCH_CONF_1_C)
|
||||
return 3 - chan_desc->bs_ag_blks_res;
|
||||
|
@ -58,7 +58,7 @@ gsm0502_get_paging_group(uint64_t imsi, unsigned int bs_cc_chans,
|
|||
}
|
||||
|
||||
unsigned int
|
||||
gsm0502_calc_paging_group(struct gsm48_control_channel_descr *chan_desc, uint64_t imsi);
|
||||
gsm0502_calc_paging_group(const struct gsm48_control_channel_descr *chan_desc, uint64_t imsi);
|
||||
|
||||
enum gsm0502_fn_remap_channel {
|
||||
FN_REMAP_TCH_F,
|
||||
|
|
|
@ -106,7 +106,7 @@ void gsm48_encode_ra(struct gsm48_ra_id *out, const struct gprs_ra_id *raid);
|
|||
int gsm48_construct_ra(uint8_t *buf, const struct gprs_ra_id *raid) OSMO_DEPRECATED("Use gsm48_encode_ra() instead");
|
||||
bool gsm48_ra_equal(const struct gprs_ra_id *raid1, const struct gprs_ra_id *raid2);
|
||||
|
||||
int gsm48_number_of_paging_subchannels(struct gsm48_control_channel_descr *chan_desc);
|
||||
int gsm48_number_of_paging_subchannels(const struct gsm48_control_channel_descr *chan_desc);
|
||||
|
||||
void gsm48_mcc_mnc_to_bcd(uint8_t *bcd_dst, uint16_t mcc, uint16_t mnc)
|
||||
OSMO_DEPRECATED("Use osmo_plmn_to_bcd() instead, to not lose leading zeros in the MNC");
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
#include <inttypes.h>
|
||||
|
||||
unsigned int
|
||||
gsm0502_calc_paging_group(struct gsm48_control_channel_descr *chan_desc, uint64_t imsi)
|
||||
gsm0502_calc_paging_group(const struct gsm48_control_channel_descr *chan_desc, uint64_t imsi)
|
||||
{
|
||||
int ccch_conf;
|
||||
int bs_cc_chans;
|
||||
|
|
|
@ -1361,7 +1361,7 @@ bool gsm48_ra_equal(const struct gprs_ra_id *raid1, const struct gprs_ra_id *rai
|
|||
* Uses From Table 10.5.33 of GSM 04.08 to determine the number of
|
||||
* paging sub-channels in the given control channel configuration
|
||||
*/
|
||||
int gsm48_number_of_paging_subchannels(struct gsm48_control_channel_descr *chan_desc)
|
||||
int gsm48_number_of_paging_subchannels(const struct gsm48_control_channel_descr *chan_desc)
|
||||
{
|
||||
unsigned int n_pag_blocks = gsm0502_get_n_pag_blocks(chan_desc);
|
||||
|
||||
|
|
Loading…
Reference in New Issue