Эх сурвалжийг харах

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
Jinwei Chen 2 жил өмнө
parent
commit
abbf1c968a
1 өөрчлөгдсөн 14 нэмэгдсэн , 0 устгасан
  1. 14 0
      dp/wifi3.0/dp_internal.h

+ 14 - 0
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