Commit 8199a1e0 authored by Raymond Knopp's avatar Raymond Knopp

fixes after merge with NR_SL_PSBCH_2

parent 7efe5880
...@@ -86,7 +86,6 @@ void fill_ul_config(fapi_nr_ul_config_request_t *ul_config, frame_t frame_tx, in ...@@ -86,7 +86,6 @@ void fill_ul_config(fapi_nr_ul_config_request_t *ul_config, frame_t frame_tx, in
void fill_scheduled_response(nr_scheduled_response_t *scheduled_response, void fill_scheduled_response(nr_scheduled_response_t *scheduled_response,
fapi_nr_dl_config_request_t *dl_config, fapi_nr_dl_config_request_t *dl_config,
fapi_nr_ul_config_request_t *ul_config, fapi_nr_ul_config_request_t *ul_config,
sl_nr_rx_config_request_t *sl_config,
fapi_nr_tx_request_t *tx_request, fapi_nr_tx_request_t *tx_request,
sl_nr_rx_config_request_t *sl_rx_config, sl_nr_rx_config_request_t *sl_rx_config,
sl_nr_tx_config_request_t *sl_tx_config, sl_nr_tx_config_request_t *sl_tx_config,
...@@ -975,7 +974,7 @@ void nr_ue_dl_scheduler(nr_downlink_indication_t *dl_info) ...@@ -975,7 +974,7 @@ void nr_ue_dl_scheduler(nr_downlink_indication_t *dl_info)
} }
dcireq.dl_config_req = *dl_config; dcireq.dl_config_req = *dl_config;
fill_scheduled_response(&scheduled_response, &dcireq.dl_config_req, NULL, NULL, NULL, NULL,mod_id, cc_id, rx_frame, rx_slot, dl_info->phy_data); fill_scheduled_response(&scheduled_response, &dcireq.dl_config_req, NULL, NULL, NULL, NULL, mod_id, cc_id, rx_frame, rx_slot, dl_info->phy_data);
if(mac->if_module != NULL && mac->if_module->scheduled_response != NULL) { if(mac->if_module != NULL && mac->if_module->scheduled_response != NULL) {
LOG_D(NR_MAC,"1# scheduled_response transmitted, %d, %d\n", rx_frame, rx_slot); LOG_D(NR_MAC,"1# scheduled_response transmitted, %d, %d\n", rx_frame, rx_slot);
mac->if_module->scheduled_response(&scheduled_response); mac->if_module->scheduled_response(&scheduled_response);
...@@ -1084,7 +1083,7 @@ void nr_ue_ul_scheduler(nr_uplink_indication_t *ul_info) ...@@ -1084,7 +1083,7 @@ void nr_ue_ul_scheduler(nr_uplink_indication_t *ul_info)
} }
} }
pthread_mutex_unlock(&ul_config->mutex_ul_config); // avoid double lock pthread_mutex_unlock(&ul_config->mutex_ul_config); // avoid double lock
fill_scheduled_response(&scheduled_response, NULL, ul_config, &tx_req, NULL, NULL,mod_id, cc_id, frame_tx, slot_tx, ul_info->phy_data); fill_scheduled_response(&scheduled_response, NULL, ul_config, &tx_req, NULL,NULL,mod_id, cc_id, frame_tx, slot_tx, ul_info->phy_data);
if(mac->if_module != NULL && mac->if_module->scheduled_response != NULL){ if(mac->if_module != NULL && mac->if_module->scheduled_response != NULL){
LOG_D(NR_MAC,"3# scheduled_response transmitted,%d, %d\n", frame_tx, slot_tx); LOG_D(NR_MAC,"3# scheduled_response transmitted,%d, %d\n", frame_tx, slot_tx);
mac->if_module->scheduled_response(&scheduled_response); mac->if_module->scheduled_response(&scheduled_response);
...@@ -2195,7 +2194,7 @@ void nr_ue_pucch_scheduler(module_id_t module_idP, frame_t frameP, int slotP, vo ...@@ -2195,7 +2194,7 @@ void nr_ue_pucch_scheduler(module_id_t module_idP, frame_t frameP, int slotP, vo
&pucch[j], &pucch[j],
pucch_pdu); pucch_pdu);
nr_scheduled_response_t scheduled_response; nr_scheduled_response_t scheduled_response;
fill_scheduled_response(&scheduled_response, NULL, ul_config, NULL, NULL, NULL,module_idP, 0 /*TBR fix*/, frameP, slotP, phy_data); fill_scheduled_response(&scheduled_response, NULL, ul_config, NULL, NULL,NULL,module_idP, 0 /*TBR fix*/, frameP, slotP, phy_data);
if (mac->if_module != NULL && mac->if_module->scheduled_response != NULL) if (mac->if_module != NULL && mac->if_module->scheduled_response != NULL)
mac->if_module->scheduled_response(&scheduled_response); mac->if_module->scheduled_response(&scheduled_response);
if (mac->state == UE_WAIT_TX_ACK_MSG4) if (mac->state == UE_WAIT_TX_ACK_MSG4)
...@@ -2644,7 +2643,7 @@ static void nr_ue_prach_scheduler(module_id_t module_idP, frame_t frameP, sub_fr ...@@ -2644,7 +2643,7 @@ static void nr_ue_prach_scheduler(module_id_t module_idP, frame_t frameP, sub_fr
prach_config_pdu->prach_tx_power = get_prach_tx_power(module_idP); prach_config_pdu->prach_tx_power = get_prach_tx_power(module_idP);
set_ra_rnti(mac, prach_config_pdu); set_ra_rnti(mac, prach_config_pdu);
fill_scheduled_response(&scheduled_response, NULL, ul_config, NULL, NULL, NULL,module_idP, 0 /*TBR fix*/, frameP, slotP, NULL); fill_scheduled_response(&scheduled_response, NULL, ul_config, NULL, NULL,NULL,module_idP, 0 /*TBR fix*/, frameP, slotP, NULL);
if(mac->if_module != NULL && mac->if_module->scheduled_response != NULL) if(mac->if_module != NULL && mac->if_module->scheduled_response != NULL)
mac->if_module->scheduled_response(&scheduled_response); mac->if_module->scheduled_response(&scheduled_response);
...@@ -3398,7 +3397,7 @@ void nr_ue_sidelink_scheduler(nr_sidelink_indication_t *sl_ind) { ...@@ -3398,7 +3397,7 @@ void nr_ue_sidelink_scheduler(nr_sidelink_indication_t *sl_ind) {
} }
if (tti_action == SL_NR_CONFIG_TYPE_RX_PSBCH) { if (tti_action == SL_NR_CONFIG_TYPE_RX_PSBCH) {
fill_scheduled_response(&scheduled_response, NULL, NULL, NULL, &rx_config, NULL, mod_id, 0,frame, slot, sl_ind->phy_data); fill_scheduled_response(&scheduled_response, NULL, NULL, NULL, &rx_config, NULL, mod_id, 0,frame, slot, sl_ind->phy_data);
} }
if (tti_action == SL_NR_CONFIG_TYPE_TX_PSBCH) { if (tti_action == SL_NR_CONFIG_TYPE_TX_PSBCH) {
fill_scheduled_response(&scheduled_response, NULL, NULL, NULL, NULL, &tx_config, mod_id, 0,frame, slot, sl_ind->phy_data); fill_scheduled_response(&scheduled_response, NULL, NULL, NULL, NULL, &tx_config, mod_id, 0,frame, slot, sl_ind->phy_data);
......
...@@ -1299,7 +1299,7 @@ int nr_ue_dcireq(nr_dcireq_t *dcireq) { ...@@ -1299,7 +1299,7 @@ int nr_ue_dcireq(nr_dcireq_t *dcireq) {
return 0; return 0;
} }
/*
int nr_ue_scireq(nr_scireq_t *scireq) { int nr_ue_scireq(nr_scireq_t *scireq) {
sl_nr_rx_config_request_t *sl_config = &scireq->sl_config_req; sl_nr_rx_config_request_t *sl_config = &scireq->sl_config_req;
...@@ -1312,9 +1312,10 @@ int nr_ue_scireq(nr_scireq_t *scireq) { ...@@ -1312,9 +1312,10 @@ int nr_ue_scireq(nr_scireq_t *scireq) {
return 0; return 0;
} }
*/
/*
int nr_ue_sl_indication(nr_sidelink_indication_t *sl_info) int nr_ue_sl_indication_rk(nr_sidelink_indication_t *sl_info)
{ {
pthread_mutex_lock(&mac_IF_mutex); pthread_mutex_lock(&mac_IF_mutex);
uint32_t ret_mask = 0x0; uint32_t ret_mask = 0x0;
...@@ -1375,7 +1376,7 @@ int nr_ue_sl_indication(nr_sidelink_indication_t *sl_info) ...@@ -1375,7 +1376,7 @@ int nr_ue_sl_indication(nr_sidelink_indication_t *sl_info)
pthread_mutex_unlock(&mac_IF_mutex); pthread_mutex_unlock(&mac_IF_mutex);
return ret_mask; return ret_mask;
} }
*/
void RCconfig_nr_ue_macrlc(void) { void RCconfig_nr_ue_macrlc(void) {
int j; int j;
paramdef_t MACRLC_Params[] = MACRLCPARAMS_DESC; paramdef_t MACRLC_Params[] = MACRLCPARAMS_DESC;
......
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