From 2700c3aef95aaae6d3379b8416dc72e791635c42 Mon Sep 17 00:00:00 2001
From: Wu Jing <wu.jing@cn.fujitsu.com>
Date: Thu, 23 May 2019 18:05:58 +0900
Subject: [PATCH] fix NFAPI_MODE mistake when it is PNF because enum is
 NFAPI_MODE_PNF not NFAPI_PNF

---
 nfapi/oai_integration/nfapi_pnf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nfapi/oai_integration/nfapi_pnf.c b/nfapi/oai_integration/nfapi_pnf.c
index 0300e10052..7ff235a0a4 100644
--- a/nfapi/oai_integration/nfapi_pnf.c
+++ b/nfapi/oai_integration/nfapi_pnf.c
@@ -1366,7 +1366,7 @@ void configure_nfapi_pnf(char *vnf_ip_addr, int vnf_p5_port, char *pnf_ip_addr,
   printf("%s() PNF\n\n\n\n\n\n", __FUNCTION__);
 
   if(NFAPI_MODE!=NFAPI_UE_STUB_PNF) {
-    nfapi_setmode(NFAPI_PNF);  // PNF!
+    nfapi_setmode(NFAPI_MODE_PNF);  // PNF!
   }
 
   nfapi_pnf_config_t *config = nfapi_pnf_config_create();
-- 
2.26.2