qcacmn: Fix compiler failure with HOST_DFS_SPOOF_TEST not defined

Callbacks are defined for both cases, so remove compiler
flag around callback declaration and assign callback for both
HOST_DFS_SPOOF_TEST enabled and disabled cases.

Change-Id: I5e3cedaaa5be550243ac090da3ab6499c5e83904
CRs-Fixed: 2249806
This commit is contained in:
Kiran Venkatappa 2018-05-24 23:10:07 +05:30 • committed by nshrivas
commit 68cd728ed8

View file

@ -131,12 +131,10 @@ struct dfs_to_mlme {
uint8_t c_vhtop_ch_freq_seg2,
uint64_t dfs_ch_flags,
int *cac_timeout);
#if defined(WLAN_DFS_PARTIAL_OFFLOAD) && defined(HOST_DFS_SPOOF_TEST)
QDF_STATUS (*mlme_rebuild_chan_list_with_non_dfs_channels)
(struct wlan_objmgr_pdev *pdev);
QDF_STATUS (*mlme_restart_vaps_with_non_dfs_chan)
(struct wlan_objmgr_pdev *pdev, int no_chans_avail);
#endif
};
extern struct dfs_to_mlme global_dfs_to_mlme;