2024-01-29 05:38:18

by Chun Qiu

[permalink] [raw]
Subject: [PATCH] wifi: rtl8xxxu: Add TP-Link TL-WN823N V2 to the USB ID list

TP-Link TL-WN823N V2 (2357:0135) is based on rtl8192fu and has been
tested to work with the rtl8xxxu driver.

Signed-off-by: Chun Qiu <[email protected]>
---
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
index 180907319e8c..ea099a90b1a4 100644
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
@@ -7522,7 +7522,7 @@ static int rtl8xxxu_probe(struct usb_interface *interface,
untested = 0;
break;
case 0x2357:
- if (id->idProduct == 0x0109)
+ if (id->idProduct == 0x0109 || id->idProduct == 0x0135)
untested = 0;
break;
case 0x0b05:
@@ -7806,6 +7806,9 @@ static const struct usb_device_id dev_table[] = {
.driver_info = (unsigned long)&rtl8192fu_fops},
{USB_DEVICE_AND_INTERFACE_INFO(USB_VENDOR_ID_REALTEK, 0x318b, 0xff, 0xff, 0xff),
.driver_info = (unsigned long)&rtl8192fu_fops},
+/* TP-Link TL-WN823N V2 */
+{USB_DEVICE_AND_INTERFACE_INFO(0x2357, 0x0135, 0xff, 0xff, 0xff),
+ .driver_info = (unsigned long)&rtl8192fu_fops},
#ifdef CONFIG_RTL8XXXU_UNTESTED
/* Still supported by rtlwifi */
{USB_DEVICE_AND_INTERFACE_INFO(USB_VENDOR_ID_REALTEK, 0x8176, 0xff, 0xff, 0xff),
--
2.43.0



2024-01-31 15:59:05

by Bitterblue Smith

[permalink] [raw]
Subject: Re: [PATCH] wifi: rtl8xxxu: Add TP-Link TL-WN823N V2 to the USB ID list

On 29/01/2024 07:30, Chun Qiu wrote:
> TP-Link TL-WN823N V2 (2357:0135) is based on rtl8192fu and has been
> tested to work with the rtl8xxxu driver.
>

Nice, thanks. Just out of curiosity, does the LED blink?
And do you know what RFE type it has? It's in byte 0xca in the
efuse dump.

2024-02-02 08:33:10

by Chun Qiu

[permalink] [raw]
Subject: Re: [PATCH] wifi: rtl8xxxu: Add TP-Link TL-WN823N V2 to the USB ID list

On 2024/1/31 23:37, Bitterblue Smith wrote:
> On 29/01/2024 07:30, Chun Qiu wrote:
>> TP-Link TL-WN823N V2 (2357:0135) is based on rtl8192fu and has been
>> tested to work with the rtl8xxxu driver.
>>
> Nice, thanks. Just out of curiosity, does the LED blink?

Yes, the LED blinks during transmission.

> And do you know what RFE type it has? It's in byte 0xca in the
> efuse dump.

The byte 0xca in my efuse dump is 0x05.


2024-02-05 18:21:35

by Kalle Valo

[permalink] [raw]
Subject: Re: wifi: rtl8xxxu: Add TP-Link TL-WN823N V2

Chun Qiu <[email protected]> wrote:

> TP-Link TL-WN823N V2 (2357:0135) is based on rtl8192fu and has been
> tested to work with the rtl8xxxu driver.
>
> Signed-off-by: Chun Qiu <[email protected]>

Patch applied to wireless-next.git, thanks.

1209f487d452 wifi: rtl8xxxu: Add TP-Link TL-WN823N V2

--
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches