diff --git a/core/hdd/src/wlan_hdd_ipa.c b/core/hdd/src/wlan_hdd_ipa.c index 1947354ffc..74ae49dc56 100644 --- a/core/hdd/src/wlan_hdd_ipa.c +++ b/core/hdd/src/wlan_hdd_ipa.c @@ -30,7 +30,9 @@ #include #include #include -#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0) +/* Test against msm kernel version */ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)) && \ + IS_ENABLED(CONFIG_SCHED_WALT) #include #endif