|
@@ -281,10 +281,22 @@ static inline bool __qdf_is_macaddr_equal(struct qdf_mac_addr *mac_addr1,
|
|
|
|
|
|
#define __qdf_min(_a, _b) min(_a, _b)
|
|
|
#define __qdf_max(_a, _b) max(_a, _b)
|
|
|
-#define _QDF_DECLARE_EWMA(name, _factor, _weight) \
|
|
|
+
|
|
|
+/**
|
|
|
+ * Setting it to blank as feature is not intended to be supported
|
|
|
+ * on linux version less than 4.3
|
|
|
+ */
|
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) || \
|
|
|
+ LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
|
|
|
+#define __QDF_DECLARE_EWMA(name, _factor, _weight)
|
|
|
+
|
|
|
+#define __qdf_ewma_tx_lag struct ewma
|
|
|
+#else
|
|
|
+#define __QDF_DECLARE_EWMA(name, _factor, _weight) \
|
|
|
DECLARE_EWMA(name, _factor, _weight)
|
|
|
|
|
|
-#define _qdf_ewma_tx_lag struct ewma_tx_lag
|
|
|
+#define __qdf_ewma_tx_lag struct ewma_tx_lag
|
|
|
+#endif
|
|
|
|
|
|
#define __qdf_ffz(mask) (~(mask) == 0 ? -1 : ffz(mask))
|
|
|
|
|
@@ -355,14 +367,21 @@ static inline bool __qdf_is_macaddr_equal(struct qdf_mac_addr *mac_addr1,
|
|
|
|
|
|
#define __qdf_roundup(x, y) roundup(x, y)
|
|
|
|
|
|
-#define _qdf_ewma_tx_lag_init(tx_lag) \
|
|
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) || \
|
|
|
+ LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
|
|
|
+#define __qdf_ewma_tx_lag_init(tx_lag)
|
|
|
+#define __qdf_ewma_tx_lag_add(tx_lag, value)
|
|
|
+#define __qdf_ewma_tx_lag_read(tx_lag)
|
|
|
+#else
|
|
|
+#define __qdf_ewma_tx_lag_init(tx_lag) \
|
|
|
ewma_tx_lag_init(tx_lag)
|
|
|
|
|
|
-#define _qdf_ewma_tx_lag_add(tx_lag, value) \
|
|
|
+#define __qdf_ewma_tx_lag_add(tx_lag, value) \
|
|
|
ewma_tx_lag_add(tx_lag, value)
|
|
|
|
|
|
-#define _qdf_ewma_tx_lag_read(tx_lag) \
|
|
|
+#define __qdf_ewma_tx_lag_read(tx_lag) \
|
|
|
ewma_tx_lag_read(tx_lag)
|
|
|
+#endif
|
|
|
|
|
|
#ifdef QCA_CONFIG_SMP
|
|
|
/**
|