From owner-freebsd-wireless@freebsd.org Mon Aug 12 07:12:45 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 16E9ECFCE8 for ; Mon, 12 Aug 2019 07:12:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 466RrD6xCDz3QlY for ; Mon, 12 Aug 2019 07:12:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id EE094CFCE6; Mon, 12 Aug 2019 07:12:44 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EDD45CFCE4 for ; Mon, 12 Aug 2019 07:12:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 466RrD62Cvz3QlX for ; Mon, 12 Aug 2019 07:12:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B1C3622F5B for ; Mon, 12 Aug 2019 07:12:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x7C7CiRi069792 for ; Mon, 12 Aug 2019 07:12:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x7C7Ci0d069791 for wireless@FreeBSD.org; Mon, 12 Aug 2019 07:12:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 239795] [patch] rtwn driver does not attach to certain devices. Driver is missing entries for PCI device id's Date: Mon, 12 Aug 2019 07:12:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: james.m.parsons@protonmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2019 07:12:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239795 Bug ID: 239795 Summary: [patch] rtwn driver does not attach to certain devices. Driver is missing entries for PCI device id's Product: Base System Version: CURRENT Hardware: amd64 OS: Any Status: New Keywords: patch Severity: Affects Some People Priority: --- Component: wireless Assignee: wireless@FreeBSD.org Reporter: james.m.parsons@protonmail.com Created attachment 206466 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D206466&action= =3Dedit Patch containing solution On a new installation of FreeBSD (I've tried it on both FreeBSD 12.0-RELEASE and On FreeBSD 13.0-CURRENT, certain wireless adapters based on the RTL8192= CE chipset are not recognized by the rtwn driver. In my particular instance, t= he card was an ASUS PCE-N15 wireless adapter. Running pciconv -lv shows that t= he vendor information was correct, but that there is no driver attached e.g.=20 none1@pci0:29:0:0: class=3D0x028000 card=3D0x85e31043 chip=3D0x817810e= c rev=3D0x01 hdr=3D0x00 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL8192CE PCIe Wireless Network Adapter' looking at the kernel source under sys/dev/rtwn/pci/rtwn_pci_attach.h, I can see that there is an array containing a list of vendor / device id's. Not included in said array is the PCI device id for my particular card (0x8178). After adding an entry with the device id (see attached patch), building / installing a kernel and rebooting, the card is recognized and the rtwn driv= er attaches. Furthermore I configured the interface and the driver does work as expected otherwise. rtwn0@pci0:29:0:0: class=3D0x028000 card=3D0x85e31043 chip=3D0x817810e= c rev=3D0x01 hdr=3D0x00 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL8192CE PCIe Wireless Network Adapter' There may or may not be other cards who's device id's may need separate entries, but as I haven't encountered the hardware, my attached patch only contains the entry for a device id I have confirmed does not work. --=20 You are receiving this mail because: You are the assignee for the bug.=