NR UE fix get_Qm_dl and nr_get_code_rate_dl
Check the provided MCS index according to the specified table. Some tables go up to MCS index 27, others up to MCS index 28. If the MCS index exceeds the allowed limit, assume max. MCS.
This fixes some assertion about Qm being 0.
Now, the only remaining UE crash for me is:
Thread 2 "Tpool_-1" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff42c9700 (LWP 12257)] 0x000000000053c035 in select_pucch_resource (ue=ue@entry=0x7ffff7eb6010, mac=mac@entry=0x1900490, gNB_id=gNB_id@entry=0 '\000', uci_size=uci_size@entry=4, pucch_resource_indicator=pucch_resource_indicator@entry=2, initial_pucch_id=initial_pucch_id@entry=0x7ffff42c8c40, resource_set_id=0x7ffff42c8c44, resource_id=0x7ffff42c8c48, harq_status=0x18ef2180) at /home/sli/openairinterface5g/openair1/SCHED_NR_UE/pucch_uci_ue_nr.c:961 961 if ((ready_pucch_resource_id == TRUE) || (mac->ULbwp[bwp_id-1]->bwp_Dedicated->pucch_Config->choice.setup->resourceSetToAddModList->list.array[pucch_resource_set_id]->resourceList.list.array[pucch_resource_indicator][0] != MAX_NB_OF_PUCCH_RESOURCES)) { (gdb) bt #0 0x000000000053c035 in select_pucch_resource (ue=ue@entry=0x7ffff7eb6010, mac=mac@entry=0x1900490, gNB_id=gNB_id@entry=0 '\000', uci_size=uci_size@entry=4, pucch_resource_indicator=pucch_resource_indicator@entry=2, initial_pucch_id=initial_pucch_id@entry=0x7ffff42c8c40, resource_set_id=0x7ffff42c8c44, resource_id=0x7ffff42c8c48, harq_status=0x18ef2180) at /home/sli/openairinterface5g/openair1/SCHED_NR_UE/pucch_uci_ue_nr.c:961 #1 0x000000000053d10b in pucch_procedures_ue_nr (ue=ue@entry=0x7ffff7eb6010, gNB_id=gNB_id@entry=0 '\000', proc=proc@entry=0x7fffc43d3fd0, reset_harq=reset_harq@entry=true) at /home/sli/openairinterface5g/openair1/SCHED_NR_UE/pucch_uci_ue_nr.c:309 #2 0x0000000000538c93 in phy_procedures_nrUE_TX (ue=ue@entry=0x7ffff7eb6010, proc=proc@entry=0x7fffc43d3fd0, gNB_id=gNB_id@entry=0 '\000', thread_id=<optimized out>) at /home/sli/openairinterface5g/openair1/SCHED_NR_UE/phy_procedures_nr_ue.c:2254 #3 0x0000000000505e75 in processSlotTX (UE=0x7ffff7eb6010, proc=0x7fffc43d3fd0) at /home/sli/openairinterface5g/executables/nr-ue.c:394 #4 0x0000000000506247 in UE_processing (arg=0x7fffc43d3fd0) at /home/sli/openairinterface5g/executables/nr-ue.c:502 #5 0x0000000000502803 in one_thread (arg=0x18f1530) at /home/sli/openairinterface5g/common/utils/threadPool/thread-pool.c:77 #6 0x00007ffff715f6ba in start_thread (arg=0x7ffff42c9700) at pthread_create.c:333 #7 0x00007ffff59364dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109