Skip to content
Snippets Groups Projects
Commit 8cf8a44e authored by Guido Casati's avatar Guido Casati :speech_balloon: Committed by Thomas Laurent
Browse files

Handle division by 0 assert gracefully in average channel level calculation

* nb_re_pdsch is directly linked to nb_rb_pdsch, if the latter is 0 the
  former is also 0
* compute average channel level only when number of RE for PDSCH is not 0
  the average channel level will be set to 0 otherwise
* Added a log message to handle this special case, which is consequence
  of other issues in the RX chain
* with this commit, the inconsistency in the RX chain will be handled
  in later in nr_ue_pdsch_procedures with a demodulation failure

other minor changes:

* Improved clarity by using NR_NB_SC_PER_RB instead of hard-coded value 12 in nb of RBs calculation
* cleaned up unused variable and outdated comments
parent 168b172f
No related branches found
No related tags found
2 merge requests!2773Integration: `2024.w22` (Part 1),!2698Handle division by 0 gracefully in average channel level calculation
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment