From: Mehmet Fide 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 --- 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