Commit f999237a authored by Vijay Chadachan's avatar Vijay Chadachan

Fix the rbsize calculation for retransmission cases

parent a54ccfec
...@@ -476,7 +476,7 @@ static bool allocate_dl_retransmission(module_id_t module_id, ...@@ -476,7 +476,7 @@ static bool allocate_dl_retransmission(module_id_t module_id,
return false; return false;
} }
while (rbStart + rbSize < rbStop && while (rbStart + rbSize <= rbStop &&
(rballoc_mask[rbStart + rbSize] & slbitmap) == slbitmap && (rballoc_mask[rbStart + rbSize] & slbitmap) == slbitmap &&
rbSize < retInfo->rbSize) rbSize < retInfo->rbSize)
rbSize++; rbSize++;
...@@ -493,7 +493,7 @@ static bool allocate_dl_retransmission(module_id_t module_id, ...@@ -493,7 +493,7 @@ static bool allocate_dl_retransmission(module_id_t module_id,
while (rbStart < rbStop && (rballoc_mask[rbStart] & slbitmap) != slbitmap) while (rbStart < rbStop && (rballoc_mask[rbStart] & slbitmap) != slbitmap)
rbStart++; rbStart++;
while (rbStart + rbSize < rbStop && (rballoc_mask[rbStart + rbSize] & slbitmap) == slbitmap) while (rbStart + rbSize <= rbStop && (rballoc_mask[rbStart + rbSize] & slbitmap) == slbitmap)
rbSize++; rbSize++;
uint32_t new_tbs; uint32_t new_tbs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment