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
JIRA ID: ODUHIGH-314 : Time domain allocation for SSB in TDD mode
[o-du/l2.git]
/
src
/
5gnrmac
/
mac_mux.c
diff --git
a/src/5gnrmac/mac_mux.c
b/src/5gnrmac/mac_mux.c
index
8017f57
..
18167d7
100644
(file)
--- a/
src/5gnrmac/mac_mux.c
+++ b/
src/5gnrmac/mac_mux.c
@@
-42,7
+42,7
@@
* @return void
*
* ****************************************************************/
* @return void
*
* ****************************************************************/
-void packBytes(uint8_t *buf, uint
8
_t *bytePos, uint8_t *bitPos, uint32_t val, uint8_t valSize)
+void packBytes(uint8_t *buf, uint
16
_t *bytePos, uint8_t *bitPos, uint32_t val, uint8_t valSize)
{
uint32_t temp;
uint8_t bytePart1;
{
uint32_t temp;
uint8_t bytePart1;
@@
-99,7
+99,7
@@
void fillRarPdu(RarInfo *rarInfo)
uint8_t *rarPdu = rarInfo->rarPdu;
uint16_t totalBits = 0;
uint8_t numBytes = 0;
uint8_t *rarPdu = rarInfo->rarPdu;
uint16_t totalBits = 0;
uint8_t numBytes = 0;
- uint
8_t
bytePos= 0;
+ uint
16_t
bytePos= 0;
uint8_t bitPos = 0;
/* RAR subheader fields */
uint8_t bitPos = 0;
/* RAR subheader fields */
@@
-278,7
+278,7
@@
void fillMacCe(MacCeInfo *macCeInfo, uint8_t *msg3Pdu)
void macMuxPdu(MacDlData *dlData, MacCeInfo *macCeData, uint8_t *txPdu, uint16_t tbSize)
{
void macMuxPdu(MacDlData *dlData, MacCeInfo *macCeData, uint8_t *txPdu, uint16_t tbSize)
{
- uint
8
_t bytePos = 0;
+ uint
16
_t bytePos = 0;
uint8_t bitPos = 7;
uint8_t idx = 0;
uint8_t macPdu[tbSize];
uint8_t bitPos = 7;
uint8_t idx = 0;
uint8_t macPdu[tbSize];
@@
-286,8
+286,8
@@
void macMuxPdu(MacDlData *dlData, MacCeInfo *macCeData, uint8_t *txPdu, uint16_t
/* subheader fields */
uint8_t RBit = 0; /* Reserved bit */
/* subheader fields */
uint8_t RBit = 0; /* Reserved bit */
- uint8_t FBit; /* Format Indicator */
- uint8_t lcid; /* LCID */
+ uint8_t FBit
=0
; /* Format Indicator */
+ uint8_t lcid
=0
; /* LCID */
uint16_t lenField = 0; /* Length field */
/* subheader field size (in bits) */
uint16_t lenField = 0; /* Length field */
/* subheader field size (in bits) */
@@
-315,7
+315,7
@@
void macMuxPdu(MacDlData *dlData, MacCeInfo *macCeData, uint8_t *txPdu, uint16_t
break;
}
default:
break;
}
default:
- DU_LOG("\n MAC: Invalid LCID %d in mac pdu",lcid);
+ DU_LOG("\n
ERROR -->
MAC: Invalid LCID %d in mac pdu",lcid);
break;
}
}
break;
}
}
@@
-353,10
+353,9
@@
void macMuxPdu(MacDlData *dlData, MacCeInfo *macCeData, uint8_t *txPdu, uint16_t
}
default:
}
default:
- DU_LOG("\n MAC: Invalid LCID %d in mac pdu",lcid);
+ DU_LOG("\n
ERROR -->
MAC: Invalid LCID %d in mac pdu",lcid);
break;
}
break;
}
-
}
if(bytePos < tbSize && (tbSize-bytePos >= 1))
{
}
if(bytePos < tbSize && (tbSize-bytePos >= 1))
{