Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Oct 2023 11:18:12 +0000
From:      Gary Jennejohn <garyj@gmx.de>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Re: driver support for USB WiFi RTL8188GU
Message-ID:  <20231010131812.63ace6a7@ernst.home>
In-Reply-To: <f51caa6b-e735-4777-46a8-4bd4834be564@quip.cz>
References:  <bcd0faf2-40c1-3f4a-ddd4-a975eb4944ce@quip.cz> <20231010100005.6735e50f@ernst.home> <25d9095c-06e8-8490-012c-589ce2fd918d@quip.cz> <D03DD6B8-3C0A-4E3E-8F83-537AE945994A@FreeBSD.org> <f51caa6b-e735-4777-46a8-4bd4834be564@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 10 Oct 2023 11:18:57 +0200
Miroslav Lachman <000.fbsd@quip.cz> wrote:

> On 10/10/2023 10:49, Juraj Lutter wrote:
> >
> >
> >> On 10 Oct 2023, at 10:45, Miroslav Lachman <000.fbsd@quip.cz> wrote:
> >>
> >> 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=3Dreleng/13=
.2&id=3D226fef966a1f234d871c199af77ca411f87d2389
> >>
> >> It looks like idProduct =3D 0x1a2b is just the fake CD-ROM drive. Sho=
uld I found some different id and add it?
> >> I am sorry for maybe stupid question but this is the first time I pla=
y with USB WiFi dongle on FreeBSD.
> >
> > These dongles often starts in ?mass storage mode? where you can find (=
mostly) Windows drivers on it.
> > Once you do ?eject? on the ?mass storage device?, the dongle should sw=
itch into ?Wireless NIC? mode.
>
> Thank yoy, that get me further.
>
> # eject -v /dev/cd0
> eject: trying device /dev//dev/cd0c
> eject: trying device /dev//dev/cd0
> eject: trying device /dev/cd0
> eject: ejecting media from /dev/cd0
>
> # tail -f /var/log/messages
> Oct 10 11:04:21 xxx kernel: ugen1.4: <Realtek DISK> at usbus1 (disconnec=
ted)
> Oct 10 11:04:21 xxx kernel: umass0: at uhub3, port 3, addr 4 (disconnect=
ed)
> Oct 10 11:04:21 xxx kernel: cd0 at umass-sim0 bus 0 scbus4 target 0 lun =
0
> Oct 10 11:04:21 xxx kernel: cd0: <Realtek USB Disk autorun 1.00>  detach=
ed
> Oct 10 11:04:21 xxx kernel: (cd0:umass-sim0:0:0:0): Periph destroyed
> Oct 10 11:04:21 xxx kernel: umass0: detached
> Oct 10 11:04:21 xxx kernel: ugen1.4: <Realtek 802.11n WLAN Adapter> at
> usbus1
> Oct 10 11:04:21 xxx webcamd[61945]: webcamd: Cannot find USB device
>
> But no wlan device detected
>
> # sysctl net.wlan.devices
> net.wlan.devices:
>
> # usbconfig -d ugen1.4 dump_device_desc
>
> ugen1.4: <Realtek 802.11n WLAN Adapter> at usbus1, cfg=3D0 md=3DHOST
> spd=3DHIGH (480Mbps) pwr=3DON (500mA)
>
>    bLength =3D 0x0012
>    bDescriptorType =3D 0x0001
>    bcdUSB =3D 0x0200
>    bDeviceClass =3D 0x0000  <Probed by interface class>
>    bDeviceSubClass =3D 0x0000
>    bDeviceProtocol =3D 0x0000
>    bMaxPacketSize0 =3D 0x0040
>    idVendor =3D 0x0bda
>    idProduct =3D 0xb711
>    bcdDevice =3D 0x0200
>    iManufacturer =3D 0x0001  <Realtek>
>    iProduct =3D 0x0002  <802.11n WLAN Adapter>
>    iSerialNumber =3D 0x0003  <00E04CB82101>
>    bNumConfigurations =3D 0x0001
>
>
> 1) is this idProduct =3D 0xb711 the ID I should try to add somewhere?
> 2) is there a way to avoid manual eject every time I try to use this
> dongle? (I tried usbconfig -d ugen1.4 add_quirk UQ_MSC_IGNORE with no lu=
ck)
>

1) could be worth a try, since the CD and WLAN functions have unique
   idProduct values.
2) I must admit that I have no idea how to do this.

=2D-
Gary Jennejohn



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20231010131812.63ace6a7>