mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
Merge pull request #8354 from wagnerch/rtw88-beacon
linux: rtw88: patch to reduce disconnects
This commit is contained in:
commit
a3c0c07006
@ -0,0 +1,37 @@
|
|||||||
|
From 53ee0b3b99edc6a47096bffef15695f5a895386f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Chih-Kang Chang <gary.chang@realtek.com>
|
||||||
|
Date: Fri, 3 Nov 2023 10:08:51 +0800
|
||||||
|
Subject: [PATCH] wifi: rtw88: fix RX filter in FIF_ALLMULTI flag
|
||||||
|
|
||||||
|
The broadcast packets will be filtered in the FIF_ALLMULTI flag in
|
||||||
|
the original code, which causes beacon packets to be filtered out
|
||||||
|
and disconnection. Therefore, we fix it.
|
||||||
|
|
||||||
|
Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver")
|
||||||
|
Signed-off-by: Chih-Kang Chang <gary.chang@realtek.com>
|
||||||
|
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
|
||||||
|
Signed-off-by: Kalle Valo <kvalo@kernel.org>
|
||||||
|
Link: https://lore.kernel.org/r/20231103020851.102238-1-pkshih@realtek.com
|
||||||
|
---
|
||||||
|
drivers/net/wireless/realtek/rtw88/mac80211.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/drivers/net/wireless/realtek/rtw88/mac80211.c b/drivers/net/wireless/realtek/rtw88/mac80211.c
|
||||||
|
index a99b53d44267..d8d68f16014e 100644
|
||||||
|
--- a/drivers/net/wireless/realtek/rtw88/mac80211.c
|
||||||
|
+++ b/drivers/net/wireless/realtek/rtw88/mac80211.c
|
||||||
|
@@ -280,9 +280,9 @@ static void rtw_ops_configure_filter(struct ieee80211_hw *hw,
|
||||||
|
|
||||||
|
if (changed_flags & FIF_ALLMULTI) {
|
||||||
|
if (*new_flags & FIF_ALLMULTI)
|
||||||
|
- rtwdev->hal.rcr |= BIT_AM | BIT_AB;
|
||||||
|
+ rtwdev->hal.rcr |= BIT_AM;
|
||||||
|
else
|
||||||
|
- rtwdev->hal.rcr &= ~(BIT_AM | BIT_AB);
|
||||||
|
+ rtwdev->hal.rcr &= ~(BIT_AM);
|
||||||
|
}
|
||||||
|
if (changed_flags & FIF_FCSFAIL) {
|
||||||
|
if (*new_flags & FIF_FCSFAIL)
|
||||||
|
--
|
||||||
|
2.34.1
|
||||||
|
|
@ -0,0 +1,37 @@
|
|||||||
|
From 53ee0b3b99edc6a47096bffef15695f5a895386f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Chih-Kang Chang <gary.chang@realtek.com>
|
||||||
|
Date: Fri, 3 Nov 2023 10:08:51 +0800
|
||||||
|
Subject: [PATCH] wifi: rtw88: fix RX filter in FIF_ALLMULTI flag
|
||||||
|
|
||||||
|
The broadcast packets will be filtered in the FIF_ALLMULTI flag in
|
||||||
|
the original code, which causes beacon packets to be filtered out
|
||||||
|
and disconnection. Therefore, we fix it.
|
||||||
|
|
||||||
|
Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver")
|
||||||
|
Signed-off-by: Chih-Kang Chang <gary.chang@realtek.com>
|
||||||
|
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
|
||||||
|
Signed-off-by: Kalle Valo <kvalo@kernel.org>
|
||||||
|
Link: https://lore.kernel.org/r/20231103020851.102238-1-pkshih@realtek.com
|
||||||
|
---
|
||||||
|
drivers/net/wireless/realtek/rtw88/mac80211.c | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/drivers/net/wireless/realtek/rtw88/mac80211.c b/drivers/net/wireless/realtek/rtw88/mac80211.c
|
||||||
|
index a99b53d44267..d8d68f16014e 100644
|
||||||
|
--- a/drivers/net/wireless/realtek/rtw88/mac80211.c
|
||||||
|
+++ b/drivers/net/wireless/realtek/rtw88/mac80211.c
|
||||||
|
@@ -280,9 +280,9 @@ static void rtw_ops_configure_filter(struct ieee80211_hw *hw,
|
||||||
|
|
||||||
|
if (changed_flags & FIF_ALLMULTI) {
|
||||||
|
if (*new_flags & FIF_ALLMULTI)
|
||||||
|
- rtwdev->hal.rcr |= BIT_AM | BIT_AB;
|
||||||
|
+ rtwdev->hal.rcr |= BIT_AM;
|
||||||
|
else
|
||||||
|
- rtwdev->hal.rcr &= ~(BIT_AM | BIT_AB);
|
||||||
|
+ rtwdev->hal.rcr &= ~(BIT_AM);
|
||||||
|
}
|
||||||
|
if (changed_flags & FIF_FCSFAIL) {
|
||||||
|
if (*new_flags & FIF_FCSFAIL)
|
||||||
|
--
|
||||||
|
2.34.1
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user