Commit 6706c939 authored by Robert Schmidt's avatar Robert Schmidt

FHI72: Cleanup: Remove first_rx_set

first_rx_set is polling-specific: it makes the polling loop wait to only
check the frame/slot counter once we set it for the first time. However,
that is equivalent to checking the frame/slot directly, which will also
be 0 in the beginning.
parent 04201845
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
// Declare variable useful for the send buffer function // Declare variable useful for the send buffer function
volatile uint8_t first_call_set = 0; volatile uint8_t first_call_set = 0;
volatile uint8_t first_rx_set = 0;
int xran_is_prach_slot(uint8_t PortId, uint32_t subframe_id, uint32_t slot_id); int xran_is_prach_slot(uint8_t PortId, uint32_t subframe_id, uint32_t slot_id);
#include "common/utils/LOG/log.h" #include "common/utils/LOG/log.h"
...@@ -53,7 +52,7 @@ int xran_is_prach_slot(uint8_t PortId, uint32_t subframe_id, uint32_t slot_id); ...@@ -53,7 +52,7 @@ int xran_is_prach_slot(uint8_t PortId, uint32_t subframe_id, uint32_t slot_id);
#ifndef USE_POLLING #ifndef USE_POLLING
extern notifiedFIFO_t oran_sync_fifo; extern notifiedFIFO_t oran_sync_fifo;
#else #else
volatile oran_sync_info_t oran_sync_info; volatile oran_sync_info_t oran_sync_info = {0};
#endif #endif
void oai_xran_fh_rx_callback(void *pCallbackTag, xran_status_t status) void oai_xran_fh_rx_callback(void *pCallbackTag, xran_status_t status)
{ {
...@@ -114,10 +113,6 @@ void oai_xran_fh_rx_callback(void *pCallbackTag, xran_status_t status) ...@@ -114,10 +113,6 @@ void oai_xran_fh_rx_callback(void *pCallbackTag, xran_status_t status)
} }
#endif #endif
if (first_call_set) { if (first_call_set) {
if (!first_rx_set) {
LOG_I(NR_PHY, "first_rx is set (num_ports %d)\n", num_ports);
}
first_rx_set = 1;
slot2 = slot + (subframe * slots_per_subframe); slot2 = slot + (subframe * slots_per_subframe);
rx_RU[ru_id][slot2] = 1; rx_RU[ru_id][slot2] = 1;
if (last_frame > 0 && frame > 0 if (last_frame > 0 && frame > 0
...@@ -295,10 +290,6 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot) ...@@ -295,10 +290,6 @@ int xran_fh_rx_read_slot(ru_info_t *ru, int *frame, int *slot)
*frame = info->f; *frame = info->f;
delNotifiedFIFO_elt(res); delNotifiedFIFO_elt(res);
#else #else
LOG_D(PHY, "In xran_fh_rx_read_slot, first_rx_set %d\n", first_rx_set);
while (first_rx_set == 0) {
}
*slot = oran_sync_info.sl; *slot = oran_sync_info.sl;
*frame = oran_sync_info.f; *frame = oran_sync_info.f;
uint32_t tti_in = oran_sync_info.tti; uint32_t tti_in = oran_sync_info.tti;
......
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