Added new parameter in FAPI Config request 11/4311/1
authorBalaji Shankaran <balaji.shankaran@radisys.com>
Fri, 3 Jul 2020 11:25:40 +0000 (16:55 +0530)
committerBalaji Shankaran <balaji.shankaran@radisys.com>
Fri, 3 Jul 2020 11:25:49 +0000 (16:55 +0530)
Change-Id: I6eeab19e4e27b2882ebc4df9e5a352ed62496230
Signed-off-by: Balaji Shankaran <balaji.shankaran@radisys.com>
src/5gnrmac/lwr_mac_fsm.c
src/cm/du_app_mac_inf.h
src/du_app/du_cfg.c
src/du_app/du_cfg.h

index 04a6c9c..56224e1 100644 (file)
@@ -2031,6 +2031,10 @@ S16 lwr_mac_handleConfigReqEvt(void *msg)
       fillTlvs(&configReq->tlvs[index++], FAPI_RSSI_MESUREMENT_TAG,           \
          sizeof(uint8_t), macCfgParams.rssiUnit, &msgLen);
 
+      /* fill DMRS Type A Pos */
+               fillTlvs(&configReq->tlvs[index++], FAPI_DMRS_TYPE_A_POS_TAG,           \
+                  sizeof(uint8_t), macCfgParams.dmrsTypeAPos, &msgLen);
+
       fillMsgHeader(&configReq->header, FAPI_CONFIG_REQUEST, msgLen);
 
       DU_LOG("\nLWR_MAC: Sending Config Request to Phy");
index e438725..ef4eea0 100644 (file)
@@ -288,6 +288,7 @@ typedef struct macCellCfg
    Sib1CellCfg    sib1Cfg;          /* SIB1 config */
        BwpDlConfig    initialDlBwp;     /* Initial DL BWP */
        BwpUlConfig    initialUlBwp;     /* Initial UL BWP */
+       uint8_t        dmrsTypeAPos;     /* DMRS Type A position */
 }MacCellCfg;
 
 typedef struct macCellCfgCfm
index 3afa2c7..3093959 100644 (file)
@@ -274,9 +274,11 @@ S16 readMacCfg()
        duCfgParam.macCellCfg.initialUlBwp.puschCommon.lengthSymbol =
           PUSCH_LENGTH_SYMBOL;
 
+       duCfgParam.macCellCfg.dmrsTypeAPos = DMRS_TYPE_A_POS; 
+
    /* This should be calculated based on
       (number of mandatory parameters) + (number of otional parameters being filled) */
-   duCfgParam.macCellCfg.numTlv = 39;
+   duCfgParam.macCellCfg.numTlv = 40;
 
    RETVALUE(ROK);
 }
index 4a52efb..e6710e1 100644 (file)
 /* MACROS */
 #define DU_INST 0
 #define DU_ID 1
-#define DU_IP_V4_ADDR "10.0.2.20"
+#define DU_IP_V4_ADDR "192.168.130.81"
 #define CU_IP_V4_ADDR "10.0.2.25"
-#define RIC_IP_V4_ADDR "10.0.2.30"
+#define RIC_IP_V4_ADDR "192.168.130.80"
 #define DU_PORT 38472
 #define CU_PORT 38472
-#define RIC_PORT 38482
+#define RIC_PORT 36422
 #define DU_EGTP_PORT  39001
 #define CU_EGTP_PORT  39002
 #define NR_PCI 1
@@ -73,6 +73,7 @@
 #define FREQ_LOC_BW  1099              /* DL frequency location and bandwidth */
 #define UL_P_MAX  23
 #define BANDWIDTH 20
+#define DMRS_TYPE_A_POS 2
 
 /* MACRO defines for PRACH Configuration */
 #define PRACH_CONFIG_IDX   105