git: 99e934e6f152 - stable/13 - rtwn/usb: add product ID for Asus USB N10 Nano Rev. B1

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Mon, 13 Dec 2021 06:36:22 UTC
The branch stable/13 has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=99e934e6f152eefa47bfae62db2ee0b439f137c0

commit 99e934e6f152eefa47bfae62db2ee0b439f137c0
Author:     Andreas Wetzel <mickey242@gmx.net>
AuthorDate: 2021-12-06 07:21:38 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2021-12-13 06:35:49 +0000

    rtwn/usb: add product ID for Asus USB N10 Nano Rev. B1
    
    According to information found on the internet the following products
    use exactly the same hardware but probably different USB IDs:
    - Edimax EW-7811Un V2 (v2)
    - Edimax EW-7811GLN 2.0A (v2)
    I am not adding them as I cannot verify.
    
    PR:             254280
    
    (cherry picked from commit cd6f0b47692cb004b1e52a28cbd853f251b99c93)
---
 share/man/man4/rtwn_usb.4          | 1 +
 sys/dev/rtwn/usb/rtwn_usb_attach.h | 1 +
 sys/dev/usb/usbdevs                | 1 +
 3 files changed, 3 insertions(+)

diff --git a/share/man/man4/rtwn_usb.4 b/share/man/man4/rtwn_usb.4
index 86c4c02aafa9..50673d4aa225 100644
--- a/share/man/man4/rtwn_usb.4
+++ b/share/man/man4/rtwn_usb.4
@@ -65,6 +65,7 @@ based USB wireless network adapters, including:
 .It "Alfa AWUS036NHR v2" Ta RTL8188RU Ta USB 2.0
 .It "ASUS USB-AC56" Ta RTL8812AU Ta USB 3.0
 .It "ASUS USB-N10 NANO" Ta RTL8188CUS Ta USB 2.0
+.It "ASUS USB-N10 NANO rev B1" Ta RTL8188EUS Ta USB 2.0
 .It "Asus USB-N13, rev. B1" Ta RTL8192CU Ta USB 2.0
 .It "Belkin F7D1102 Surf Wireless Micro" Ta RTL8188CUS Ta USB 2.0
 .It "Buffalo WI-U2-433DHP" Ta RTL8821AU Ta USB 2.0
diff --git a/sys/dev/rtwn/usb/rtwn_usb_attach.h b/sys/dev/rtwn/usb/rtwn_usb_attach.h
index c7a0f1ce1576..35713246dfb6 100644
--- a/sys/dev/rtwn/usb/rtwn_usb_attach.h
+++ b/sys/dev/rtwn/usb/rtwn_usb_attach.h
@@ -117,6 +117,7 @@ static const STRUCT_USB_HOST_ID rtwn_devs[] = {
 #define RTWN_RTL8188EU_DEV(v,p) \
 	{ USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8188EU) }
 	RTWN_RTL8188EU_DEV(ABOCOM,		RTL8188EU),
+	RTWN_RTL8188EU_DEV(ASUS,		USBN10NANOB1),
 	RTWN_RTL8188EU_DEV(DLINK,		DWA123D1),
 	RTWN_RTL8188EU_DEV(DLINK,		DWA125D1),
 	RTWN_RTL8188EU_DEV(ELECOM,		WDC150SU2M),
diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs
index 383849f5a01d..865df5c656fc 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -1267,6 +1267,7 @@ product ASUS USBN10NANO		0x17ba	USB-N10 Nano
 product ASUS USBAC51		0x17d1	USB-AC51
 product ASUS USBAC56		0x17d2	USB-AC56
 product ASUS USBN14		0x17e8	USB-N14
+product ASUS USBN10NANOB1	0x18f0	USB-N10 Nano rev B1
 product ASUS A730W		0x4202	ASUS MyPal A730W
 product ASUS P535		0x420f	ASUS P535 PDA
 product ASUS GMSC		0x422f	ASUS Generic Mass Storage