documentation typo, build error, pack/unpack bug fix

This commit is contained in:
Mahesh
2021-08-10 14:22:50 +05:30
parent 09e32b2839
commit 37e7db80a3
7 changed files with 20 additions and 10 deletions
+3
View File
@@ -92,6 +92,9 @@ extern void handle_nr_nfapi_pdsch_pdu(PHY_VARS_gNB *gNB,int frame,int slot,
uint8_t *sdu);
extern void handle_nr_nfapi_ssb_pdu(PHY_VARS_gNB *gNB,int frame,int slot,
nfapi_nr_dl_tti_request_pdu_t *dl_tti_pdu);
extern void handle_nfapi_nr_csirs_pdu(PHY_VARS_gNB *gNB,
int frame, int slot,
nfapi_nr_dl_tti_csi_rs_pdu *csirs_pdu);
extern void nr_fill_ulsch(PHY_VARS_gNB *gNB,
int frame,
int slot,
+2 -2
View File
@@ -708,7 +708,7 @@ static uint8_t pack_dl_tti_request_body_value(void* tlv, uint8_t **ppWritePacked
{
nfapi_nr_dl_tti_request_pdu_t* value = (nfapi_nr_dl_tti_request_pdu_t*)tlv;
if(!(push16(value->PDUSize, ppWritePackedMsg, end) &&
if(!(push32(value->PDUSize, ppWritePackedMsg, end) &&
push16(value->PDUType, ppWritePackedMsg, end) ))
return 0;
@@ -4607,7 +4607,7 @@ static uint8_t unpack_dl_tti_request_body_value(uint8_t **ppReadPackedMsg, uint8
{
nfapi_nr_dl_tti_request_pdu_t* value = (nfapi_nr_dl_tti_request_pdu_t*)msg;
if(!(pull16(ppReadPackedMsg, &value->PDUSize, end) &&
if(!(pull32(ppReadPackedMsg, &value->PDUSize, end) &&
pull16(ppReadPackedMsg, &value->PDUType, end) ))
return 0;