Browse Source

qcacld-3.0: Remove INI parameter gReorderOffloadSupported

As part of WiFi ini clean-up FR, the ini gReorderOffloadSupported,
is identified as an obsolete parameter. Hence it is deprecated and
all instances of the config  CFG_DP_REORDER_OFFLOAD_SUPPORT is
replaced by default value of ini.

Change-Id: I738406fb740f414fb6ad70603dfc95b9bf137ac4
CRs-Fixed: 2916527
Aditya Kodukula 4 years ago
parent
commit
b619f021fc
3 changed files with 7 additions and 4 deletions
  1. 5 0
      core/cds/inc/cds_api.h
  2. 1 2
      core/cds/src/cds_api.c
  3. 1 2
      core/hdd/src/wlan_hdd_main.c

+ 5 - 0
core/cds/inc/cds_api.h

@@ -46,6 +46,11 @@
 #include <wlan_objmgr_psoc_obj.h>
 #include <cdp_txrx_handle.h>
 
+/* The ini gReorderOffloadSupported is deprecated. So, defining a new macro
+ * DP_REORDER_OFFLOAD_SUPPORT with the ini's default value.
+ */
+#define DP_REORDER_OFFLOAD_SUPPORT (1)
+
 /* Amount of time to wait for WMA to perform an asynchronous activity.
  * This value should be larger than the timeout used by WMI to wait for
  * a response from target

+ 1 - 2
core/cds/src/cds_api.c

@@ -436,8 +436,7 @@ static void cds_cdp_cfg_attach(struct wlan_objmgr_psoc *psoc)
 	void *soc = cds_get_context(QDF_MODULE_ID_SOC);
 	struct hdd_context *hdd_ctx = gp_cds_context->hdd_context;
 
-	cdp_cfg.is_full_reorder_offload =
-		cfg_get(psoc, CFG_DP_REORDER_OFFLOAD_SUPPORT);
+	cdp_cfg.is_full_reorder_offload = DP_REORDER_OFFLOAD_SUPPORT;
 	cdp_cfg.is_uc_offload_enabled = ucfg_ipa_uc_is_enabled();
 	cdp_cfg.uc_tx_buffer_count = cfg_get(psoc, CFG_DP_IPA_UC_TX_BUF_COUNT);
 	cdp_cfg.uc_tx_buffer_size =

+ 1 - 2
core/hdd/src/wlan_hdd_main.c

@@ -12875,8 +12875,7 @@ static int hdd_update_cds_config(struct hdd_context *hdd_ctx)
 						    &value);
 	cds_cfg->ap_maxoffload_reorderbuffs = value;
 
-	cds_cfg->reorder_offload =
-			cfg_get(hdd_ctx->psoc, CFG_DP_REORDER_OFFLOAD_SUPPORT);
+	cds_cfg->reorder_offload = DP_REORDER_OFFLOAD_SUPPORT;
 
 	/* IPA micro controller data path offload resource config item */
 	cds_cfg->uc_offload_enabled = ucfg_ipa_uc_is_enabled();