Commit f1cb44a0 authored by Robert Schmidt's avatar Robert Schmidt

Bugfix: decrease actual MCS value

parent 951fdfef
...@@ -734,7 +734,7 @@ void calculate_max_mcs_min_rb(module_id_t mod_id, ...@@ -734,7 +734,7 @@ void calculate_max_mcs_min_rb(module_id_t mod_id,
/* find maximum MCS */ /* find maximum MCS */
while ((phr - *tx_power < 0 || tbs > bytes) && *mcs > 3) { while ((phr - *tx_power < 0 || tbs > bytes) && *mcs > 3) {
mcs--; (*mcs)--;
tbs = get_TBS_UL(*mcs, rb_table[*rb_index]); tbs = get_TBS_UL(*mcs, rb_table[*rb_index]);
*tx_power = estimate_ue_tx_power(tbs * 8, rb_table[*rb_index], 0, Ncp, 0); *tx_power = estimate_ue_tx_power(tbs * 8, rb_table[*rb_index], 0, Ncp, 0);
} }
......
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