Merge remote-tracking branch 'Rakesh_B_B/develop' into integration_2025_w46 (!3722)
[NGAP] Fix incorrect AMF Set ID type (uint8 → uint16) causing AMF lookup failure This PR fixes issue #1012 , a data type issue related to the AMF Set ID used during UE RRC reestablishment. The AMF Set ID was mistakenly declared as uint8_t instead of uint16_t, even though it is a 10-bit field as specified in 3GPP TS 23.003 section 2.10.1. As a result, AMF Set IDs greater than 255 were truncated, leading to failed AMF lookups and the following warning: No matching AMF found for PLMN (MCC=%03d MNC=%0*d) and AMF SetID=%u. Verified reestablishment succeeds with AMF Set IDs >255.
This commit is contained in:
@@ -156,7 +156,7 @@ ngap_gNB_amf_data_t *ngap_gNB_nnsf_select_amf_by_plmn_id(ngap_gNB_instance_t *in
|
||||
ngap_gNB_amf_data_t *ngap_gNB_nnsf_select_amf_by_amf_setid(ngap_gNB_instance_t *instance_p,
|
||||
const ngap_rrc_establishment_cause_t cause,
|
||||
const plmn_id_t selected_plmn_identity,
|
||||
uint8_t amf_setid)
|
||||
uint16_t amf_setid)
|
||||
{
|
||||
struct ngap_gNB_amf_data_s *amf_data_p = NULL;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ ngap_gNB_amf_data_t *ngap_gNB_nnsf_select_amf_by_plmn_id(ngap_gNB_instance_t *in
|
||||
ngap_gNB_amf_data_t *ngap_gNB_nnsf_select_amf_by_amf_setid(ngap_gNB_instance_t *instance_p,
|
||||
const ngap_rrc_establishment_cause_t cause,
|
||||
const plmn_id_t selected_plmn_identity,
|
||||
uint8_t amf_setid);
|
||||
uint16_t amf_setid);
|
||||
|
||||
ngap_gNB_amf_data_t *ngap_gNB_nnsf_select_amf_by_guami(ngap_gNB_instance_t *instance_p,
|
||||
const ngap_rrc_establishment_cause_t cause,
|
||||
|
||||
Reference in New Issue
Block a user