diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 1adff42a03be..3a737ec779fc 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -110,7 +110,7 @@ #endif #if defined(CLD_PM_QOS) && \ - (LINUX_VERSION_CODE <= KERNEL_VERSION(4, 19, 0)) + (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)) #include #endif @@ -1887,7 +1887,7 @@ struct hdd_context { qdf_time_t runtime_resume_start_time_stamp; qdf_time_t runtime_suspend_done_time_stamp; #if defined(CLD_PM_QOS) && \ - (LINUX_VERSION_CODE <= KERNEL_VERSION(4, 19, 0)) + (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)) struct pm_qos_request pm_qos_req; #endif #ifdef WLAN_FEATURE_PKT_CAPTURE diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 6b52290536fa..28e93f8b3846 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -8378,7 +8378,7 @@ static void hdd_clear_rps_cpu_mask(struct hdd_context *hdd_ctx) } #if defined(CLD_PM_QOS) && \ - (LINUX_VERSION_CODE <= KERNEL_VERSION(4, 19, 0)) + (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)) #define PLD_REMOVE_PM_QOS(x) #define PLD_REQUEST_PM_QOS(x, y) /**