make vlr_gmm_cause_to_mm_cause public

To be used by vlr_auth_fsm

Change-Id: I9e13e756f359a9b9e6a2056ab37adf0af14afec1
changes/91/15491/5
Alexander Couzens 4 years ago committed by laforge
parent 1bfe0e1cd1
commit 7312b15830
  1. 3
      include/osmocom/msc/vlr.h
  2. 6
      src/libvlr/vlr.c

@ -473,3 +473,6 @@ bool vlr_use_umts_aka(struct osmo_auth_vector *vec, bool is_r99);
void log_set_filter_vlr_subscr(struct log_target *target,
struct vlr_subscr *vlr_subscr);
void vlr_gmm_cause_to_mm_cause(enum gsm48_gmm_cause gmm_cause,
enum gsm48_reject_value *gsm48_rej_p);

@ -923,8 +923,8 @@ static int vlr_subscr_handle_lu_err(struct vlr_subscr *vsub,
return 0;
}
static void gmm_cause_to_mm_cause(enum gsm48_gmm_cause gmm_cause,
enum gsm48_reject_value *gsm48_rej_p)
void vlr_gmm_cause_to_mm_cause(enum gsm48_gmm_cause gmm_cause,
enum gsm48_reject_value *gsm48_rej_p)
{
enum gsm48_reject_value gsm48_rej = GSM48_REJECT_NETWORK_FAILURE;
switch (gmm_cause) {
@ -1029,7 +1029,7 @@ static int vlr_subscr_handle_cancel_req(struct vlr_subscr *vsub,
gsup_reply.message_type = OSMO_GSUP_MSGT_LOCATION_CANCEL_RESULT;
rc = vlr_subscr_tx_gsup_message(vsub, &gsup_reply);
gmm_cause_to_mm_cause(gsup_msg->cause, &gsm48_rej);
vlr_gmm_cause_to_mm_cause(gsup_msg->cause, &gsm48_rej);
vlr_subscr_cancel_attach_fsm(vsub, fsm_cause, gsm48_rej);
vlr_subscr_rx_imsi_detach(vsub);

Loading…
Cancel
Save