1 From 85bf3041a0ea40a60b5295749268e179f056546a Mon Sep 17 00:00:00 2001
2 From: Bitterblue Smith <rtl8821cerfe2@gmail.com>
3 Date: Wed, 23 Oct 2024 17:13:10 +0300
4 Subject: [PATCH] wifi: rtw88: usb: Set pkt_info.ls for the reserved page
6 "ls" meaning "last segment". Without this RTL8812AU can't upload the
7 reserved page in USB 2 mode. (Somehow it's fine in USB 3 mode.)
9 Also tested with RTL8822CU, RTL8812BU, RTL8811CU, RTL8723DU, RTL8811AU.
11 Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
12 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
13 Link: https://patch.msgid.link/e443f5d9-4b53-4f64-985c-64313ec80bef@gmail.com
15 drivers/net/wireless/realtek/rtw88/usb.c | 1 +
16 1 file changed, 1 insertion(+)
18 --- a/drivers/net/wireless/realtek/rtw88/usb.c
19 +++ b/drivers/net/wireless/realtek/rtw88/usb.c
20 @@ -477,6 +477,7 @@ static int rtw_usb_write_data_rsvd_page(
21 pkt_info.tx_pkt_size = size;
22 pkt_info.qsel = TX_DESC_QSEL_BEACON;
23 pkt_info.offset = chip->tx_pkt_desc_sz;
26 return rtw_usb_write_data(rtwdev, &pkt_info, buf);