From d44ef56e3b0c326e9a448f1e2dba924c65ff210e Mon Sep 17 00:00:00 2001
From: Haruki NAOI <naoi.haruki@jp.fujitsu.com>
Date: Tue, 28 Aug 2018 16:55:45 +0900
Subject: [PATCH] Fix: UE dose not respond to paging message.

---
 openair1/SCHED/fapi_l1.c             | 4 ++--
 openair2/RRC/LTE/MESSAGES/asn1_msg.c | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/openair1/SCHED/fapi_l1.c b/openair1/SCHED/fapi_l1.c
index ad72c3d9f5..4c2f8d53d5 100644
--- a/openair1/SCHED/fapi_l1.c
+++ b/openair1/SCHED/fapi_l1.c
@@ -300,9 +300,9 @@ void handle_nfapi_dlsch_pdu(PHY_VARS_eNB *eNB,int frame,int subframe,eNB_rxtx_pr
     dlsch0_harq->pdsch_start        = rel10->pdsch_start;
   }
 #ifdef PHY_TX_THREAD
-  dlsch0_harq->i0          = rel13->initial_transmission_sf_io;
+  dlsch0_harq->i0          = 0xFFFF;
 #else
-  dlsch0->i0               = rel13->initial_transmission_sf_io;
+  dlsch0->i0               = 0xFFFF;
 #endif
 
 #endif
diff --git a/openair2/RRC/LTE/MESSAGES/asn1_msg.c b/openair2/RRC/LTE/MESSAGES/asn1_msg.c
index 66aae4237a..3dd50b06ef 100644
--- a/openair2/RRC/LTE/MESSAGES/asn1_msg.c
+++ b/openair2/RRC/LTE/MESSAGES/asn1_msg.c
@@ -3314,6 +3314,7 @@ uint8_t do_Paging(uint8_t Mod_id, uint8_t *buffer, ue_paging_identity_t ue_pagin
                              &paging_record_p->ue_Identity.choice.s_TMSI.m_TMSI);
     paging_record_p->ue_Identity.choice.s_TMSI.m_TMSI.bits_unused = 0;
   } else if (ue_paging_identity.presenceMask == UE_PAGING_IDENTITY_imsi) {
+    paging_record_p->ue_Identity.present = PagingUE_Identity_PR_imsi;
     IMSI_Digit_t imsi_digit[21];
     for (j = 0; j< ue_paging_identity.choice.imsi.length; j++) {  /* IMSI size */
       imsi_digit[j] = (IMSI_Digit_t)ue_paging_identity.choice.imsi.buffer[j];
-- 
GitLab