Commit a69ec666 authored by Robert Schmidt's avatar Robert Schmidt

Assert on maximum number of used PUCCH resources

parent 62c58bd7
...@@ -600,6 +600,13 @@ bool nr_acknack_scheduling(int mod_id, ...@@ -600,6 +600,13 @@ bool nr_acknack_scheduling(int mod_id,
const int pucch_res = pucch_index_used[pucch->ul_slot]; const int pucch_res = pucch_index_used[pucch->ul_slot];
pucch->resource_indicator = pucch_res; pucch->resource_indicator = pucch_res;
pucch_index_used[pucch->ul_slot] += 1; pucch_index_used[pucch->ul_slot] += 1;
AssertFatal(pucch_index_used[pucch->ul_slot] <= n_res,
"UE %d in %4d.%2d: pucch_index_used is %d (%d available)\n",
UE_id,
pucch->frame,
pucch->ul_slot,
pucch_index_used[pucch->ul_slot],
n_res);
/* verify that at that slot and symbol, resources are free. We only do this /* verify that at that slot and symbol, resources are free. We only do this
* for initialCyclicShift 0 (we assume it always has that one), so other * for initialCyclicShift 0 (we assume it always has that one), so other
......
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