/** \brief This function is relavant for the UE procedures for control. It loads the search spaces, the BWPs and the CORESETs into the MAC instance and
\brief performs assert checks on the relevant RRC configuration.
@param NR_UE_MAC_INST_t mac: pointer to local MAC instance
AssertFatal(searchSpacesToAddModList!=NULL,"searchSpacesToAddModList is null\n");
AssertFatal(searchSpacesToAddModList->list.count>0,"list of UE specifically configured Search Spaces is empty\n");
AssertFatal(searchSpacesToAddModList->list.count<FAPI_NR_MAX_SS_PER_CORESET,"too many searchpaces per coreset %d\n",searchSpacesToAddModList->list.count);
AssertFatal(searchSpacesToAddModList!=NULL,"searchSpacesToAddModList is null\n");
AssertFatal(searchSpacesToAddModList->list.count>0,"searchSpacesToAddModList is empty\n");
AssertFatal(searchSpacesToAddModList->list.count<FAPI_NR_MAX_SS_PER_CORESET,"too many searchpaces per coreset %d\n",searchSpacesToAddModList->list.count);
// this is for CSSs, we use BWP common and pdcch_ConfigCommon
// Fetch configuration for searchSpaceZero
// note: The search space with the SearchSpaceId = 0 identifies the search space configured via PBCH (MIB) and in ServingCellConfigCommon (searchSpaceZero).
// Configure monitoring of PDCCH candidates in Type2-PDCCH common search space on the MCG
LOG_W(MAC,"[DCI_CONFIG] This seach space should not be configured yet...");
}
}
if(phy_cgc){
if(phy_cgc->cs_RNTI){
LOG_D(MAC,"[DCI_CONFIG] Configure monitoring of PDCCH candidates in Type3-PDCCH common search space for dci_Format0_0_AndFormat1_0 with CRC scrambled by CS-RNTI...\n");
LOG_W(MAC,"[DCI_CONFIG] This RNTI should not be configured yet...");
}
if(phy_cgc->ext1){
if(phy_cgc->ext1->mcs_C_RNTI){
LOG_D(MAC,"[DCI_CONFIG] Configure monitoring of PDCCH candidates in user specific search space for dci_Format0_0_AndFormat1_0 with CRC scrambled by MCS-C-RNTI...\n");
LOG_W(MAC,"[DCI_CONFIG] This RNTI should not be configured yet...");
LOG_D(MAC,"[DCI_CONFIG] Configure monitoring of PDCCH candidates in Type3-PDCCH common search space for DCI format 2_0 with CRC scrambled by SFI-RNTI \n");
LOG_W(MAC,"[DCI_CONFIG] This format should not be configured yet...");
LOG_D(MAC,"[DCI_CONFIG] Configure monitoring of PDCCH candidates in Type3-PDCCH common search space for DCI format 2_1 with CRC scrambled by INT-RNTI \n");
LOG_W(MAC,"[DCI_CONFIG] This format should not be configured yet...");
LOG_D(MAC,"[DCI_CONFIG] Configure monitoring of PDCCH candidates in Type3-PDCCH common search space for DCI format 2_2 with CRC scrambled by TPC-RNTI \n");
LOG_W(MAC,"[DCI_CONFIG] This format should not be configured yet...");
LOG_D(MAC,"[DCI_CONFIG] Configure monitoring of PDCCH candidates in Type3-PDCCH common search space for DCI format 2_3 with CRC scrambled by TPC-SRS-RNTI \n");
LOG_W(MAC,"[DCI_CONFIG] This format should not be configured yet...");
}
AssertFatal(ss_id<FAPI_NR_MAX_SS_PER_CORESET,"couldn't find a UE-specific SS\n");
LOG_D(MAC,"[DCI_CONFIG] Configure monitoring of PDCCH candidates in user specific search space for dci_Format0_0_AndFormat1_0 with CRC scrambled by CS-RNTI...\n");
LOG_W(MAC,"[DCI_CONFIG] This RNTI should not be configured yet...");
}
if(phy_cgc->sp_CSI_RNTI){
LOG_D(MAC,"[DCI_CONFIG] Configure monitoring of PDCCH candidates in user specific search space for dci_Format0_0_AndFormat1_0 with CRC scrambled by SP-CSI-RNTI...\n");
LOG_W(MAC,"[DCI_CONFIG] This RNTI should not be configured yet...");
}
if(phy_cgc->ext1){
if(phy_cgc->ext1->mcs_C_RNTI){
LOG_D(MAC,"[DCI_CONFIG] Configure monitoring of PDCCH candidates in user specific search space for dci_Format0_0_AndFormat1_0 with CRC scrambled by MCS-C-RNTI...\n");
LOG_W(MAC,"[DCI_CONFIG] This RNTI should not be configured yet...");
}
}
}
}
}
break;
default:
AssertFatal(1==0,"[DCI_CONFIG] Unrecognized search space type...");