qcacmn: Fix compilation errors when ZCDFS macro is disabled
Fix compilation errors when ATH_SUPPORT_ZERO_CAC_DFS macro is disabled. CRs-Fixed: 3288434 Change-Id: I78d60dcbe88620dbf01a75d95670a2c310e7c773
This commit is contained in:

committed by
Madan Koyyalamudi

parent
bf0b0fed9a
commit
61d0f0ab4e
@@ -202,7 +202,8 @@ dfs_zero_cac_timer_init(struct dfs_soc_priv_obj *dfs_soc_obj)
|
||||
* dfs_print_precaclists() - Print precac list.
|
||||
* @dfs: Pointer to wlan_dfs structure.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && (defined(ATH_SUPPORT_ZERO_CAC_DFS) || \
|
||||
defined(QCA_SUPPORT_AGILE_DFS))
|
||||
void dfs_print_precaclists(struct wlan_dfs *dfs);
|
||||
#else
|
||||
static inline void dfs_print_precaclists(struct wlan_dfs *dfs)
|
||||
@@ -214,7 +215,8 @@ static inline void dfs_print_precaclists(struct wlan_dfs *dfs)
|
||||
* dfs_reset_precac_lists() - Resets the precac lists.
|
||||
* @dfs: Pointer to wlan_dfs structure.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && (defined(ATH_SUPPORT_ZERO_CAC_DFS) || \
|
||||
defined(QCA_SUPPORT_AGILE_DFS))
|
||||
void dfs_reset_precac_lists(struct wlan_dfs *dfs);
|
||||
#else
|
||||
static inline void dfs_reset_precac_lists(struct wlan_dfs *dfs)
|
||||
@@ -226,7 +228,8 @@ static inline void dfs_reset_precac_lists(struct wlan_dfs *dfs)
|
||||
* dfs_reset_precaclists() - Clears and initializes precac_list.
|
||||
* @dfs: Pointer to wlan_dfs structure.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && (defined(ATH_SUPPORT_ZERO_CAC_DFS) || \
|
||||
defined(QCA_SUPPORT_AGILE_DFS))
|
||||
void dfs_reset_precaclists(struct wlan_dfs *dfs);
|
||||
#else
|
||||
static inline void dfs_reset_precaclists(struct wlan_dfs *dfs)
|
||||
@@ -244,7 +247,7 @@ void dfs_deinit_precac_list(struct wlan_dfs *dfs);
|
||||
* dfs_zero_cac_detach() - Free zero_cac memory.
|
||||
* @dfs: Pointer to wlan_dfs dtructure.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && defined(ATH_SUPPORT_ZERO_CAC_DFS)
|
||||
void dfs_zero_cac_detach(struct wlan_dfs *dfs);
|
||||
#else
|
||||
static inline void dfs_zero_cac_detach(struct wlan_dfs *dfs)
|
||||
@@ -258,7 +261,8 @@ static inline void dfs_zero_cac_detach(struct wlan_dfs *dfs)
|
||||
*/
|
||||
void dfs_init_precac_list(struct wlan_dfs *dfs);
|
||||
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && (defined(ATH_SUPPORT_ZERO_CAC_DFS) || \
|
||||
defined(QCA_SUPPORT_AGILE_DFS))
|
||||
/**
|
||||
* dfs_start_precac_timer_for_freq() - Start precac timer.
|
||||
* @dfs: Pointer to wlan_dfs structure.
|
||||
@@ -282,7 +286,7 @@ void dfs_start_precac_timer_for_freq(struct wlan_dfs *dfs,
|
||||
* dfs_cancel_precac_timer() - Cancel the precac timer.
|
||||
* @dfs: Pointer to wlan_dfs structure.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && defined(ATH_SUPPORT_ZERO_CAC_DFS)
|
||||
void dfs_cancel_precac_timer(struct wlan_dfs *dfs);
|
||||
#else
|
||||
static inline void dfs_cancel_precac_timer(struct wlan_dfs *dfs)
|
||||
@@ -294,7 +298,7 @@ static inline void dfs_cancel_precac_timer(struct wlan_dfs *dfs)
|
||||
* dfs_zero_cac_attach() - Initialize dfs zerocac variables.
|
||||
* @dfs: Pointer to DFS structure.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && defined(ATH_SUPPORT_ZERO_CAC_DFS)
|
||||
void dfs_zero_cac_attach(struct wlan_dfs *dfs);
|
||||
#else
|
||||
static inline void dfs_zero_cac_attach(struct wlan_dfs *dfs)
|
||||
@@ -306,7 +310,7 @@ static inline void dfs_zero_cac_attach(struct wlan_dfs *dfs)
|
||||
* dfs_zero_cac_reset() - Reset Zero cac DFS variables.
|
||||
* @dfs: Pointer to wlan_dfs structure.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && defined(ATH_SUPPORT_ZERO_CAC_DFS)
|
||||
void dfs_zero_cac_reset(struct wlan_dfs *dfs);
|
||||
#else
|
||||
static inline void dfs_zero_cac_reset(struct wlan_dfs *dfs)
|
||||
@@ -336,7 +340,8 @@ dfs_zero_cac_timer_detach(struct dfs_soc_priv_obj *dfs_soc_obj)
|
||||
* * True: If precac is done on channel.
|
||||
* * False: If precac is not done on channel.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && (defined(ATH_SUPPORT_ZERO_CAC_DFS) || \
|
||||
defined(QCA_SUPPORT_AGILE_DFS))
|
||||
bool dfs_is_precac_done(struct wlan_dfs *dfs, struct dfs_channel *chan);
|
||||
#else
|
||||
static inline bool dfs_is_precac_done(struct wlan_dfs *dfs,
|
||||
@@ -397,7 +402,8 @@ uint16_t dfs_get_ieeechan_for_precac_for_freq(struct wlan_dfs *dfs,
|
||||
* @dfs: Pointer to wlan_dfs structure.
|
||||
* @precac_timeout: Precac timeout value.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && (defined(ATH_SUPPORT_ZERO_CAC_DFS) || \
|
||||
defined(QCA_SUPPORT_AGILE_DFS))
|
||||
int dfs_override_precac_timeout(struct wlan_dfs *dfs,
|
||||
int precac_timeout);
|
||||
#else
|
||||
@@ -413,7 +419,8 @@ static inline int dfs_override_precac_timeout(struct wlan_dfs *dfs,
|
||||
* @dfs: Pointer wlan_dfs structure.
|
||||
* @precac_timeout: Get precac timeout value in this variable.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && (defined(ATH_SUPPORT_ZERO_CAC_DFS) || \
|
||||
defined(QCA_SUPPORT_AGILE_DFS))
|
||||
int dfs_get_override_precac_timeout(struct wlan_dfs *dfs,
|
||||
int *precac_timeout);
|
||||
#else
|
||||
@@ -575,7 +582,8 @@ static inline void dfs_agile_soc_obj_init(struct wlan_dfs *dfs,
|
||||
* @dfs: Pointer to wlan_dfs structure.
|
||||
* @value: input value for dfs_legacy_precac_ucfg flag.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && (defined(ATH_SUPPORT_ZERO_CAC_DFS) || \
|
||||
defined(QCA_SUPPORT_AGILE_DFS))
|
||||
void dfs_set_precac_enable(struct wlan_dfs *dfs,
|
||||
uint32_t value);
|
||||
#else
|
||||
@@ -706,12 +714,6 @@ dfs_get_precac_chan_state_for_freq(struct wlan_dfs *dfs,
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* dfs_zero_cac_reset() - Reset Zero cac DFS variables.
|
||||
* @dfs: Pointer to wlan_dfs structure.
|
||||
*/
|
||||
void dfs_zero_cac_reset(struct wlan_dfs *dfs);
|
||||
|
||||
/**
|
||||
* dfs_reinit_precac_lists() - Reinit DFS preCAC lists.
|
||||
* @src_dfs: Source DFS from which the preCAC list is copied.
|
||||
@@ -724,7 +726,8 @@ void dfs_zero_cac_reset(struct wlan_dfs *dfs);
|
||||
*
|
||||
* Return: None (void).
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && (defined(ATH_SUPPORT_ZERO_CAC_DFS) || \
|
||||
defined(QCA_SUPPORT_AGILE_DFS))
|
||||
void dfs_reinit_precac_lists(struct wlan_dfs *src_dfs,
|
||||
struct wlan_dfs *dest_dfs,
|
||||
uint16_t low_5g_freq,
|
||||
@@ -768,7 +771,8 @@ dfs_is_precac_done_on_ht20_40_80_160_165_chan_for_freq(struct wlan_dfs *dfs,
|
||||
bool dfs_is_precac_done_on_ht8080_chan(struct wlan_dfs *dfs,
|
||||
struct dfs_channel *chan);
|
||||
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && (defined(ATH_SUPPORT_ZERO_CAC_DFS) || \
|
||||
defined(QCA_SUPPORT_AGILE_DFS))
|
||||
#ifdef CONFIG_CHAN_FREQ_API
|
||||
/**
|
||||
* dfs_find_curchwidth_and_center_chan_for_freq() - Find the channel width
|
||||
@@ -870,7 +874,8 @@ static inline void dfs_unmark_precac_nol_for_freq(struct wlan_dfs *dfs,
|
||||
* dfs_is_precac_timer_running() - Check whether precac timer is running.
|
||||
* @dfs: Pointer to wlan_dfs structure.
|
||||
*/
|
||||
#if !defined(MOBILE_DFS_SUPPORT)
|
||||
#if !defined(MOBILE_DFS_SUPPORT) && (defined(ATH_SUPPORT_ZERO_CAC_DFS) || \
|
||||
defined(QCA_SUPPORT_AGILE_DFS))
|
||||
bool dfs_is_precac_timer_running(struct wlan_dfs *dfs);
|
||||
#else
|
||||
static inline bool dfs_is_precac_timer_running(struct wlan_dfs *dfs)
|
||||
|
Reference in New Issue
Block a user