Remove aerial_phy_sync_indication(): this is a 4G callback
This commit is contained in:
@@ -53,7 +53,7 @@ void *aerial_vnf_nr_p7_config_init(void *ptr)
|
|||||||
init_queue(&gnb_slot_ind_queue);
|
init_queue(&gnb_slot_ind_queue);
|
||||||
|
|
||||||
p7_vnf->config->port = p7_vnf->local_port;
|
p7_vnf->config->port = p7_vnf->local_port;
|
||||||
p7_vnf->config->sync_indication = &aerial_phy_sync_indication;
|
p7_vnf->config->sync_indication = NULL;
|
||||||
p7_vnf->config->slot_indication = NULL;
|
p7_vnf->config->slot_indication = NULL;
|
||||||
p7_vnf->config->harq_indication = &aerial_phy_harq_indication;
|
p7_vnf->config->harq_indication = &aerial_phy_harq_indication;
|
||||||
p7_vnf->config->nr_crc_indication = &aerial_phy_nr_crc_indication;
|
p7_vnf->config->nr_crc_indication = &aerial_phy_nr_crc_indication;
|
||||||
|
|||||||
@@ -136,21 +136,6 @@ extern pthread_cond_t nfapi_sync_cond;
|
|||||||
extern pthread_mutex_t nfapi_sync_mutex;
|
extern pthread_mutex_t nfapi_sync_mutex;
|
||||||
extern int nfapi_sync_var;
|
extern int nfapi_sync_var;
|
||||||
|
|
||||||
int aerial_phy_sync_indication(struct nfapi_vnf_p7_config *config, uint8_t sync)
|
|
||||||
{
|
|
||||||
// NFAPI_TRACE(NFAPI_TRACE_INFO, "[VNF] SYNC %s\n", sync==1 ? "ACHIEVED" : "LOST");
|
|
||||||
|
|
||||||
if (sync == 1 && nfapi_sync_var != 0) {
|
|
||||||
NFAPI_TRACE(NFAPI_TRACE_INFO, "[VNF] Signal to OAI main code that it can go\n");
|
|
||||||
pthread_mutex_lock(&nfapi_sync_mutex);
|
|
||||||
nfapi_sync_var = 0;
|
|
||||||
pthread_cond_broadcast(&nfapi_sync_cond);
|
|
||||||
pthread_mutex_unlock(&nfapi_sync_mutex);
|
|
||||||
}
|
|
||||||
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
|
|
||||||
int aerial_phy_harq_indication(struct nfapi_vnf_p7_config *config, nfapi_harq_indication_t *ind)
|
int aerial_phy_harq_indication(struct nfapi_vnf_p7_config *config, nfapi_harq_indication_t *ind)
|
||||||
{
|
{
|
||||||
struct PHY_VARS_eNB_s *eNB = RC.eNB[0][0];
|
struct PHY_VARS_eNB_s *eNB = RC.eNB[0][0];
|
||||||
|
|||||||
@@ -180,7 +180,6 @@ typedef struct {
|
|||||||
|
|
||||||
} vnf_info;
|
} vnf_info;
|
||||||
|
|
||||||
int aerial_phy_sync_indication(struct nfapi_vnf_p7_config *config, uint8_t sync);
|
|
||||||
int aerial_phy_harq_indication(struct nfapi_vnf_p7_config *config, nfapi_harq_indication_t *ind);
|
int aerial_phy_harq_indication(struct nfapi_vnf_p7_config *config, nfapi_harq_indication_t *ind);
|
||||||
int aerial_phy_nr_crc_indication(nfapi_nr_crc_indication_t *ind);
|
int aerial_phy_nr_crc_indication(nfapi_nr_crc_indication_t *ind);
|
||||||
int aerial_phy_nr_rx_data_indication(nfapi_nr_rx_data_indication_t *ind);
|
int aerial_phy_nr_rx_data_indication(nfapi_nr_rx_data_indication_t *ind);
|
||||||
|
|||||||
Reference in New Issue
Block a user