diff mbox series

wifi: rtlwifi: fix EDCA limit to set

Message ID 20230927140513.16065-1-dmantipov@yandex.ru (mailing list archive)
State Changes Requested
Delegated to: Kalle Valo
Headers show
Series wifi: rtlwifi: fix EDCA limit to set | expand

Commit Message

Dmitry Antipov Sept. 27, 2023, 2:04 p.m. UTC
In 'rtl92c_dm_check_edca_turbo()', most likely the DL limit should
be set from the corresponding field of 'rtlpriv->btcoexist' rather
than UL. Compile tested only.

Fixes: beb5bc402043 ("rtlwifi: rtl8192c-common: Convert common dynamic management routines for addition of rtl8192se and rtl8192de")
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
---
 drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ping-Ke Shih Sept. 28, 2023, 2:18 a.m. UTC | #1
> -----Original Message-----
> From: Dmitry Antipov <dmantipov@yandex.ru>
> Sent: Wednesday, September 27, 2023 10:05 PM
> To: Ping-Ke Shih <pkshih@realtek.com>
> Cc: Kalle Valo <kvalo@kernel.org>; linux-wireless@vger.kernel.org; Dmitry Antipov <dmantipov@yandex.ru>
> Subject: [PATCH] wifi: rtlwifi: fix EDCA limit to set

"wifi: rtlwifi: 8192c: fix EDCA limit set by BT coexistence"
would be clearer. 

> 
> In 'rtl92c_dm_check_edca_turbo()', most likely the DL limit should
> be set from the corresponding field of 'rtlpriv->btcoexist' rather
> than UL. Compile tested only.
> 
> Fixes: beb5bc402043 ("rtlwifi: rtl8192c-common: Convert common dynamic management routines for addition
> of rtl8192se and rtl8192de")
> Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>

Acked-by: Ping-Ke Shih <pkshih@realtek.com>

> ---
>  drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c
> b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c
> index 0b6a15c2e5cc..d92aad60edfe 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c
> +++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c
> @@ -640,7 +640,7 @@ static void rtl92c_dm_check_edca_turbo(struct ieee80211_hw *hw)
>         }
> 
>         if (rtlpriv->btcoexist.bt_edca_dl != 0) {
> -               edca_be_ul = rtlpriv->btcoexist.bt_edca_dl;
> +               edca_be_dl = rtlpriv->btcoexist.bt_edca_dl;
>                 bt_change_edca = true;
>         }
> 
> --
> 2.41.0
diff mbox series

Patch

diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c
index 0b6a15c2e5cc..d92aad60edfe 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192c/dm_common.c
@@ -640,7 +640,7 @@  static void rtl92c_dm_check_edca_turbo(struct ieee80211_hw *hw)
 	}
 
 	if (rtlpriv->btcoexist.bt_edca_dl != 0) {
-		edca_be_ul = rtlpriv->btcoexist.bt_edca_dl;
+		edca_be_dl = rtlpriv->btcoexist.bt_edca_dl;
 		bt_change_edca = true;
 	}