1 From 1209f487d452ff7e822dec30661fd6b5163fb8cf Mon Sep 17 00:00:00 2001
2 From: Chun Qiu <cqca@cock.lu>
3 Date: Mon, 29 Jan 2024 13:30:30 +0800
4 Subject: [PATCH] wifi: rtl8xxxu: Add TP-Link TL-WN823N V2
6 TP-Link TL-WN823N V2 (2357:0135) is based on rtl8192fu and has been
7 tested to work with the rtl8xxxu driver.
9 Signed-off-by: Chun Qiu <cqca@cock.lu>
10 Signed-off-by: Kalle Valo <kvalo@kernel.org>
11 Link: https://msgid.link/20240129053030.16369-1-cqca@cock.lu
13 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 5 ++++-
14 1 file changed, 4 insertions(+), 1 deletion(-)
16 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
17 +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c
18 @@ -7733,7 +7733,7 @@ static int rtl8xxxu_probe(struct usb_int
22 - if (id->idProduct == 0x0109)
23 + if (id->idProduct == 0x0109 || id->idProduct == 0x0135)
27 @@ -8025,6 +8025,9 @@ static const struct usb_device_id dev_ta
28 .driver_info = (unsigned long)&rtl8192fu_fops},
29 {USB_DEVICE_AND_INTERFACE_INFO(USB_VENDOR_ID_REALTEK, 0x318b, 0xff, 0xff, 0xff),
30 .driver_info = (unsigned long)&rtl8192fu_fops},
31 +/* TP-Link TL-WN823N V2 */
32 +{USB_DEVICE_AND_INTERFACE_INFO(0x2357, 0x0135, 0xff, 0xff, 0xff),
33 + .driver_info = (unsigned long)&rtl8192fu_fops},
34 #ifdef CPTCFG_RTL8XXXU_UNTESTED
35 /* Still supported by rtlwifi */
36 {USB_DEVICE_AND_INTERFACE_INFO(USB_VENDOR_ID_REALTEK, 0x8176, 0xff, 0xff, 0xff),