From nobody Tue Oct 10 11:18:12 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S4YL20CVnz4wbr2 for ; Tue, 10 Oct 2023 11:18:18 +0000 (UTC) (envelope-from garyj@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4YL13Vg6z3Y29 for ; Tue, 10 Oct 2023 11:18:17 +0000 (UTC) (envelope-from garyj@gmx.de) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1696936693; x=1697541493; i=garyj@gmx.de; bh=gigj/7WG7ey8MDcJILYmS0g63AQm4ujzA3R11PDviP8=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References:Reply-To; b=pu9+H20sY+rFzCnjm9pHQeH3tUj5n+DICsibKgSvNKBGNHHB/4Ms3zB6rhCQGxRNXRzaSUmUdPp xMeZtVX+G3lMtUF09Pwqp5UxGB5X+tXt/CFnXBZi2acD0qkznqgzPAdS/fubTLkG6Uh5nIv39ILD1 FZ0OSHimdEJtmCigD/T3MnafU5fHAjskgrdLuV9rs0hg5uENDy9RA7JBbQnunmGXH2MhvLq63zLdj 2LLFhHrJa0mmD72kQr7GqAYSeCvhW1t2bTrzUYmWaHejQE8z3vG5Kd2rlSBB2z+9VdL47XsUh+nZ9 unsA+Gj34r5HiMaave3K4LE/shGhQYSRYXBg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from ernst.home ([217.226.57.134]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MnJhO-1rFZrs3Zwa-00jLnL; Tue, 10 Oct 2023 13:18:12 +0200 Date: Tue, 10 Oct 2023 11:18:12 +0000 From: Gary Jennejohn To: Miroslav Lachman <000.fbsd@quip.cz> Cc: "freebsd-hackers@freebsd.org" Subject: Re: driver support for USB WiFi RTL8188GU Message-ID: <20231010131812.63ace6a7@ernst.home> In-Reply-To: References: <20231010100005.6735e50f@ernst.home> <25d9095c-06e8-8490-012c-589ce2fd918d@quip.cz> Reply-To: garyj@gmx.de X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:82MG6zAPKMgnzThS/oSosxYfUf6VIdBhuPMLcLfOrNr1xHJnff2 QdpEiFuP+cYJ2JXjWaQV8WEcSB/qzvt5Q9QYzPxAerobXpOKc7lQC/YMtC8ucqRrxLNQRaY IFoehb+PevczcB3n8QL2VgnCZT1NP3lyuaLM5qy51jdlrR5I1nsq6Xle9xypQni8znCeCww PwWv5Lv6Xihxo6SxwpnAQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:9upJ+26xnJw=;zE2ylZjPBX0WUVphIZQ7fgOkkii xfpLYp3AktDuYvdlnxPW1Q0JP/JAhrGVzuOumWTYTL7bxWcbNsV8RABwbhVHb0DZQn6bl0mIJ gJoQ7aVRjoSC1mPUIcoDFv4nY95z/wPSOF7xz7UA2kMpGGGK8WfgzLq4y/6w7UTfKe4szkvE5 us6N4EfsqJBFEVcGGlV+Atse/RXl+nfwSwuyKDvuZdo70bBRdrY3c8lOiS5N4v0md7q7LzsGz +BwIOTQ2URiP+8uLorlxxiL3D2kMZ6rq/abMJRyhwO6npFVjt+rjxEwM+s1nK/7qPDH2G/Ftx rFJJy6pq/EeGbd5rqeLdC6Zogb527E67lLl2CUFQdtWx23XaSvRjyZVTZFzj51JypiKB7QxK1 qa9LQAFsM4ophRVrb27ke/HYq64o33Z1PPMn0QOv5exmqUspg/ZTbwS1wCi7Sg9MvEar+c471 ovgP8bYhxdwieQ/3Ee8yFAUkVQNKQaGamm4PKpldftHXBGlW8rnXLfFrPYZ+IaWoQ1fR8OxHd NWwcBWSM+w8jyhuUouDz0Na+pruNwdlbMh1Nm8hp9Fgg1JacKhK8KPERPWkVFh+ydnjgm8bof KjMA0of/fROQFMqlu2/BWRH6Y27Q8i2MogtkAHB8QCUkEnaPG+E3eTtRa2GCwdI0n1kFIPJdE Cd34nZMl77i5sH6pgr7s3CcpW0FcYsb1CqV10kRSwsrmmZOTiWZp36RD6jbQnDfYvNy4ZBA58 Vho1451Ce0BBBipcIFxhlGF7BlasTvih8WjKwop2sJ08v7Zyof0XDaguZTbeVXCFFzTYgPpWE s4czRPmrrCTp4NI/hp8ZInGWSOpr+Un9gEYmmrOYXitv62/icEWKpgsk2/tsLi73C+QvFWaYu X8eUPsS1roE/6fErI1By2wCdHAav5vmRdEbr61TaiEz8qdxNE0YZLqmpwodSyslqZu+yIms/C gOgc9KFNpYZGT06o83fvsglhazo= X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Queue-Id: 4S4YL13Vg6z3Y29 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: 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: 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: 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: at usbus1, cfg=3D0 md=3DHOST > spd=3DHIGH (480Mbps) pwr=3DON (500mA) > > bLength =3D 0x0012 > bDescriptorType =3D 0x0001 > bcdUSB =3D 0x0200 > bDeviceClass =3D 0x0000 > bDeviceSubClass =3D 0x0000 > bDeviceProtocol =3D 0x0000 > bMaxPacketSize0 =3D 0x0040 > idVendor =3D 0x0bda > idProduct =3D 0xb711 > bcdDevice =3D 0x0200 > iManufacturer =3D 0x0001 > 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