rtwn driver not recognize USB WIFI Card Foxconn WFUR6, RTL8812AU-VS 2.4GHz+5GHz ( http://en.techinfodepot.shoutwiki.com/wiki/Foxconn_WFUR6 ) root@test# sysctl net.wlan.devices net.wlan.devices: Both of FreeBSD 12.1 and 13. root@test# usbconfig -u 0 -a 4 dump_all_desc ugen0.4: <Realtek 802.11n NIC> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0bda idProduct = 0x881a bcdDevice = 0x0000 iManufacturer = 0x0001 iProduct = 0x0002 <802.11n NIC> iSerialNumber = 0x0003 <123456> bNumConfigurations = 0x0001 All works fine after change in usbdevs: REALTEK idProduct 0x8812 to 0x881a.
Created attachment 214293 [details] add new USB device ID for Realtek 8812AU
Maybe like this: https://github.com/bdrewery/freebsd/commit/49e7410c95df00894c277b9f5da0bc6a282f34a9
So, yes, it won't be hard for you to submit the complete diff.
Created attachment 214295 [details] add new USB device ID for Realtek 8812AU
Thanks a lot, everything works! Any chance to see these changes in the next release?
(In reply to bobb from comment #5) No idea. I created the diff, which are 'just' additions, in my spare time. For future reference: when you run 'make -C /path/to/freebsd/source/sys/modules/rtwn_usb', it will check for correctness. When no problems are found, the resulting .ko is created (deep) inside the /usr/obj/ directory.
A commit references this bug: Author: markj Date: Sat May 9 14:49:57 UTC 2020 New revision: 360848 URL: https://svnweb.freebsd.org/changeset/base/360848 Log: rtwn: Add a new USB ID. PR: 246315 Submitted by: Idwer Vollering <vidwer+fbsdbugs@gmail.com> MFC after: 1 week Changes: head/share/man/man4/rtwn_usb.4 head/sys/dev/rtwn/usb/rtwn_usb_attach.h head/sys/dev/usb/usbdevs
It works well. Thanks a lot!
A commit references this bug: Author: markj Date: Sat May 16 00:28:50 UTC 2020 New revision: 361096 URL: https://svnweb.freebsd.org/changeset/base/361096 Log: MFC r360848: rtwn: Add a new USB ID. PR: 246315 Changes: _U stable/12/ stable/12/share/man/man4/rtwn_usb.4 stable/12/sys/dev/rtwn/usb/rtwn_usb_attach.h stable/12/sys/dev/usb/usbdevs