Ver Fonte

qcacld-3.0: remove struct sps_iovc reference

Since struct sps_iovc is obsolete in the latest kernel,
use a local macro instead of sizeof() . It should be
updated with the correct IPA size macro once it is
avaiable in the latest kernel.

CRs-Fixed: 2160658
Change-Id: Ifc2926d5182c96e07de6b4ddd50156764b7ad51e
Yuanyuan Liu há 7 anos atrás
pai
commit
23a8eecd28

+ 1 - 1
core/dp/txrx/ol_txrx_ipa.c

@@ -386,7 +386,7 @@ QDF_STATUS ol_txrx_ipa_setup(struct cdp_pdev *ppdev, void *ipa_i2w_cb,
 	QDF_IPA_PIPE_IN_MODE(&pipe_in) = IPA_BASIC;
 	QDF_IPA_PIPE_IN_CLIENT(&pipe_in) = IPA_CLIENT_WLAN1_PROD;
 	QDF_IPA_PIPE_IN_DESC_FIFO_SZ(&pipe_in) =
-		ipa_desc_size + sizeof(struct sps_iovec);
+		ipa_desc_size + SPS_DESC_SIZE;
 	QDF_IPA_PIPE_IN_NOTIFY(&pipe_in) = ipa_w2i_cb;
 	if (!is_rm_enabled) {
 		QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,

+ 2 - 0
core/dp/txrx/ol_txrx_types.h

@@ -1325,4 +1325,6 @@ struct ol_rx_remote_data {
 
 #define INVALID_REORDER_INDEX 0xFFFF
 
+#define SPS_DESC_SIZE 8
+
 #endif /* _OL_TXRX_TYPES__H_ */

+ 1 - 1
core/hdd/src/wlan_hdd_ipa.c

@@ -4992,7 +4992,7 @@ static int hdd_ipa_setup_sys_pipe(struct hdd_ipa_priv *hdd_ipa)
 	 * make sure hardware always has one descriptor.
 	 */
 	desc_fifo_sz = hdd_ipa->hdd_ctx->config->IpaDescSize
-		       + sizeof(struct sps_iovec);
+		       + SPS_DESC_SIZE;
 
 	ret = hdd_ipa_setup_tx_sys_pipe(hdd_ipa, desc_fifo_sz);
 	if (ret) {