Commit a83ad18e authored by knopp's avatar knopp
Browse files

flagged an error condition in ulsch_decoding which causes a divide by zero, function now returns -1

git-svn-id: 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 24f647dd
......@@ -299,12 +299,12 @@ unsigned int ulsch_decoding(PHY_VARS_eNB *phy_vars_eNB,
if (harq_pid==255) {
LOG_E(PHY, "FATAL ERROR: illegal harq_pid, returning\n");
return -1;
if (ulsch_harq->Nsymb_pusch == 0) {
LOG_E(PHY, "FATAL ERROR: harq_pid %d, Nsymb 0!\n",harq_pid);
return 1+ulsch->max_turbo_iterations;
if (llr8_flag == 0)
tc = phy_threegpplte_turbo_decoder16;
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