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
Merge "ASN Structure filling for SRS-Config : ODUHIGH-182"
[o-du/l2.git]
/
src
/
5gnrsch
/
sch_utils.c
diff --git
a/src/5gnrsch/sch_utils.c
b/src/5gnrsch/sch_utils.c
index
1397c65
..
1f0035a
100644
(file)
--- a/
src/5gnrsch/sch_utils.c
+++ b/
src/5gnrsch/sch_utils.c
@@
-448,7
+448,7
@@
void schAllocFreqDomRscType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqD
{
uint8_t remBits = prbSize; /* each bit represents 6 PRBs */
uint8_t firstByte = 1;
{
uint8_t remBits = prbSize; /* each bit represents 6 PRBs */
uint8_t firstByte = 1;
- uint8_t numBits,startBit,byteCount =
0
;
+ uint8_t numBits,startBit,byteCount =
5
;
while(remBits)
{
while(remBits)
{
@@
-456,7
+456,7
@@
void schAllocFreqDomRscType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqD
if(startPrb/8)
{
startPrb -= 8;
if(startPrb/8)
{
startPrb -= 8;
- byteCount
++
;
+ byteCount
--
;
continue;
}
continue;
}
@@
-477,12
+477,12
@@
void schAllocFreqDomRscType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqD
numBits = 8 - startBit;
/* bit operation to set the bits */
numBits = 8 - startBit;
/* bit operation to set the bits */
- SET_BITS((startBit % 8),numBits,freqDomain[byteCount])
+ SET_BITS
_MSB
((startBit % 8),numBits,freqDomain[byteCount])
firstByte = 0;
/* the ramaining bits should be subtracted with the numBits set in this byte */
remBits -= numBits;
firstByte = 0;
/* the ramaining bits should be subtracted with the numBits set in this byte */
remBits -= numBits;
- byteCount
++
;
+ byteCount
--
;
}
}
}
}