Skip to content

Commit 9bb561c

Browse files
author
root
committed
Add USB ID 0bda:0179 patch for BPI-R1 onboard RTL8189ETV WiFi
The BPI-R1's soldered WiFi module presents as USB ID 0bda:0179 which is missing from the rtlwifi/rtl8192cu USB ID table. Add a kernel patch to register this device ID so the driver claims it automatically.
1 parent 9b70e33 commit 9bb561c

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

cmd/gokr-rebuild-kernel/kernel.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ var dockerFileTmpl = template.Must(template.New("dockerfile").
4444
}).
4545
Parse(dockerFileContents))
4646

47-
var patchFiles []string
47+
var patchFiles = []string{
48+
"rtl8192cu-usb-id-0179.patch",
49+
}
4850

4951
func copyFile(dest, src string) error {
5052
out, err := os.Create(dest)
Binary file not shown.

rtl8192cu-usb-id-0179.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Add USB ID 0bda:0179 (RTL8189ETV/RTL8192CU variant) to rtlwifi/rtl8192cu
2+
3+
The Banana Pi BPI-R1 has a soldered RTL8189ETV WiFi module that
4+
presents as USB ID 0bda:0179. This chip is a 2T2R RTL8192CU variant
5+
but its device ID is missing from the upstream USB ID table.
6+
7+
The rtl8xxxu driver detects this chip but cannot forward data frames
8+
in AP mode, making DHCP and all client traffic non-functional.
9+
The rtlwifi/rtl8192cu driver has proper AP mode support.
10+
11+
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/sw.c
12+
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/sw.c
13+
@@ -285,6 +285,8 @@
14+
{RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x8178, rtl92cu_hal_cfg)},
15+
/* 8192CE-VAU USB minCard */
16+
{RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x817c, rtl92cu_hal_cfg)},
17+
+ /* RTL8189ETV (BPI-R1 onboard WiFi) */
18+
+ {RTL_USB_DEVICE(USB_VENDOR_ID_REALTEK, 0x0179, rtl92cu_hal_cfg)},
19+
20+
/*=== Customer ID ===*/
21+
/****** 8188CU ********/

0 commit comments

Comments
 (0)