On Fri, Nov 13, 2020 at 03:44:27PM -0500, Morgan Aldridge wrote: > On Thu, Nov 12, 2020 at 11:01 PM Jonathan Matthew <jonat...@d14n.org> wrote: > > > > On Thu, Nov 12, 2020 at 03:31:09PM -0500, Morgan Aldridge wrote: > > > >Synopsis: Edimax EW-7811Un V2 not detected by urtwn > > > >Category: kernel amd64 > > > >Environment: > > > System : OpenBSD 6.8 > > > Details : OpenBSD 6.8 (GENERIC.MP) #0: Wed Oct 28 10:06:34 > > > MDT 2020 > > > > > > r...@syspatch-67-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > > > > > Architecture: OpenBSD.amd64 > > > Machine : amd64 > > > >Description: > > > I purchased an Edimax EW-7811Un USB WiFi adapter after a number of > > > suggestions that it is commonly supported by urtwn(4) on OpenBSD, > > > but > > > they seem to be shipping new V2 model which is still identified as > > > Realtek, but has a new device ID of 0xb811 (instead of 0x7811). > > > > > > dmesg shows: > > > > > > ugen2 at uhub1 port 2 "Realtek Edimax N150 Adapter" rev 2.00/0.00 > > > addr 2 > > > > > > usbdevs shows: > > > > > > addr 02: 7392:b811 Realtek, Edimax N150 Adapter > > > high speed, power 500 mA, config 1, rev 0.00, iSerial > > > 08BEAC0EEAA1 > > > driver: ugen2 > > > > > > fw_update does not fetch the urtwn firmware. > > > > > > I'm not 100% sure that this is still using the same chipset, but > > > it > > > seems like it's at least still using a Realtek chipset, and am > > > happy to provide further details or even send the device to a > > > developer. I'm tempted to just add the new device ID to usbdevs > > > and > > > if_urtwn.c and see if it works, but I don't know what the risks > > > are. > > > >How-To-Repeat: > > > Plug Edimax EW-7811Un V2 to USB port, run fw_update, dmesg, and > > > usbdevs. > > > >Fix: > > > Maybe we can just add the new device ID to usbdevs & if_urtwn.c, > > > but > > > I'm not sure. > > > > It looks like this device is RTL8188EU based (not RTL8188CU like the > > 7811Un), since > > the linux driver they offer for download is called rtl8188EUS, so you'd add > > > > URTWN_DEV_8188EU(EDIMAX, EW7811UNV2) > > > > to the urtwn device list. > > Thanks for the tip! I have confirmed that from the Linux drivers and > the following diff works for me on GENERIC.MP amd64:
Great, I've committed that now. Just a note, we keep the devices in usbdevs sorted by device id, so I moved the new entry down two lines.