qcacmn: Fix spectral scan compilation issue
Forward declare 'struct wmi_spectral_cmd_ops' in file wlan_spectral_utils_api.h to avoid compilation issue when spectral feature flag is disabled. Change-Id: Iba8dfbb2007f20d409fbb2d67ee29f702264e50d CRs-Fixed: 2269005
This commit is contained in:

committed by
nshrivas

parent
0c66f3ef10
commit
6f083bace3
@@ -53,11 +53,6 @@ extern struct net init_net;
|
|||||||
*/
|
*/
|
||||||
#ifdef WLAN_CONV_SPECTRAL_ENABLE
|
#ifdef WLAN_CONV_SPECTRAL_ENABLE
|
||||||
void os_if_spectral_netlink_init(struct wlan_objmgr_pdev *pdev);
|
void os_if_spectral_netlink_init(struct wlan_objmgr_pdev *pdev);
|
||||||
#else
|
|
||||||
static inline void os_if_spectral_netlink_init(struct wlan_objmgr_pdev *pdev)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
/**
|
/**
|
||||||
* os_if_spectral_prep_skb() - Prepare socket buffer
|
* os_if_spectral_prep_skb() - Prepare socket buffer
|
||||||
* @pdev : Pointer to pdev
|
* @pdev : Pointer to pdev
|
||||||
@@ -76,4 +71,15 @@ void *os_if_spectral_prep_skb(struct wlan_objmgr_pdev *pdev);
|
|||||||
* Return: None
|
* Return: None
|
||||||
*/
|
*/
|
||||||
void os_if_spectral_netlink_deinit(struct wlan_objmgr_pdev *pdev);
|
void os_if_spectral_netlink_deinit(struct wlan_objmgr_pdev *pdev);
|
||||||
|
#else
|
||||||
|
|
||||||
|
static inline void os_if_spectral_netlink_init(struct wlan_objmgr_pdev *pdev)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void os_if_spectral_netlink_deinit(struct wlan_objmgr_pdev *pdev)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
#endif /* _OS_IF_SPECTRAL_NETLINK_H */
|
#endif /* _OS_IF_SPECTRAL_NETLINK_H */
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
/* Forward declaration */
|
/* Forward declaration */
|
||||||
struct direct_buf_rx_data;
|
struct direct_buf_rx_data;
|
||||||
|
struct wmi_spectral_cmd_ops;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* wlan_spectral_init() - API to init spectral component
|
* wlan_spectral_init() - API to init spectral component
|
||||||
|
Reference in New Issue
Block a user