Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
PUSCH PDU for msg3 and UL-CCCH Ind flow completion
[o-du/l2.git]
/
src
/
phy_stub
/
l1_bdy1.c
diff --git
a/src/phy_stub/l1_bdy1.c
b/src/phy_stub/l1_bdy1.c
index
9bb8362
..
086cd1e
100644
(file)
--- a/
src/phy_stub/l1_bdy1.c
+++ b/
src/phy_stub/l1_bdy1.c
@@
-333,7
+333,7
@@
uint16_t l1BuildAndSendCrcInd(uint16_t slot, uint16_t sfn)
return ROK;
} /* l1BuildAndSendCrcInd */
return ROK;
} /* l1BuildAndSendCrcInd */
-
+#ifdef FAPI
/*******************************************************************
*
* @brief Build and send Rx data indication
/*******************************************************************
*
* @brief Build and send Rx data indication
@@
-351,9
+351,8
@@
uint16_t l1BuildAndSendCrcInd(uint16_t slot, uint16_t sfn)
* RFAILED - failure
*
* ****************************************************************/
* RFAILED - failure
*
* ****************************************************************/
-uint16_t l1BuildAndSendRxDataInd(uint16_t slot, uint16_t sfn)
+uint16_t l1BuildAndSendRxDataInd(uint16_t slot, uint16_t sfn
, fapi_ul_pusch_pdu_t puschPdu
)
{
{
-#ifdef FAPI
uint8_t idx = 0;
fapi_rx_data_indication_t *rxDataInd;
fapi_pdu_ind_info_t *pduInfo;
uint8_t idx = 0;
fapi_rx_data_indication_t *rxDataInd;
fapi_pdu_ind_info_t *pduInfo;
@@
-373,10
+372,10
@@
uint16_t l1BuildAndSendRxDataInd(uint16_t slot, uint16_t sfn)
rxDataInd->numPdus = 1;
pduInfo = &rxDataInd->pdus[idx];
rxDataInd->numPdus = 1;
pduInfo = &rxDataInd->pdus[idx];
- pduInfo->handle =
0
;
- pduInfo->rnti =
0
;
- pduInfo->harqId =
0
;
- pduInfo->pduLength =
24
;
+ pduInfo->handle =
puschPdu.handle
;
+ pduInfo->rnti =
puschPdu.rnti
;
+ pduInfo->harqId =
puschPdu.puschData.harqProcessId
;
+ pduInfo->pduLength =
puschPdu.puschData.tbSize
;
pduInfo->ul_cqi = 0;
pduInfo->timingAdvance = 0;
pduInfo->rssi = 0;
pduInfo->ul_cqi = 0;
pduInfo->timingAdvance = 0;
pduInfo->rssi = 0;
@@
-416,10
+415,9
@@
uint16_t l1BuildAndSendRxDataInd(uint16_t slot, uint16_t sfn)
if(pduInfo->pduLength)
MAC_FREE(pduInfo->pduData, pduInfo->pduLength);
MAC_FREE(rxDataInd, sizeof(fapi_rx_data_indication_t));
if(pduInfo->pduLength)
MAC_FREE(pduInfo->pduData, pduInfo->pduLength);
MAC_FREE(rxDataInd, sizeof(fapi_rx_data_indication_t));
-#endif
return ROK;
}
return ROK;
}
-
+#endif
/*******************************************************************
*
/*******************************************************************
*
@@
-700,6
+698,12
@@
PUBLIC S16 l1HdlUlTtiReq(uint16_t msgLen, void *msg)
{
if(ulTtiReq->pdus[numPdus-1].pduType == 0)
DU_LOG("\nPHY STUB: PRACH PDU");
{
if(ulTtiReq->pdus[numPdus-1].pduType == 0)
DU_LOG("\nPHY STUB: PRACH PDU");
+ if(ulTtiReq->pdus[numPdus-1].pduType == 1)
+ {
+ DU_LOG("\nPHY STUB: PUSCH PDU");
+ l1BuildAndSendRxDataInd(ulTtiReq->slot, ulTtiReq->sfn, \
+ ulTtiReq->pdus[numPdus-1].u.pusch_pdu);
+ }
numPdus--;
}
numPdus--;
}