From abbf1c968a5b8acb15e9e3aaefc5265b17e86f73 Mon Sep 17 00:00:00 2001 From: Jinwei Chen Date: Sun, 16 Oct 2022 19:14:31 -0700 Subject: [PATCH] qcacmn: fix compilation issue if WIFI_MONITOR_SUPPORT disabled fix compilation issue if WIFI_MONITOR_SUPPORT is not enabled. Change-Id: I6ea15fc0729bc0c999c6f10691200958e538bf79 CRs-Fixed: 3315379 --- dp/wifi3.0/dp_internal.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dp/wifi3.0/dp_internal.h b/dp/wifi3.0/dp_internal.h index 459586065a..0d0dfc4c16 100644 --- a/dp/wifi3.0/dp_internal.h +++ b/dp/wifi3.0/dp_internal.h @@ -259,8 +259,22 @@ dp_get_mcs_array_index_by_pkt_type_mcs(uint32_t pkt_type, uint32_t mcs) } #endif +#ifdef WIFI_MONITOR_SUPPORT QDF_STATUS dp_mon_soc_attach(struct dp_soc *soc); QDF_STATUS dp_mon_soc_detach(struct dp_soc *soc); +#else +static inline +QDF_STATUS dp_mon_soc_attach(struct dp_soc *soc) +{ + return QDF_STATUS_SUCCESS; +} + +static inline +QDF_STATUS dp_mon_soc_detach(struct dp_soc *soc) +{ + return QDF_STATUS_SUCCESS; +} +#endif /* * dp_rx_err_match_dhost() - function to check whether dest-mac is correct