minor changes

This commit is contained in:
Raymond Knopp
2021-12-11 17:32:09 +01:00
parent 6080e4154a
commit 34866293c1
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -153,7 +153,7 @@ unsigned int crc24a (unsigned char * inptr,
{
int octetlen = bitlen / 8; /* Change in octets */
if ( bitlen % 8 || !__builtin_cpu_supports ("pclmul") ) {
if ( bitlen % 8 /*|| !__builtin_cpu_supports ("pclmul")*/ ) {
unsigned int crc = 0;
int resbit = (bitlen % 8);
@@ -187,7 +187,7 @@ unsigned int crc24b (unsigned char * inptr,
{
int octetlen = bitlen / 8; /* Change in octets */
if ( bitlen % 8 || !__builtin_cpu_supports ("pclmul") ) {
if ( bitlen % 8 /*|| !__builtin_cpu_supports ("pclmul") */) {
unsigned int crc = 0;
int resbit = (bitlen % 8);
+1 -3
View File
@@ -325,8 +325,6 @@ void config_common(int Mod_idP, int ssb_SubcarrierOffset, int pdsch_AntennaPorts
} else {
ssb_SubcarrierOffset_limit = 12;
}
if (ssb_SubcarrierOffset<ssb_SubcarrierOffset_limit)
AssertFatal(sco==(scs_scaling * ssb_SubcarrierOffset),"absoluteFrequencySSB has a subcarrier offset of %d while it should be %d\n",sco/scs_scaling,ssb_SubcarrierOffset);
cfg->ssb_table.ssb_offset_point_a.value = absolute_diff/(12*scs_scaling) - 10; //absoluteFrequencySSB is the central frequency of SSB which is made by 20RBs in total
cfg->ssb_table.ssb_offset_point_a.tl.tag = NFAPI_NR_CONFIG_SSB_OFFSET_POINT_A_TAG;
@@ -334,7 +332,7 @@ void config_common(int Mod_idP, int ssb_SubcarrierOffset, int pdsch_AntennaPorts
cfg->ssb_table.ssb_period.value = *scc->ssb_periodicityServingCell;
cfg->ssb_table.ssb_period.tl.tag = NFAPI_NR_CONFIG_SSB_PERIOD_TAG;
cfg->num_tlv++;
cfg->ssb_table.ssb_subcarrier_offset.value = ssb_SubcarrierOffset;
cfg->ssb_table.ssb_subcarrier_offset.value = ssb_SubcarrierOffset>>(cfg->ssb_config.scs_common.value);
cfg->ssb_table.ssb_subcarrier_offset.tl.tag = NFAPI_NR_CONFIG_SSB_SUBCARRIER_OFFSET_TAG;
cfg->num_tlv++;
+4 -1
View File
@@ -317,7 +317,10 @@ int aw2s_startstreaming(openair0_device *device) {
(openair0_cfg->rx_num_channels > 1 && rx1->fst != ORI_FST_Operational) ||
tx0->fst != ORI_FST_Operational ||
(openair0_cfg->tx_num_channels > 1 && tx1->fst != ORI_FST_Operational))
{}
{
printf("rx0->fst %d,rx1->fst %d,tx0->fst %d, tx1->fst %d\n",
rx0->fst,rx1 ? rx1->fst : -1, tx0->fst, tx1 ? tx1->fst: -1);
}
// test RX interface
uint64_t TS;