Browse Source

qcacld-3.0: Define DBR_MULTI_SRNG_ENABLE under correct feature flags

Currently host driver defines DBR_MULTI_SRNG_ENABLE as true if
CONFIG_CNSS_QCA6750 is not defined or CONFIG_CNSS_WCN6450 is not
defined. For any of these chipsets any one of these feature flags
will not be defined which lead to incorrect feature flag
initialization for DBR_MULTI_SRNG_ENABLE.
Because of the above issue, host driver load fails.

To address above issue, define DBR_MULTI_SRNG_ENABLE feature flag
only if both CONFIG_CNSS_QCA6750 and CONFIG_CNSS_WCN6450 are not
defined.

Change-Id: Ia569a71a558c2d1f71d35ae683c22cf4632c3c50
CRs-Fixed: 3717340
Ashish Kumar Dhanotiya 1 year ago
parent
commit
c23cec4ff7
1 changed files with 2 additions and 8 deletions
  1. 2 8
      configs/config_to_feature.h

+ 2 - 8
configs/config_to_feature.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2023, Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2023-2024, Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -278,13 +278,7 @@
 #define WMI_DBR_SUPPORT (1)
 #endif
 
-#ifndef CONFIG_CNSS_QCA6750
-#ifdef CONFIG_DIRECT_BUF_RX_ENABLE
-#define DBR_MULTI_SRNG_ENABLE (1)
-#endif
-#endif
-
-#ifndef CONFIG_CNSS_WCN6450
+#if !defined(CONFIG_CNSS_QCA6750) && !defined(CONFIG_CNSS_WCN6450)
 #ifdef CONFIG_DIRECT_BUF_RX_ENABLE
 #define DBR_MULTI_SRNG_ENABLE (1)
 #endif