[AMF/MME] forget UE Radio Capability (#1917)

forgetting the UE Radio Capabilities
when UE is sending NAS "De-Registration Request" with "type = Switch-off
This commit is contained in:
Sukchan Lee 2022-11-27 09:03:44 +09:00
parent f85ff227c8
commit 9170617df1
2 changed files with 28 additions and 2 deletions

View File

@ -664,9 +664,22 @@ int gmm_handle_deregistration_request(amf_ue_t *amf_ue,
amf_ue->nas.ue.tsc, amf_ue->nas.amf.tsc,
amf_ue->nas.ue.ksi, amf_ue->nas.amf.ksi);
if (deregistration_request->de_registration_type.switch_off)
if (deregistration_request->de_registration_type.switch_off) {
ogs_debug(" Switch-Off");
/*
* Issue #1917
*
* When the UE sends a De-registration Request with Switch-Off,
* AMF should remove the the stored UE Radio Capability.
*
* Otherwise, the Radio Capability will not match
* because the gNB will not query the Radio Capability
* when the UE changes USIM.
*/
OGS_ASN_CLEAR_DATA(&amf_ue->ueRadioCapability);
}
ogs_info("[%s] SUCI", amf_ue->suci);
amf_sbi_send_release_all_sessions(

View File

@ -423,9 +423,22 @@ int emm_handle_detach_request(
default: /* all other values */
break;
}
if (detach_request->detach_type.switch_off)
if (detach_request->detach_type.switch_off) {
ogs_debug(" Switch-Off");
/*
* Issue #1917
*
* When the UE sends a Detach Request with Switch-Off,
* MME should remove the the stored UE Radio Capability.
*
* Otherwise, the Radio Capability will not match
* because the eNB will not query the Radio Capability
* when the UE changes USIM.
*/
OGS_ASN_CLEAR_DATA(&mme_ue->ueRadioCapability);
}
return OGS_OK;
}