Bug 246315 - The rtwn driver fails to recognize USB WIFI Card Foxconn WFUR6
Summary: The rtwn driver fails to recognize USB WIFI Card Foxconn WFUR6
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 12.1-RELEASE
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-wireless (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-08 19:59 UTC by abob
Modified: 2020-05-16 00:30 UTC (History)
3 users (show)

See Also:


Attachments
add new USB device ID for Realtek 8812AU (501 bytes, patch)
2020-05-08 21:10 UTC, vidwer+fbsdbugs
no flags Details | Diff
add new USB device ID for Realtek 8812AU (1.91 KB, patch)
2020-05-08 23:04 UTC, vidwer+fbsdbugs
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description abob 2020-05-08 19:59:16 UTC
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.
Comment 1 vidwer+fbsdbugs 2020-05-08 21:10:27 UTC
Created attachment 214293 [details]
add new USB device ID for Realtek 8812AU
Comment 3 vidwer+fbsdbugs 2020-05-08 22:05:19 UTC
So, yes, it won't be hard for you to submit the complete diff.
Comment 4 vidwer+fbsdbugs 2020-05-08 23:04:06 UTC
Created attachment 214295 [details]
add new USB device ID for Realtek 8812AU
Comment 5 abob 2020-05-08 23:21:50 UTC
Thanks a lot, everything works!
Any chance to see these changes in the next release?
Comment 6 vidwer+fbsdbugs 2020-05-09 12:13:51 UTC
(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.
Comment 7 commit-hook freebsd_committer freebsd_triage 2020-05-09 14:50:39 UTC
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
Comment 8 abob 2020-05-10 08:11:04 UTC
It works well. Thanks a lot!
Comment 9 commit-hook freebsd_committer freebsd_triage 2020-05-16 00:28:58 UTC
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