1 From fb2fcfbe5eef9ae26b0425978435ae1308951e51 Mon Sep 17 00:00:00 2001
2 From: Fiona Klute <fiona.klute@gmx.de>
3 Date: Mon, 6 Jan 2025 15:54:34 +0200
4 Subject: [PATCH] wifi: rtw88: sdio: Fix disconnection after beacon loss
6 This is the equivalent of commit 28818b4d871b ("wifi: rtw88: usb: Fix
7 disconnection after beacon loss") for SDIO chips.
8 Tested on Pinephone (RTL8723CS), random disconnections became rare,
9 instead of a frequent nuisance.
11 Cc: stable@vger.kernel.org
12 Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
13 Tested-by: Vasily Khoruzhick <anarsoul@gmail.com> # Tested on Pinebook
14 Acked-by: Ping-Ke Shih <pkshih@realtek.com>
15 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
16 Link: https://patch.msgid.link/20250106135434.35936-1-fiona.klute@gmx.de
18 drivers/net/wireless/realtek/rtw88/sdio.c | 2 ++
19 1 file changed, 2 insertions(+)
21 --- a/drivers/net/wireless/realtek/rtw88/sdio.c
22 +++ b/drivers/net/wireless/realtek/rtw88/sdio.c
23 @@ -1192,6 +1192,8 @@ static void rtw_sdio_indicate_tx_status(
24 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
25 struct ieee80211_hw *hw = rtwdev->hw;
27 + skb_pull(skb, rtwdev->chip->tx_pkt_desc_sz);
29 /* enqueue to wait for tx report */
30 if (info->flags & IEEE80211_TX_CTL_REQ_TX_STATUS) {
31 rtw_tx_report_enqueue(rtwdev, skb, tx_data->sn);