From: Mehmet Fide <mehmet.fide@gmail.com>
To: Ping-Ke Shih <pkshih@realtek.com>
Cc: "Jes Sorensen" <Jes.Sorensen@gmail.com>,
"Martin Kaistra" <martin.kaistra@linutronix.de>,
"Kalle Valo" <kvalo@kernel.org>,
"Taehee Yoo" <ap420073@gmail.com>,
"Andrea Merello" <andrea.merello@gmail.com>,
"Bitterblue Smith" <rtl8821cerfe2@gmail.com>,
"Georg Müller" <georgmueller@gmx.net>,
"Shreyansh Khajanchi" <hi@shreyan.sh>,
linux-wireless@vger.kernel.org, mehmet.fide@screeningeagle.com
Subject: [PATCH rtw-next v2 2/2] wifi: rtl8xxxu: append the FCS to received frames
Date: Wed, 2 Dec 2026 11:58:00 +0100 [thread overview]
Message-ID: <20261202105800.2584278-3-mehmet.fide@gmail.com> (raw)
In-Reply-To: <20261202105800.2584278-1-mehmet.fide@gmail.com>
From: Mehmet Fide <mehmet.fide@screeningeagle.com>
Without RCR_APPEND_FCS the 8188e reports some MPDUs of an A-MPDU
4 bytes short, while their retries have the right length. With CCMP
such a frame loses the last 4 bytes of its payload when mac80211
strips the MIC.
An RTL8188EU station of an MT7921AU AP with WPA2 got the ARP reply of
the AP 38 bytes long after 5 of 45 connections, and could not reach
the AP. As an AP, with the AP mode patches for it applied, the
RTL8188EU got the ARP requests of two MT7921AU stations short after
21 of 45 connections.
Let every chip append the FCS, and set RX_INCLUDES_FCS so that
mac80211 removes it. A monitor interface then gets the FCS too.
No ARP frame arrived short then, in 45 connections as a station and 45
as an AP. A monitor interface got 300 frames with a correct FCS.
Fixes: 3dfb8e844fa3 ("wifi: rtl8xxxu: Support new chip RTL8188EU")
Closes: https://lore.kernel.org/linux-wireless/bfe732f4-60dd-4d78-1259-5f9f6c11adbc@gmail.com/
Signed-off-by: Mehmet Fide <mehmet.fide@screeningeagle.com>
---
drivers/net/wireless/realtek/rtl8xxxu/core.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/core.c b/drivers/net/wireless/realtek/rtl8xxxu/core.c
index ceecad84f58c..4d2475db22c8 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/core.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/core.c
@@ -4179,7 +4179,8 @@ static int rtl8xxxu_init_device(struct ieee80211_hw *hw)
*/
val32 = RCR_ACCEPT_PHYS_MATCH | RCR_ACCEPT_MCAST | RCR_ACCEPT_BCAST |
RCR_ACCEPT_MGMT_FRAME | RCR_HTC_LOC_CTRL |
- RCR_APPEND_PHYSTAT | RCR_APPEND_ICV | RCR_APPEND_MIC;
+ RCR_APPEND_PHYSTAT | RCR_APPEND_ICV | RCR_APPEND_MIC |
+ RCR_APPEND_FCS;
rtl8xxxu_write32(priv, REG_RCR, val32);
priv->regrcr = val32;
@@ -8138,6 +8139,7 @@ static int rtl8xxxu_probe(struct usb_interface *interface,
ieee80211_hw_set(hw, SUPPORT_FAST_XMIT);
ieee80211_hw_set(hw, AMPDU_AGGREGATION);
ieee80211_hw_set(hw, MFP_CAPABLE);
+ ieee80211_hw_set(hw, RX_INCLUDES_FCS);
wiphy_ext_feature_set(hw->wiphy, NL80211_EXT_FEATURE_CQM_RSSI_LIST);
--
2.56.0
next prev parent reply other threads:[~2026-12-02 10:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 10:57 [PATCH rtw-next v2 0/2] wifi: rtl8xxxu: A-MPDU sessions per station, FCS Mehmet Fide
2026-12-02 10:57 ` [PATCH rtw-next v2 1/2] wifi: rtl8xxxu: keep the A-MPDU session state per station Mehmet Fide
2026-12-02 10:58 ` Mehmet Fide [this message]
2026-12-04 3:14 ` [PATCH rtw-next v2 2/2] wifi: rtl8xxxu: append the FCS to received frames Ping-Ke Shih
2026-12-04 6:27 ` Mehmet Fide
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261202105800.2584278-3-mehmet.fide@gmail.com \
--to=mehmet.fide@gmail.com \
--cc=Jes.Sorensen@gmail.com \
--cc=andrea.merello@gmail.com \
--cc=ap420073@gmail.com \
--cc=georgmueller@gmx.net \
--cc=hi@shreyan.sh \
--cc=kvalo@kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=martin.kaistra@linutronix.de \
--cc=mehmet.fide@screeningeagle.com \
--cc=pkshih@realtek.com \
--cc=rtl8821cerfe2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox