Commit 8de7d0a9 authored by Swetank Srivastava's avatar Swetank Srivastava

working commit for TC 8.1.1.3

parent af391348
...@@ -4405,12 +4405,13 @@ uint8_t do_Paging(uint8_t Mod_id, uint8_t *buffer, size_t buffer_size, ...@@ -4405,12 +4405,13 @@ uint8_t do_Paging(uint8_t Mod_id, uint8_t *buffer, size_t buffer_size,
pcch_msg.message.choice.c1.choice.paging.pagingRecordList = CALLOC(1,sizeof(*pcch_msg.message.choice.c1.choice.paging.pagingRecordList)); pcch_msg.message.choice.c1.choice.paging.pagingRecordList = CALLOC(1,sizeof(*pcch_msg.message.choice.c1.choice.paging.pagingRecordList));
pcch_msg.message.choice.c1.choice.paging.pagingRecordList->list.count = 0; pcch_msg.message.choice.c1.choice.paging.pagingRecordList->list.count = 0;
if ((paging_record_p = calloc(1, sizeof(LTE_PagingRecord_t))) == NULL) {
return (-1);
}
oneTimeProcessingFlag = 1; oneTimeProcessingFlag = 1;
} }
if ((paging_record_p = calloc(1, sizeof(LTE_PagingRecord_t))) == NULL) {
return (-1);
}
if (count <= pagingRecordCount) if (count <= pagingRecordCount)
{ {
memset(paging_record_p, 0, sizeof(LTE_PagingRecord_t)); memset(paging_record_p, 0, sizeof(LTE_PagingRecord_t));
......
...@@ -652,9 +652,10 @@ static int rrc_eNB_process_SS_PAGING_IND(MessageDef *msg_p, const char *msg_name ...@@ -652,9 +652,10 @@ static int rrc_eNB_process_SS_PAGING_IND(MessageDef *msg_p, const char *msg_name
ue_paging_identity.presenceMask = 0; ue_paging_identity.presenceMask = 0;
ss_paging_identity_t *p_paging_record = SS_PAGING_IND(msg_p).paging_recordList; ss_paging_identity_t *p_paging_record = SS_PAGING_IND(msg_p).paging_recordList;
count = SS_PAGING_IND(msg_p).num_paging_record; count = SS_PAGING_IND(msg_p).num_paging_record;
LOG_A(RRC, " Number of paging records::%d\n",SS_PAGING_IND(msg_p).num_paging_record);
while (count > 0) while (count > 0)
{ {
if (SS_PAGING_IND(msg_p).paging_recordList) if (p_paging_record)
{ {
LOG_A(RRC, "[eNB %ld] In SS_PAGING_IND: MASK %d, S_TMSI mme_code %d, m_tmsi %u SFN %d subframe %d cn_domain %d ue_index %d\n", instance, LOG_A(RRC, "[eNB %ld] In SS_PAGING_IND: MASK %d, S_TMSI mme_code %d, m_tmsi %u SFN %d subframe %d cn_domain %d ue_index %d\n", instance,
SS_PAGING_IND(msg_p).paging_recordList->ue_paging_identity.presenceMask, SS_PAGING_IND(msg_p).paging_recordList->ue_paging_identity.presenceMask,
...@@ -664,22 +665,27 @@ static int rrc_eNB_process_SS_PAGING_IND(MessageDef *msg_p, const char *msg_name ...@@ -664,22 +665,27 @@ static int rrc_eNB_process_SS_PAGING_IND(MessageDef *msg_p, const char *msg_name
SS_PAGING_IND(msg_p).sf, SS_PAGING_IND(msg_p).sf,
SS_PAGING_IND(msg_p).paging_recordList->cn_domain, SS_PAGING_IND(msg_p).paging_recordList->cn_domain,
(uint16_t)SS_PAGING_IND(msg_p).ue_index_value); (uint16_t)SS_PAGING_IND(msg_p).ue_index_value);
//memcpy(&ue_paging_identity, &(SS_PAGING_IND(msg_p).paging_recordList->ue_paging_identity), sizeof(ue_paging_identity_t));
memcpy(&ue_paging_identity, &(p_paging_record->ue_paging_identity), sizeof(ue_paging_identity_t)); memcpy(&ue_paging_identity, &(p_paging_record->ue_paging_identity), sizeof(ue_paging_identity_t));
cn_domain = p_paging_record->cn_domain; cn_domain = p_paging_record->cn_domain;
}
/* Create message for PDCP (DLInformationTransfer_t) */ /* Create message for PDCP (DLInformationTransfer_t) */
if (ue_paging_identity.presenceMask != UE_PAGING_IDENTITY_NONE) if (ue_paging_identity.presenceMask != UE_PAGING_IDENTITY_NONE)
{
length = do_Paging(instance,
buffer,
RRC_BUF_SIZE,
ue_paging_identity,
cn_domain, SS_PAGING_IND(msg_p).systemInfoModification,
SS_PAGING_IND(msg_p).num_paging_record);
count--;
}
p_paging_record++;
}
else
{ {
length = do_Paging(instance, LOG_E(RRC, "Received empty paging record");
buffer, return -1;
RRC_BUF_SIZE,
ue_paging_identity,
cn_domain, SS_PAGING_IND(msg_p).systemInfoModification,
SS_PAGING_IND(msg_p).num_paging_record);
count--;
} }
} }
if (length == -1) if (length == -1)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment