vlr_auth_fsm.c: Simplify function auth_fsm_wait_ai_resync

Change-Id: I2070002dea18b728deef5547b4deb6166cfcab6a
This commit is contained in:
Pau Espin 2021-08-24 12:25:40 +02:00
parent 13f17c13c3
commit eb1b3ab6da
1 changed files with 3 additions and 7 deletions

View File

@ -438,7 +438,9 @@ static void auth_fsm_wait_ai_resync(struct osmo_fsm_inst *fi,
switch (event) {
case VLR_AUTH_E_HLR_SAI_ACK:
vlr_subscr_update_tuples(vsub, gsup);
goto pass;
osmo_fsm_inst_state_chg(fi, VLR_SUB_AS_WAIT_RESP_RESYNC,
vlr_timer(vsub->vlr, 3260), 3260);
_vlr_subscr_authenticate(fi);
break;
case VLR_AUTH_E_HLR_SAI_NACK:
auth_fsm_term(fi,
@ -447,12 +449,6 @@ static void auth_fsm_wait_ai_resync(struct osmo_fsm_inst *fi,
: GSM48_REJECT_NETWORK_FAILURE);
break;
}
return;
pass:
osmo_fsm_inst_state_chg(fi, VLR_SUB_AS_WAIT_RESP_RESYNC,
vlr_timer(vsub->vlr, 3260), 3260);
_vlr_subscr_authenticate(fi);
}
/* Waiting for AUTH RESP from MS (re-sync case) */