From 7e2c8e39f820a0dc76d340ec290ab8a26f9ea747 Mon Sep 17 00:00:00 2001
From: "Wilson W.K. Thong" <wilsonthong@astri.org>
Date: Tue, 3 May 2016 01:32:48 +0800
Subject: [PATCH] fixed oaisim build failed with the new KeNB refresh request
 message from NAS -> AS

---
 openair3/NAS/UE/EMM/SecurityModeControl.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/openair3/NAS/UE/EMM/SecurityModeControl.c b/openair3/NAS/UE/EMM/SecurityModeControl.c
index b3f2b6f8a8..9f4186412e 100755
--- a/openair3/NAS/UE/EMM/SecurityModeControl.c
+++ b/openair3/NAS/UE/EMM/SecurityModeControl.c
@@ -72,7 +72,9 @@ Description Defines the security mode control EMM procedure executed by the
 #include "secu_defs.h"
 #include "msc.h"
 
+#if  defined(NAS_BUILT_IN_UE)
 #include "nas_itti_messaging.h"
+#endif
 
 /****************************************************************************/
 /****************  E X T E R N A L    D E F I N I T I O N S  ****************/
@@ -295,7 +297,9 @@ int emm_proc_security_mode_command(int native_ksi, int ksi,
 
       _emm_data.security->selected_algorithms.encryption = seea;
       _emm_data.security->selected_algorithms.integrity  = seia;
+#if  defined(NAS_BUILT_IN_UE)
       nas_itti_kenb_refresh_req(_security_data.kenb.value);
+#endif
     }
     /*
      * NAS security mode command not accepted by the UE
-- 
GitLab