|
@@ -631,7 +631,8 @@ pld_pcie_qmi_send(struct device *dev, int type, void *cmd,
|
|
|
return cnss_qmi_send(dev, type, cmd, cmd_len, cb_ctx, cb);
|
|
|
}
|
|
|
|
|
|
-#ifdef WLAN_CHIPSET_STATS
|
|
|
+#if defined(WLAN_CHIPSET_STATS) && \
|
|
|
+ (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
|
|
|
static inline int
|
|
|
pld_pcie_register_qmi_ind(struct device *dev, void *cb_ctx,
|
|
|
int (*cb)(void *ctx, uint16_t type,
|