git: 7098b90152dd - main - usb: fix the ID for the dual-band Wistron AR5523 USB NIC

From: Adrian Chadd <adrian_at_FreeBSD.org>
Date: Tue, 19 Nov 2024 04:52:53 UTC
The branch main has been updated by adrian:

URL: https://cgit.FreeBSD.org/src/commit/?id=7098b90152dddcaf10c43ff31a8f1f3a952267d5

commit 7098b90152dddcaf10c43ff31a8f1f3a952267d5
Author:     Adrian Chadd <adrian@FreeBSD.org>
AuthorDate: 2024-11-18 05:10:32 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2024-11-19 04:50:24 +0000

    usb: fix the ID for the dual-band Wistron AR5523 USB NIC
    
    Use the correct ID, as I have one of these NICs.
    Add the previous one back in case it's out there in the wild.
    
    @emaste did a bit of a dig into the product numbers.
    @sam did change the ID from 0x0828 -> 082a in a commit
    a long while back. It's worth reading the code review for
    further details.
    
    However, I do have one of these NICs and I verified that
    it indeed has the given ID, and with some follow-up work
    to fix some race conditions, it works fine in 2GHz 11bg
    and 5GHz 11a operation.
    
    Differential Revision:  https://reviews.freebsd.org/D47654
    
    Obtained from:  Linux, drivers/net/wireless/ath/ar5523/ar5523.c
---
 sys/dev/usb/usbdevs        | 3 ++-
 sys/dev/usb/wlan/if_uath.c | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs
index a368cf84d9d5..50968a2c80cf 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -5025,7 +5025,8 @@ product WISTRONNEWEB UR055G	0x0711	UR055G
 product WISTRONNEWEB O8494	0x0804	ORiNOCO 802.11n
 product WISTRONNEWEB AR5523_1	0x0826	AR5523
 product WISTRONNEWEB AR5523_1_NF	0x0827	AR5523 (no firmware)
-product WISTRONNEWEB AR5523_2	0x082a	AR5523
+product WISTRONNEWEB AR5523_2	0x0828	AR5523
+product WISTRONNEWEB AR5523_2_ALT	0x082a	AR5523
 product WISTRONNEWEB AR5523_2_NF	0x0829	AR5523 (no firmware)
 
 /* Xerox products */
diff --git a/sys/dev/usb/wlan/if_uath.c b/sys/dev/usb/wlan/if_uath.c
index e78003bc250a..580022f5a0c5 100644
--- a/sys/dev/usb/wlan/if_uath.c
+++ b/sys/dev/usb/wlan/if_uath.c
@@ -183,6 +183,7 @@ static const STRUCT_USB_HOST_ID uath_devs[] = {
 	UATH_DEV(UMEDIA,		AR5523_2),
 	UATH_DEV(WISTRONNEWEB,		AR5523_1),
 	UATH_DEV(WISTRONNEWEB,		AR5523_2),
+	UATH_DEV(WISTRONNEWEB,		AR5523_2_ALT),
 	UATH_DEV(ZCOM,			AR5523)
 #undef UATH_DEV
 };