qcacmn: Compilation fixes when WLAN_CFR_ENABLE config is enabled

For adrastea targets, enhanced CFR is not supported. When only
CONFIG_WLAN_CFR_ENABLE is set, some compilation errors are
observed as CONFIG_WLAN_ENH_CFR_ENABLE is not set true.

Fix these compilation errors when only CONFIG_WLAN_CFR_ENABLE
is set for targets which do not support enhanced CFR.

Change-Id: I96a769d8f10144033e48e123bb68d48a54cdf8ab
CRs-Fixed: 2706904
Bu işleme şunda yer alıyor:
Surabhi Vishnoi
2020-06-09 20:26:09 +05:30
işlemeyi yapan: snandini
ebeveyn 990bafdd4d
işleme bb9b9ec907
4 değiştirilmiş dosya ile 16 ekleme ve 3 silme

Dosyayı Görüntüle

@@ -326,14 +326,14 @@ void target_if_cfr_rx_tlv_process(struct wlan_objmgr_pdev *pdev, void *nbuf);
*/
void target_if_cfr_update_global_cfg(struct wlan_objmgr_pdev *pdev);
#else
static QDF_STATUS cfr_6018_init_pdev(
static inline QDF_STATUS cfr_6018_init_pdev(
struct wlan_objmgr_psoc *psoc,
struct wlan_objmgr_pdev *pdev)
{
return QDF_STATUS_SUCCESS;
}
static QDF_STATUS cfr_6018_deinit_pdev(
static inline QDF_STATUS cfr_6018_deinit_pdev(
struct wlan_objmgr_psoc *psoc,
struct wlan_objmgr_pdev *pdev)
{

Dosyayı Görüntüle

@@ -33,6 +33,8 @@
#include "cfg_ucfg_api.h"
#include "cfr_cfg.h"
#ifdef WLAN_ENH_CFR_ENABLE
#ifdef CFR_USE_FIXED_FOLDER
static wdi_event_subscribe g_cfr_subscribe;
static void target_cfr_callback(void *pdev_obj, enum WDI_EVENT event,
@@ -116,6 +118,8 @@ target_if_cfr_subscribe_ppdu_desc(struct wlan_objmgr_pdev *pdev,
return QDF_STATUS_SUCCESS;
}
#endif
#endif
QDF_STATUS cfr_6490_init_pdev(struct wlan_objmgr_psoc *psoc,
struct wlan_objmgr_pdev *pdev)

Dosyayı Görüntüle

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -75,6 +75,7 @@ enum DBR_MODULE {
DBR_MODULE_MAX,
};
#ifdef WMI_DBR_SUPPORT
/**
* struct direct_buf_rx_data - direct buffer rx data
* @dbr_len: Length of the buffer DMAed
@@ -92,6 +93,7 @@ struct direct_buf_rx_data {
bool meta_data_valid;
struct direct_buf_rx_metadata meta_data;
};
#endif
/**
* struct dbr_module_config - module configuration for dbr