Skip to contentSkip to conversation

wifi: rtl8xxxu: Fix RTL8188EU firmware upload block size

PATCH In review Bitterblue Smith 2 participants 2 messages Dec 23, 2024 – Dec 30, 2024 RTL8XXXU wireless driver (rtl8xxxu)

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 wifi: rtl8xxxu: Fix RTL8188EU firmware upload block size

A user reports that the firmware upload consistently fails when it's uploaded in chunks of 128 bytes, but it works when uploaded in chunks of 196 bytes. The official driver uses 196 bytes also.

---
v2:
- Make the patch apply.

---
 drivers/net/wireless/realtek/rtl8xxxu/8188e.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/realtek/rtl8xxxu/8188e.c +1 -1
index 3d04df0f5bf4..766a7a7c7d28 100644
@@ -1860,7 +1860,7 @@ struct rtl8xxxu_fileops rtl8188eu_fops = {
 	.set_crystal_cap = rtl8188f_set_crystal_cap,
 	.cck_rssi = rtl8188e_cck_rssi,
 	.led_classdev_brightness_set = rtl8188eu_led_brightness_set,
-	.writeN_block_size = 128,
+	.writeN_block_size = 196,
 	.rx_desc_size = sizeof(struct rtl8xxxu_rxdesc16),
 	.tx_desc_size = sizeof(struct rtl8xxxu_txdesc32),
 	.has_tx_report = 1,
Signature · 1 line
2.47.1
#1 lore raw
Quoted 6 lines · Bitterblue Smith

A user reports that the firmware upload consistently fails when it's uploaded in chunks of 128 bytes, but it works when uploaded in chunks of 196 bytes. The official driver uses 196 bytes also.

1 patch(es) applied to rtw-next branch of rtw.git, thanks.

93b3a45645f1 wifi: rtl8xxxu: Fix RTL8188EU firmware upload block size

---
https://github.com/pkshih/rtw.git