1: 98f18afe4e7f ! 1: 7815997896d7 wifi: rtw88: 8822c: filter hardware-handled control frames on SDIO @@ Commit message PS-Poll and the remaining subtypes, and store the default in rxfltmap1 so FIF_CONTROL can still request all control frames.  - Limit the new default to SDIO, where profiling identified the overhead - and throughput tests measured a benefit. PCIe and USB use different - receive paths and have not been validated with this filter setting. + Limit the new default to SDIO, where profiling identified this overhead. + PCIe and USB receive paths have not been tested with this filter setting.  FriendlyElec's RTL8822CS driver also filters control frames at startup; this change retains additional subtypes for mac80211.  - On RTL8822CS/NanoPi M5 at 198 MHz SDR104, this patch alone increased - median TCP upload from 170 to 258 Mbit/s (+52%). - - A separate download test (four 30-second samples per configuration) - measured 241 to 263 Mbit/s (+9%). - Link: https://github.com/friendlyarm/rtl8822cs/blob/c8b944a34bba2116fcdb060362bde40242bb87e5/hal/rtl8822c/rtl8822c_halinit.c + Signed-off-by: Leonard Lausen   ## drivers/net/wireless/realtek/rtw88/reg.h ##  @@ @@ drivers/net/wireless/realtek/rtw88/rtw8822c.c: static int rtw8822c_mac_init(stru rtw_write16(rtwdev, REG_RXFLTMAP0, WLAN_RX_FILTER0); rtwdev->hal.rxfltmap1 = WLAN_RX_FILTER1;  + if (rtw_hci_type(rtwdev) == RTW_HCI_TYPE_SDIO) { -+ /* Hardware handles these frames; retain BAR and PS-Poll for ++ /* ++ * Hardware handles these frames; retain BAR and PS-Poll for  + * mac80211. FIF_CONTROL restores all subtypes for monitors.  + */  + rtwdev->hal.rxfltmap1 &= ~(BIT_RXFLTMAP1_BACK | -+ BIT_RXFLTMAP1_RTS | -+ BIT_RXFLTMAP1_CTS | -+ BIT_RXFLTMAP1_ACK); ++ BIT_RXFLTMAP1_RTS | ++ BIT_RXFLTMAP1_CTS | ++ BIT_RXFLTMAP1_ACK);  + } rtw_write16(rtwdev, REG_RXFLTMAP1, rtwdev->hal.rxfltmap1); rtw_write16(rtwdev, REG_RXFLTMAP2, WLAN_RX_FILTER2); 2: 0639e4e27315 < -: ------------ wifi: rtw88: sdio: combine free TX page register reads -: ------------ > 2: 0e236c780923 wifi: rtw88: sdio: combine free TX page register reads