Commit 93be3017 authored by Robert Schmidt's avatar Robert Schmidt

Retrieve SR result

parent d6dd9b31
...@@ -356,6 +356,11 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id, ...@@ -356,6 +356,11 @@ void handle_nr_uci_pucch_0_1(module_id_t mod_id,
handle_dl_harq(mod_id, UE_id, pid, harq_value == 1 && harq_confidence == 0); handle_dl_harq(mod_id, UE_id, pid, harq_value == 1 && harq_confidence == 0);
} }
} }
// check scheduling request result, confidence_level == 0 is good
if (uci_01->pduBitmap & 0x1) {
sched_ctrl->SR |= uci_01->sr->sr_indication && uci_01->sr->sr_confidence_level == 0;
}
} }
void handle_nr_uci_pucch_2_3_4(module_id_t mod_id, void handle_nr_uci_pucch_2_3_4(module_id_t mod_id,
...@@ -401,6 +406,11 @@ void handle_nr_uci_pucch_2_3_4(module_id_t mod_id, ...@@ -401,6 +406,11 @@ void handle_nr_uci_pucch_2_3_4(module_id_t mod_id,
handle_dl_harq(mod_id, UE_id, pid, uci_234->harq.harq_crc != 1 && acknack); handle_dl_harq(mod_id, UE_id, pid, uci_234->harq.harq_crc != 1 && acknack);
} }
} }
// check scheduling request result, confidence_level == 0 is good
if (uci_234->pduBitmap & 0x1) {
AssertFatal(0, "PUCCH Formats 2/3/4: we do not handle SR\n");
}
} }
......
...@@ -450,6 +450,7 @@ typedef struct { ...@@ -450,6 +450,7 @@ typedef struct {
uint8_t tpc0; uint8_t tpc0;
uint8_t tpc1; uint8_t tpc1;
uint16_t ul_rssi; uint16_t ul_rssi;
bool SR;
/// information about every HARQ process /// information about every HARQ process
NR_UE_harq_t harq_processes[NR_MAX_NB_HARQ_PROCESSES]; NR_UE_harq_t harq_processes[NR_MAX_NB_HARQ_PROCESSES];
/// HARQ processes that are free /// HARQ processes that are free
......
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