remove unnecessary nfapi_nr_interface_scf dependence in nr_mac_common_tdd
Signed-off-by: francescomani <email@francescomani.it>
This commit is contained in:
@@ -23,7 +23,6 @@
|
|||||||
#define NFAPI_MAX_NUM_CB 8
|
#define NFAPI_MAX_NUM_CB 8
|
||||||
#define NFAPI_MAX_NUM_PRGS 1
|
#define NFAPI_MAX_NUM_PRGS 1
|
||||||
#define NFAPI_MAX_NUM_BG_IF 6
|
#define NFAPI_MAX_NUM_BG_IF 6
|
||||||
#define NFAPI_MAX_NUM_PERIODS 8
|
|
||||||
|
|
||||||
// Extension to the generic structures for single tlv values
|
// Extension to the generic structures for single tlv values
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "nr_mac_common.h"
|
#include "nr_mac_common.h"
|
||||||
#include "common/utils/nr/nr_common.h"
|
#include "common/utils/nr/nr_common.h"
|
||||||
#include "nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface_scf.h"
|
|
||||||
|
#define MAX_NUM_PERIODS 8
|
||||||
|
|
||||||
uint16_t get_ul_bitmap(const frame_structure_t *fs, int slot)
|
uint16_t get_ul_bitmap(const frame_structure_t *fs, int slot)
|
||||||
{
|
{
|
||||||
@@ -58,7 +58,7 @@ int get_tdd_period_idx(NR_TDD_UL_DL_ConfigCommon_t *tdd)
|
|||||||
float pattern2_ms = tdd->pattern2 ? get_tdd_periodicity(tdd->pattern2) : 0.0;
|
float pattern2_ms = tdd->pattern2 ? get_tdd_periodicity(tdd->pattern2) : 0.0;
|
||||||
bool found_match = false;
|
bool found_match = false;
|
||||||
// Find matching TDD period in the predefined list of periodicities
|
// Find matching TDD period in the predefined list of periodicities
|
||||||
for (int i = 0; i < NFAPI_MAX_NUM_PERIODS; i++) {
|
for (int i = 0; i < MAX_NUM_PERIODS; i++) {
|
||||||
if ((pattern1_ms + pattern2_ms) == tdd_ms_period_pattern[i]) {
|
if ((pattern1_ms + pattern2_ms) == tdd_ms_period_pattern[i]) {
|
||||||
tdd_period_idx = i;
|
tdd_period_idx = i;
|
||||||
LOG_I(NR_MAC,
|
LOG_I(NR_MAC,
|
||||||
|
|||||||
Reference in New Issue
Block a user