rtl88x2CS: Fix enum-conversion error
authorBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 16:51:15 +0000 (17:51 +0100)
committerBruno Martins <bgcngm@gmail.com>
Sun, 22 Oct 2023 16:51:15 +0000 (17:51 +0100)
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

rtl88x2CS/hal/rtl8822c/sdio/rtl8822cs_ops.c

index 6038c2c72012bb801a4c90ee9e7a43aabfdfb656..cfaced658aaa94aa2d2e796761a8979eadf938c8 100644 (file)
@@ -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