From: Bruno Martins Date: Sun, 22 Oct 2023 16:51:15 +0000 (+0100) Subject: rtl88x2CS: Fix enum-conversion error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1260acef8f88099c2d9f56dcbe593b3b5ce31670;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_rtl8822cs.git rtl88x2CS: Fix enum-conversion error Fixes the following: ../ETC/8822cs_intermediates/hal/rtl8822c/sdio/rtl8822cs_ops.c:30:21: error: implicit conversion from enumeration type 'enum halmac_rx_agg_mode' to different enumeration type 'RX_AGG_MODE' (a ka 'enum _RX_AGG_MODE') [-Werror,-Wenum-conversion] phal->rxagg_mode = HALMAC_RX_AGG_MODE_DMA; ~ ^~~~~~~~~~~~~~~~~~~~~~ Change-Id: I39488a1357206cc0ab834522b3d43cc4a4d78960 --- diff --git a/rtl88x2CS/hal/rtl8822c/sdio/rtl8822cs_ops.c b/rtl88x2CS/hal/rtl8822c/sdio/rtl8822cs_ops.c index 6038c2c..cfaced6 100644 --- a/rtl88x2CS/hal/rtl8822c/sdio/rtl8822cs_ops.c +++ b/rtl88x2CS/hal/rtl8822c/sdio/rtl8822cs_ops.c @@ -27,7 +27,7 @@ static void intf_chip_configure(PADAPTER adapter) phal = GET_HAL_DATA(adapter); #ifdef RTW_RX_AGGREGATION - phal->rxagg_mode = HALMAC_RX_AGG_MODE_DMA; + phal->rxagg_mode = RX_AGG_DMA; phal->rxagg_dma_size = 0xff; phal->rxagg_dma_timeout= 0x20; #endif