qcacld-3.0: Enable TSO
Add FEATURE_TSO flag in Kbuild to enable the
TSO feature for Lithium based chipsets
Change-Id: Ie26b2b9a191828b3ce833000a7abbb09dd492713
CRs-Fixed: 2042950
diff --git a/Kbuild b/Kbuild
index 3a4239c..c60815d 100644
--- a/Kbuild
+++ b/Kbuild
@@ -2094,6 +2094,8 @@
CDEFINES += -DTX_PER_PDEV_DESC_POOL
CDEFINES += -DWLAN_RX_HASH
CDEFINES += -DCONFIG_DP_TRACE
+CDEFINES += -DFEATURE_TSO
+CDEFINES += -DTSO_DEBUG_LOG_ENABLE
CDEFINES += -DDP_LFR
endif
diff --git a/core/dp/htt/htt_tx.c b/core/dp/htt/htt_tx.c
index 53698a4..1423984 100644
--- a/core/dp/htt/htt_tx.c
+++ b/core/dp/htt/htt_tx.c
@@ -1404,7 +1404,7 @@
}
#endif /* IPA_OFFLOAD */
-#if defined(FEATURE_TSO)
+#if defined(FEATURE_TSO) && defined(HELIUMPLUS)
void
htt_tx_desc_fill_tso_info(htt_pdev_handle pdev, void *desc,
struct qdf_tso_info_t *tso_info)
@@ -1417,7 +1417,7 @@
word = (u_int32_t *)(desc);
/* Initialize the TSO flags per MSDU */
- ((struct msdu_ext_desc_t *)msdu_ext_desc)->tso_flags =
+ msdu_ext_desc->tso_flags =
tso_seg->seg.tso_flags;
/* First 24 bytes (6*4) contain the TSO flags */
diff --git a/core/dp/ol/inc/ol_htt_tx_api.h b/core/dp/ol/inc/ol_htt_tx_api.h
index ccd17db..4bf26a4 100644
--- a/core/dp/ol/inc/ol_htt_tx_api.h
+++ b/core/dp/ol/inc/ol_htt_tx_api.h
@@ -838,7 +838,7 @@
*chanfreq_field_ptr = chanfreq;
}
-#if defined(FEATURE_TSO)
+#if defined(FEATURE_TSO) && defined(HELIUMPLUS)
void
htt_tx_desc_fill_tso_info(htt_pdev_handle pdev, void *desc,
struct qdf_tso_info_t *tso_info);