Commit 76a55fb6 authored by francescomani's avatar francescomani Committed by Laurent THOMAS

MR2477 avoid usage of ASN1 structure at PHY for SRS

parent 6f5e96de
...@@ -37,10 +37,7 @@ ...@@ -37,10 +37,7 @@
#include "executables/nr-softmodem.h" #include "executables/nr-softmodem.h"
#include "executables/softmodem-common.h" #include "executables/softmodem-common.h"
#include "nfapi/oai_integration/vendor_ext.h" #include "nfapi/oai_integration/vendor_ext.h"
#include "NR_SRS-ResourceSet.h"
#include "assertions.h" #include "assertions.h"
#include <time.h> #include <time.h>
//#define DEBUG_RXDATA //#define DEBUG_RXDATA
...@@ -1021,17 +1018,17 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) ...@@ -1021,17 +1018,17 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx)
case 0: case 0:
LOG_W(NR_PHY, "SRS report was not requested by MAC\n"); LOG_W(NR_PHY, "SRS report was not requested by MAC\n");
return 0; return 0;
case 1 << NR_SRS_ResourceSet__usage_beamManagement: case 1 << NFAPI_NR_SRS_BEAMMANAGEMENT:
srs_indication->srs_usage = NR_SRS_ResourceSet__usage_beamManagement; srs_indication->srs_usage = NFAPI_NR_SRS_BEAMMANAGEMENT;
break; break;
case 1 << NR_SRS_ResourceSet__usage_codebook: case 1 << NFAPI_NR_SRS_CODEBOOK:
srs_indication->srs_usage = NR_SRS_ResourceSet__usage_codebook; srs_indication->srs_usage = NFAPI_NR_SRS_CODEBOOK;
break; break;
case 1 << NR_SRS_ResourceSet__usage_nonCodebook: case 1 << NFAPI_NR_SRS_NONCODEBOOK:
srs_indication->srs_usage = NR_SRS_ResourceSet__usage_nonCodebook; srs_indication->srs_usage = NFAPI_NR_SRS_NONCODEBOOK;
break; break;
case 1 << NR_SRS_ResourceSet__usage_antennaSwitching: case 1 << NFAPI_NR_SRS_ANTENNASWITCH:
srs_indication->srs_usage = NR_SRS_ResourceSet__usage_antennaSwitching; srs_indication->srs_usage = NFAPI_NR_SRS_ANTENNASWITCH;
break; break;
default: default:
LOG_E(NR_PHY, "Invalid srs_pdu->srs_parameters_v4.usage %i\n", srs_pdu->srs_parameters_v4.usage); LOG_E(NR_PHY, "Invalid srs_pdu->srs_parameters_v4.usage %i\n", srs_pdu->srs_parameters_v4.usage);
...@@ -1054,7 +1051,7 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) ...@@ -1054,7 +1051,7 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx)
start_meas(&gNB->srs_report_tlv_stats); start_meas(&gNB->srs_report_tlv_stats);
switch (srs_indication->srs_usage) { switch (srs_indication->srs_usage) {
case NR_SRS_ResourceSet__usage_beamManagement: { case NFAPI_NR_SRS_BEAMMANAGEMENT: {
start_meas(&gNB->srs_beam_report_stats); start_meas(&gNB->srs_beam_report_stats);
nfapi_nr_srs_beamforming_report_t nr_srs_bf_report; nfapi_nr_srs_beamforming_report_t nr_srs_bf_report;
nr_srs_bf_report.prg_size = srs_pdu->beamforming.prg_size; nr_srs_bf_report.prg_size = srs_pdu->beamforming.prg_size;
...@@ -1083,7 +1080,7 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) ...@@ -1083,7 +1080,7 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx)
break; break;
} }
case NR_SRS_ResourceSet__usage_codebook: { case NFAPI_NR_SRS_CODEBOOK: {
start_meas(&gNB->srs_iq_matrix_stats); start_meas(&gNB->srs_iq_matrix_stats);
nfapi_nr_srs_normalized_channel_iq_matrix_t nr_srs_channel_iq_matrix; nfapi_nr_srs_normalized_channel_iq_matrix_t nr_srs_channel_iq_matrix;
nr_srs_channel_iq_matrix.normalized_iq_representation = srs_pdu->srs_parameters_v4.iq_representation; nr_srs_channel_iq_matrix.normalized_iq_representation = srs_pdu->srs_parameters_v4.iq_representation;
...@@ -1132,8 +1129,8 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) ...@@ -1132,8 +1129,8 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx)
break; break;
} }
case NR_SRS_ResourceSet__usage_nonCodebook: case NFAPI_NR_SRS_NONCODEBOOK:
case NR_SRS_ResourceSet__usage_antennaSwitching: case NFAPI_NR_SRS_ANTENNASWITCH:
LOG_W(NR_PHY, "PHY procedures for this SRS usage are not implemented yet!\n"); LOG_W(NR_PHY, "PHY procedures for this SRS usage are not implemented yet!\n");
break; break;
......
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