Skip to contentSkip to conversation

rtlwifi: v88.2 firmware files for RTL8192CU

PATCH In review Reto Schneider 2 participants 2 messages Nov 9, 2020 – Nov 13, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 rtlwifi: v88.2 firmware files for RTL8192CU

The vendor driver rtl8188C_8192C_usb_linux_v4.0.1_6911.20130308 includes new firmware files. These were extracted from data statements in that driver to form these files.

Before this update, with version 80 of the firmware, the USB interface of the RTL8192CU WLAN controller often locked itself up:
usb 1-2: device descriptor read/64, error -110
usb 1-2: device not accepting address 4, error -110
usb 1-2: device not accepting address 5, error -110
usb usb1-port2: unable to enumerate USB device
usb 2-2: device descriptor read/64, error -110
usb 2-2: device descriptor read/64, error -110

On ARMv5 based GARDENA smart gateways running Linux 4.19.78, this can be reliably reproduced by rebooting (warm) the gateway multiple times (max. 50 attempts needed).
Unlike users having this issues on a USB Wi-Fi dongle, resetting of the chip by replugging is not an option on this gateway due to the lack of any power cut functionality. Therefore, a (cold) reboot of the whole gateway is needed.

Updating the firmware of the RTL8192CU WLAN controller from version v80.0 to v88.2 (as per output of rtl8xxxu) resolves this issue. The problem did no show up anymore for 1000 restarts.

Please note:
- Only rtl8192cufw_TMSC.bin tested (mainly on rtl8xxxu)
- rtl8192cu seems to work as well as before, but I can not rule out that this new firmware version brings unwanted changes. The Realtek drivers containing v88.2 of the firmware (v4.0.1_6911.20130308 to v4.0.9_25039.20171107) have some changes compared to the version v3.4.2_3727.20120404, for which I do not know if those should be reflected in rtl8192cu.

Unrelated of the initially described USB problem, another issue still remains after updating the firmware: Using the rtl8192cu driver, scanning for available SSIDs yields no more results after a few hundred scans (iw wlan0 scan). rtl8xxxu does not suffer from this problem.

---
Changes in v3:
- Merge patch and cover letter
- Add new tags

 WHENCE                       |   6 ++++++
 rtlwifi/rtl8192cufw_A.bin    | Bin 16116 -> 16126 bytes
 rtlwifi/rtl8192cufw_B.bin    | Bin 16096 -> 16096 bytes
 rtlwifi/rtl8192cufw_TMSC.bin | Bin 16116 -> 16126 bytes
 4 files changed, 6 insertions(+)
WHENCE +6 -0
index 6265e03..ccacf4d 100644
@@ -2744,6 +2744,12 @@ File: rtlwifi/rtl8192cufw.bin
 File: rtlwifi/rtl8192cufw_A.bin
 File: rtlwifi/rtl8192cufw_B.bin
 File: rtlwifi/rtl8192cufw_TMSC.bin
+Info: From Vendor's rtl8188C_8192C_usb_linux_v4.0.1_6911.20130308 driver
+      All files extracted from driver/hal/rtl8192c/usb/Hal8192CUHWImg.c
+      Relevant variables (CONFIG_BT_COEXISTENCE not set):
+        - rtlwifi/rtl8192cufw_A.bin: Rtl8192CUFwUMCACutImgArray
+        - rtlwifi/rtl8192cufw_B.bin: Rtl8192CUFwUMCBCutImgArray
+        - rtlwifi/rtl8192cufw_TMSC.bin: Rtl8192CUFwTSMCImgArray
 
 Licence: Redistributable. See LICENCE.rtlwifi_firmware.txt for details.
 
rtlwifi/rtl8192cufw_A.bin binary +0 -0
index 9569d0a236ae57304fa814e04dcbe9254fe0fa69..fceafc922cc2118d8ead2a6f7faf241df0ea0d00 100644
GIT binary patch
rtlwifi/rtl8192cufw_B.bin binary +0 -0
index 96089c4c9e6e5a95d06ed6e5a93bf9a4478e156d..06569e7f60cd573936546b28f2530f4ccfe68161 100644
GIT binary patch
rtlwifi/rtl8192cufw_TMSC.bin binary +0 -0
index d1b84d4886d1864e7ada9ff175a1850d32061158..ec0a0d3e544af69e452f5d1054157b493ac847e3 100644
GIT binary patch
Signature · 1 line
2.27.0
#1 lore raw

