From nobody Tue Oct 10 09:18:57 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 4S4VhN60TRz4wRw0 for ; Tue, 10 Oct 2023 09:19:00 +0000 (UTC) (envelope-from SRS0=Sipt=FY=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4S4VhN52Kzz3L94; Tue, 10 Oct 2023 09:19:00 +0000 (UTC) (envelope-from SRS0=Sipt=FY=quip.cz=000.fbsd@elsa.codelab.cz) Authentication-Results: mx1.freebsd.org; none Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 647EBD78DF; Tue, 10 Oct 2023 11:18:59 +0200 (CEST) Received: from [192.168.145.49] (ip-89-177-27-225.bb.vodafone.cz [89.177.27.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 26F2FD788B; Tue, 10 Oct 2023 11:18:58 +0200 (CEST) Message-ID: Date: Tue, 10 Oct 2023 11:18:57 +0200 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: driver support for USB WiFi RTL8188GU Content-Language: cs-Cestina To: Juraj Lutter Cc: garyj@gmx.de, "freebsd-hackers@freebsd.org" References: <20231010100005.6735e50f@ernst.home> <25d9095c-06e8-8490-012c-589ce2fd918d@quip.cz> From: Miroslav Lachman <000.fbsd@quip.cz> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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:42000, ipnet:94.124.104.0/21, country:CZ] X-Rspamd-Queue-Id: 4S4VhN52Kzz3L94 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=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. > > 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 switch 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 (disconnected) Oct 10 11:04:21 xxx kernel: umass0: at uhub3, port 3, addr 4 (disconnected) 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: detached 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=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 = 0xb711 bcdDevice = 0x0200 iManufacturer = 0x0001 iProduct = 0x0002 <802.11n WLAN Adapter> iSerialNumber = 0x0003 <00E04CB82101> bNumConfigurations = 0x0001 1) is this idProduct = 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 luck) Kind regards Miroslav Lachman