Skip to content

Commit bb45253

Browse files
committed
wifi: rtw89: Add extra TX headroom for USB
JIRA: https://issues.redhat.com/browse/RHEL-114889 commit ec542d5 Author: Bitterblue Smith <rtl8821cerfe2@gmail.com> Date: Mon Jun 30 23:44:28 2025 +0300 wifi: rtw89: Add extra TX headroom for USB In the case of USB the TX descriptor is transmitted in the same buffer as the 802.11 frame, so add the required headroom. Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/91fb7579-60e5-4a06-8007-3312639beea6@gmail.com Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent 0744b79 commit bb45253

File tree

1 file changed

+3
-0
lines changed
  • drivers/net/wireless/realtek/rtw89

1 file changed

+3
-0
lines changed

drivers/net/wireless/realtek/rtw89/core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5591,6 +5591,9 @@ static int rtw89_core_register_hw(struct rtw89_dev *rtwdev)
55915591
int ret;
55925592
int tx_headroom = IEEE80211_HT_CTL_LEN;
55935593

5594+
if (rtwdev->hci.type == RTW89_HCI_TYPE_USB)
5595+
tx_headroom += chip->txwd_body_size + chip->txwd_info_size;
5596+
55945597
hw->vif_data_size = struct_size_t(struct rtw89_vif, links_inst, n);
55955598
hw->sta_data_size = struct_size_t(struct rtw89_sta, links_inst, n);
55965599
hw->txq_data_size = sizeof(struct rtw89_txq);

0 commit comments

Comments
 (0)