Applied and pushed out.

josh

Quoted 1,157 lines · Reto Schneider

The vendor driver rtl8188C_8192C_usb_linux_v4.0.1_6911.20130308 includes new firmware files. These were extracted from data statements in that driver to form these files.

Before this update, with version 80 of the firmware, the USB interface of the RTL8192CU WLAN controller often locked itself up:
usb 1-2: device descriptor read/64, error -110
usb 1-2: device not accepting address 4, error -110
usb 1-2: device not accepting address 5, error -110
usb usb1-port2: unable to enumerate USB device
usb 2-2: device descriptor read/64, error -110
usb 2-2: device descriptor read/64, error -110

On ARMv5 based GARDENA smart gateways running Linux 4.19.78, this can be reliably reproduced by rebooting (warm) the gateway multiple times (max. 50 attempts needed).
Unlike users having this issues on a USB Wi-Fi dongle, resetting of the chip by replugging is not an option on this gateway due to the lack of any power cut functionality. Therefore, a (cold) reboot of the whole gateway is needed.

Updating the firmware of the RTL8192CU WLAN controller from version v80.0 to v88.2 (as per output of rtl8xxxu) resolves this issue. The problem did no show up anymore for 1000 restarts.

Please note:
- Only rtl8192cufw_TMSC.bin tested (mainly on rtl8xxxu)
- rtl8192cu seems to work as well as before, but I can not rule out that this new firmware version brings unwanted changes. The Realtek drivers containing v88.2 of the firmware (v4.0.1_6911.20130308 to v4.0.9_25039.20171107) have some changes compared to the version v3.4.2_3727.20120404, for which I do not know if those should be reflected in rtl8192cu.

Unrelated of the initially described USB problem, another issue still remains after updating the firmware: Using the rtl8192cu driver, scanning for available SSIDs yields no more results after a few hundred scans (iw wlan0 scan). rtl8xxxu does not suffer from this problem.

---
Changes in v3:
- Merge patch and cover letter
- Add new tags

 WHENCE                       |   6 ++++++
 rtlwifi/rtl8192cufw_A.bin    | Bin 16116 -> 16126 bytes
 rtlwifi/rtl8192cufw_B.bin    | Bin 16096 -> 16096 bytes
 rtlwifi/rtl8192cufw_TMSC.bin | Bin 16116 -> 16126 bytes
 4 files changed, 6 insertions(+)
WHENCE +6 -0
index 6265e03..ccacf4d 100644
@@ -2744,6 +2744,12 @@ File: rtlwifi/rtl8192cufw.bin
 File: rtlwifi/rtl8192cufw_A.bin
 File: rtlwifi/rtl8192cufw_B.bin
 File: rtlwifi/rtl8192cufw_TMSC.bin
+Info: From Vendor's rtl8188C_8192C_usb_linux_v4.0.1_6911.20130308 driver
+      All files extracted from driver/hal/rtl8192c/usb/Hal8192CUHWImg.c
+      Relevant variables (CONFIG_BT_COEXISTENCE not set):
+        - rtlwifi/rtl8192cufw_A.bin: Rtl8192CUFwUMCACutImgArray
+        - rtlwifi/rtl8192cufw_B.bin: Rtl8192CUFwUMCBCutImgArray
+        - rtlwifi/rtl8192cufw_TMSC.bin: Rtl8192CUFwTSMCImgArray
 
 Licence: Redistributable. See LICENCE.rtlwifi_firmware.txt for details.
 
rtlwifi/rtl8192cufw_A.bin binary +0 -0
index 9569d0a236ae57304fa814e04dcbe9254fe0fa69..fceafc922cc2118d8ead2a6f7faf241df0ea0d00 100644
GIT binary patch
rtlwifi/rtl8192cufw_B.bin binary +0 -0
index 96089c4c9e6e5a95d06ed6e5a93bf9a4478e156d..06569e7f60cd573936546b28f2530f4ccfe68161 100644
GIT binary patch
rtlwifi/rtl8192cufw_TMSC.bin binary +0 -1
index d1b84d4886d1864e7ada9ff175a1850d32061158..ec0a0d3e544af69e452f5d1054157b493ac847e3 100644
GIT binary patch
 
--

2.27.0