Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Oct 2023 10:45:26 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        garyj@gmx.de
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: driver support for USB WiFi RTL8188GU
Message-ID:  <25d9095c-06e8-8490-012c-589ce2fd918d@quip.cz>
In-Reply-To: <20231010100005.6735e50f@ernst.home>
References:  <bcd0faf2-40c1-3f4a-ddd4-a975eb4944ce@quip.cz> <20231010100005.6735e50f@ernst.home>

next in thread | previous in thread | raw e-mail | index | archive | help

On 10/10/2023 10:00, Gary Jennejohn wrote:
> On Mon, 9 Oct 2023 19:31:18 +0200
> Miroslav Lachman <000.fbsd@quip.cz> wrote:
> 
>> Hi,
>> I accidentally bought the wrong USB WiFi Realtek RTL8188GU. I thought it
>> would have support in rtwn or rsu, since both drivers mention the number
>> 8188, but I didn't notice that my purchased WiFi dongle has different
>> letters at the end.
>> Is it possible that the RTL8188GU would work with one of those drivers
>> after some addition of identification, or is it a completely different
>> chip and not possible to get it to work in FreeBSD?
>>
>> Identification of the USB WiFI dongle:
>>
>> # usbconfig -d ugen1.4 dump_device_desc
>> ugen1.4: <Realtek DISK> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps)
>> pwr=ON (500mA)
>>
>>     bLength = 0x0012
>>     bDescriptorType = 0x0001
>>     bcdUSB = 0x0200
>>     bDeviceClass = 0x0000  <Probed by interface class>
>>     bDeviceSubClass = 0x0000
>>     bDeviceProtocol = 0x0000
>>     bMaxPacketSize0 = 0x0040
>>     idVendor = 0x0bda
>>     idProduct = 0x1a2b
>>     bcdDevice = 0x0200
>>     iManufacturer = 0x0001  <Realtek>
>>     iProduct = 0x0002  <DISK>
>>     iSerialNumber = 0x0000  <no string>
>>     bNumConfigurations = 0x0001

> 
> In current (FreeBSD-15) it's in usbdevs as:
> 
> product REALTEK RTW8821CU_CD    0x1a2b  RTW8821CU_CD
> 
> You could try adding that to /usr/src/sys/dev/usb/usbdevs and then re-build
> your kernel and modules and test whether it's recognized.

Thank you for the hint, but it seems it is already in 13.2.
https://cgit.freebsd.org/src/commit/sys/dev/usb/usbdevs?h=releng/13.2&id=226fef966a1f234d871c199af77ca411f87d2389

It looks like idProduct = 0x1a2b is just the fake CD-ROM drive. Should I 
found some different id and add it?
I am sorry for maybe stupid question but this is the first time I play 
with USB WiFi dongle on FreeBSD.

Kind regards
Miroslav Lachman




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25d9095c-06e8-8490-012c-589ce2fd918d>