From owner-freebsd-wireless@freebsd.org Sun Aug 11 07:34:26 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 4F76CB23F1 for ; Sun, 11 Aug 2019 07:34:26 +0000 (UTC) (envelope-from james.m.parsons@protonmail.com) Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch [185.70.40.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "SwissSign Server Silver CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 465rMj2LlSz4g6V for ; Sun, 11 Aug 2019 07:34:24 +0000 (UTC) (envelope-from james.m.parsons@protonmail.com) Date: Sun, 11 Aug 2019 07:34:18 +0000 To: "freebsd-wireless@freebsd.org" From: "james.m.parsons" Reply-To: "james.m.parsons" Subject: rtwn driver Message-ID: Feedback-ID: nXxbwtwn5pB63TBSnlsi0xKZmD1YhsmmE_NkvIk6LzsX8lhmz3RlS4YnAPSfdBfyBLiyN90ca45ZtT7-eQr7Ig==:Ext:ProtonMail MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Rspamd-Queue-Id: 465rMj2LlSz4g6V X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; HAS_REPLYTO(0.00)[james.m.parsons@protonmail.com]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; FREEMAIL_FROM(0.00)[protonmail.com]; DKIM_TRACE(0.00)[protonmail.com:+]; MIME_BASE64_TEXT(0.10)[]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; NEURAL_HAM_SHORT(-1.00)[-0.995,0]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(0.00)[ip: (-9.85), ipnet: 185.70.40.0/24(-4.90), asn: 19905(-3.92), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[133.40.70.185.list.dnswl.org : 127.0.5.1]; ASN(0.00)[asn:19905, ipnet:185.70.40.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=default]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; HAS_PHPMAILER_SIG(0.00)[]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TO_DN_EQ_ADDR_ALL(0.00)[] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sun, 11 Aug 2019 07:34:26 -0000 R29vZCBtb3JuaW5nLAoKQSBmZXcgd2Vla3MgYWdvLCBJIGluc3RhbGxlZCBGcmVlQlNEIDEyLjAt UkVMRUFTRSBvbiBhIGJveCB0aGF0IGhhZCBhbiBbQXN1cyBQQ0UtTjE1XShodHRwczovL3d3dy5h c3VzLmNvbS91cy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dWxkIC8gY291bGQgYmUgY29udHJpYnV0ZWQgdG8gdGhlIGtlcm5lbCBj b2RlLiBJJ20gYWxzbyBzdXJlLCB0aGVyZSBhcmUgb3RoZXIgZGV2aWNlIGlkJ3MgdGhhdCB3b3Vs ZCBuZWVkIGFkZGVkIHRvIGhhdmUgZnVsbCBzdXBwb3J0LCBidXQgYWZ0ZXIgYXNraW5nIHNvbWUg b3RoZXIgcGVvcGxlLCBJIHdhcyBzdWdnZXN0ZWQgdG8gc2VuZCBhbiBlbWFpbCB0byB0aGlzIGFk ZHJlc3MuCgpUaGFua3MsCkphbWVzIFBhcnNvbnM= From owner-freebsd-wireless@freebsd.org Sun Aug 11 15:58:30 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 AA689BC2F1 for ; Sun, 11 Aug 2019 15:58:30 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4663YK5FhKz454K for ; Sun, 11 Aug 2019 15:58:29 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from e.0x20.net (mail.0x20.net [46.251.251.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3096 bits) server-digest SHA256) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id D43D4BC1A9; Sun, 11 Aug 2019 17:58:19 +0200 (CEST) Received: (from lars@localhost) by e.0x20.net (8.15.2/8.15.2/Submit) id x7BFwJUV051257; Sun, 11 Aug 2019 17:58:19 +0200 (CEST) (envelope-from lars) Date: Sun, 11 Aug 2019 17:58:19 +0200 From: Lars Engels To: waddlesplash Cc: freebsd-wireless@freebsd.org Subject: Re: iwm8265 and 802.11ac or 802.11n Message-ID: <20190811155819.GW98090@e.0x20.net> References: <1565321017.84913.0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 8.0 User-Agent: Mutt/1.12.1 (2019-06-15) X-Rspamd-Queue-Id: 4663YK5FhKz454K X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of lars@e.0x20.net has no SPF policy when checking 46.251.251.56) smtp.mailfrom=lars@e.0x20.net X-Spamd-Result: default: False [-0.93 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.72)[-0.716,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(-0.24)[ip: (-1.05), ipnet: 46.251.251.0/24(-0.53), asn: 31400(0.38), country: DE(-0.01)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[0x20.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.75)[-0.755,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.42)[-0.418,0]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[lars.engels@0x20.net,lars@e.0x20.net]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31400, ipnet:46.251.251.0/24, country:DE]; FROM_NEQ_ENVFROM(0.00)[lars.engels@0x20.net,lars@e.0x20.net]; RCVD_TLS_ALL(0.00)[] 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: Sun, 11 Aug 2019 15:58:30 -0000 On Thu, Aug 08, 2019 at 11:32:04PM -0400, waddlesplash wrote: > On Thu, Aug 8, 2019 at 11:23 PM Andrey Cherkashin wrote: > > > > Hello, > > > > I'm trying to figure out if subj supported or not. Wikis haven't been > > updated in over an year, so I don't know if it's good source of > > information or not. > > 802.11n should be supported by iwm, yes. 802.11ac is definitely not > implemented and I don't think anyone's working on it either. Is there anyting I need to configure? My AC 7265 only connects with 54 Mbit/s to either 2,4 GHz and 5 GHz networks: wlan0: flags=8843 metric 0 mtu 1500 ether 4c:34:88:03:df:0e inet 192.168.178.28 netmask 0xffffff00 broadcast 192.168.178.255 groups: wlan ssid "FRITZ!Box" channel 44 (5220 MHz 11a) bssid 98:9b:xx:xx:xx:xx regdomain ETSI country DE authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 17 bmiss 10 mcastrate 6 mgmtrate 6 scanvalid 60 wme roaming MANUAL media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11a status: associated nd6 options=23 From owner-freebsd-wireless@freebsd.org Sun Aug 11 21:01:08 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 52F7CC20E5 for ; Sun, 11 Aug 2019 21:01:08 +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 466BGX0gBHz4N2B for ; Sun, 11 Aug 2019 21:01:08 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 162C1C20AC; Sun, 11 Aug 2019 21:01:08 +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 15CDEC20AB for ; Sun, 11 Aug 2019 21:01:08 +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 466BGW6TH7z4N23 for ; Sun, 11 Aug 2019 21:01:07 +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 BA3EE1C034 for ; Sun, 11 Aug 2019 21:01:07 +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 x7BL17Zm056528 for ; Sun, 11 Aug 2019 21:01:07 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x7BL176t056501 for wireless@FreeBSD.org; Sun, 11 Aug 2019 21:01:07 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201908112101.x7BL176t056501@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: wireless@FreeBSD.org Subject: Problem reports for wireless@FreeBSD.org that need special attention Date: Sun, 11 Aug 2019 21:01:07 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sun, 11 Aug 2019 21:01:08 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- New | 237921 | wpi: Memory leak in function wpi_free_tx_ring of Open | 154598 | [ath] Atheros 5424/2424 can't connect to WPA netw Open | 236918 | Crash: in iwn_ampdu_tx_stop (or ieee80211_ht_node Open | 238636 | ath: Fix kernel addresses printed in if_ath_sysct 4 problems total for which you should take action. 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.= From owner-freebsd-wireless@freebsd.org Mon Aug 12 07:16:50 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 7DBD9CFD6B for ; Mon, 12 Aug 2019 07:16:50 +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 466Rwy2pnfz3Qpk for ; Mon, 12 Aug 2019 07:16:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5E399CFD69; Mon, 12 Aug 2019 07:16:50 +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 5CF1ACFD68 for ; Mon, 12 Aug 2019 07:16:50 +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 466Rwy1Zpdz3Qpj for ; Mon, 12 Aug 2019 07:16:50 +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 14F8E22F5E for ; Mon, 12 Aug 2019 07:16:50 +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 x7C7Gn2P075026 for ; Mon, 12 Aug 2019 07:16:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x7C7GnP8075025 for wireless@FreeBSD.org; Mon, 12 Aug 2019 07:16:49 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 239431] The rtwn driver fails to recognize a RTL8821AE WiFi device Date: Mon, 12 Aug 2019 07:16:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: 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: cc Message-ID: In-Reply-To: References: 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:16:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239431 James Parsons changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |james.m.parsons@protonmail. | |com --- Comment #1 from James Parsons --- I just submitted a new report that also contains a patch I wrote for a different device in the same class. It may or may not be of interest to you. bug #239795 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Mon Aug 12 07:50:55 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 0805AA89E8 for ; Mon, 12 Aug 2019 07:50:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 466ShG6RFNz3xM5 for ; Mon, 12 Aug 2019 07:50:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id DCDBBA89E7; Mon, 12 Aug 2019 07:50:54 +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 DB8EFA89E6 for ; Mon, 12 Aug 2019 07:50:54 +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 466ShG5SsBz3xM4 for ; Mon, 12 Aug 2019 07:50:54 +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 9EEE8234D5 for ; Mon, 12 Aug 2019 07:50:54 +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 x7C7osqV065115 for ; Mon, 12 Aug 2019 07:50:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x7C7osHQ065114 for wireless@FreeBSD.org; Mon, 12 Aug 2019 07:50:54 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:50:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: avos@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: avos@freebsd.org X-Bugzilla-Flags: mfc-stable12? X-Bugzilla-Changed-Fields: assigned_to flagtypes.name cc bug_status Message-ID: In-Reply-To: References: 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:50:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239795 Andriy Voskoboinyk changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|wireless@FreeBSD.org |avos@freebsd.org Flags| |mfc-stable12? CC| |avos@freebsd.org Status|New |Open --- Comment #1 from Andriy Voskoboinyk --- Yes, the patch is fine; it wasn't committed since the driver was not tested with 2T2R device when it got into the tree (or probably I've missed that). --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Mon Aug 12 07:52:54 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 20308A8A46 for ; Mon, 12 Aug 2019 07:52:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 466SkZ03p8z3xZl for ; Mon, 12 Aug 2019 07:52:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 005E7A8A44; Mon, 12 Aug 2019 07:52:54 +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 0022EA8A43 for ; Mon, 12 Aug 2019 07:52:54 +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 466SkY6Dhrz3xZk for ; Mon, 12 Aug 2019 07:52:53 +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 B990C23685 for ; Mon, 12 Aug 2019 07:52:53 +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 x7C7qr7M073356 for ; Mon, 12 Aug 2019 07:52:53 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x7C7qrex073355 for wireless@FreeBSD.org; Mon, 12 Aug 2019 07:52:53 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 239431] The rtwn driver fails to recognize a RTL8821AE WiFi device Date: Mon, 12 Aug 2019 07:52:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: avos@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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:52:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239431 Andriy Voskoboinyk changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |avos@freebsd.org --- Comment #2 from Andriy Voskoboinyk --- Nope, this is one is not yet supported; 12.0 includes support for USB versi= on of this chipset (RTL8821AU), not for PCIe (RTL8821AE). --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Wed Aug 14 04:10:07 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 7B354C5F9F for ; Wed, 14 Aug 2019 04:10:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw1-xc2b.google.com (mail-yw1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 467bhZ2hDjz3HLH for ; Wed, 14 Aug 2019 04:10:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yw1-xc2b.google.com with SMTP id x74so22566892ywx.6 for ; Tue, 13 Aug 2019 21:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4QNLY4Boh3gWu/1Vm0r2HySqyOsflIRrb4o8emkDoWw=; b=BhRm7xfwNqoyjHMB4hAnQl5FZ77h2jjlFn596MCREMwRnClvzkax6ZY68c0IAt39s3 OD9ZNnIinDyZB0b1I9GIO+uIxmismNa3UYIT3z+YBfGaaX0j6ey0D503IM/Ryl41Rok8 cnGZ2QosN/Cbq2ekx3klUFiWuDRhRrKLwGoUIY6IJpbzeyXRzawbxdcqOfoCGaRUADn4 PwIyntOo3CP5zL/6bJDXJL3Nltz7/3IkNwJ1Em0l+2vgOMfTz6qPAzR1xUM288gj+2kX xPeUknEexKH9vWiAXMk9kyawRINApYX+d4cL9h7FyurdEVmIkuuOESBJJ6aY4dFeqMBc R8jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4QNLY4Boh3gWu/1Vm0r2HySqyOsflIRrb4o8emkDoWw=; b=LoYyZPWU6UummX8g4gUL6yflTgyTxmnTi2yN9u1sRoDObGMXGyrWAY15M1Tf7Kh/L3 vq3ptfgdGazjoVO24/orXblBjY1tA+lHnAdRNTBHrV1kVRFbc4Trt3Ggt2x4DxwOGR/a bQmzfg5FjO+mbbvfkVe5rAbEzen7XnkObGzFixKhAXzE8vUFkRUVJJDY7bWCwO2t8v4d rBPgeLZdHUpqoPHjHwUcpJDchBE8gWT1eqrVwOU8qbAm8sL6VJLW/6dgNhPFQ1iWFkkf YH6x4solcqezZrAHGNjgNjprLxJnBsdxyvq24vS+vlr3wbwd09jYS/W/7VW72aTxnvZd c69g== X-Gm-Message-State: APjAAAWBn8l26i4AAgEb/gElXt6jDhbkAizcJmKA/W1Tp8Z39+iBd4HH GRpTUrXDoRGeKoHBnJVru8qVICGTXfPL9fT6nZ4= X-Google-Smtp-Source: APXvYqyjRg6oUcOrdUTi/Yz+NkO14wyXNDhMI1aZYVm1Z1VBobgek8yNsxHVbkRRU2fFkmbfPtUCjxzF5p8481uQm3I= X-Received: by 2002:a81:3109:: with SMTP id x9mr21195191ywx.386.1565755805070; Tue, 13 Aug 2019 21:10:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Tue, 13 Aug 2019 21:09:52 -0700 Message-ID: Subject: Re: rtwn driver To: "james.m.parsons" Cc: "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: 467bhZ2hDjz3HLH X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=BhRm7xfw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::c2b as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.998,0]; FREEMAIL_TO(0.00)[protonmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.45), ipnet: 2607:f8b0::/32(-2.98), asn: 15169(-2.39), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[b.2.c.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Wed, 14 Aug 2019 04:10:07 -0000 hi! Thanks for doing this! if it's the same chipset but a different ID then yes, it's literally that easy most times. :) Nice work! If you file a PR then we'll try to get someone to commit it to freebsd-head. -a On Sun, 11 Aug 2019 at 00:34, james.m.parsons via freebsd-wireless < freebsd-wireless@freebsd.org> wrote: > Good morning, > > A few weeks ago, I installed FreeBSD 12.0-RELEASE on a box that had an > [Asus PCE-N15](https://www.asus.com/us/Networking/PCEN15/) wireless > network card based on the Realtek RTL8192CE chipset. According to the man > page for the [rtwn]( > https://www.freebsd.org/cgi/man.cgi?query=rtwn&sektion=4&manpath=freebsd-release-ports) > driver, this card was supported, however the driver refused to attach. > Running pciconf -lv would show the device as none0, but had the correct > vendor information. > > Later on, after [inquiring on the forums]( > https://forums.freebsd.org/threads/issue-getting-realtek-wireless-network-card-rtwn-driver-working-on-new-freebsd-installation.71677/), > I decided to investigate the potential of patching the driver to work with > my card. When I finally sat down tonight to start on it, I found the fix > surprisingly simple. Looking at the driver source code under > /sys/dev/rtwn/pci/rtwn_pci_attach.h, I see an array containing the vendor > id's and device id's for PCI devices: > > static const struct rtwn_pci_ident rtwn_pci_ident_table[] = { > { 0x10ec, 0x8176, "Realtek RTL8188CE", RTWN_CHIP_RTL8192CE }, > { 0, 0, NULL, RTWN_CHIP_MAX_PCI } > }; > > I noticed the device id 0x8176 was different from my card, which was > reported as 0x8178. So I added to that array: > > { 0x10ec, 0x8178, "Realtek RTL8192CE", RTWN_CHIP_RTL8192CE }, > > And after building and installing a custom kernel with all the lines noted > in the above man page to the config, I rebooted, noticed the driver is now > attaching to the PCI device and have since been able to connect to my home > wifi without issue. > > Honestly, I'm a bit suspicious at the ease of fixing this issue, and am > not sure if this is something that should / could be contributed to the > kernel code. I'm also sure, there are other device id's that would need > added to have full support, but after asking some other people, I was > suggested to send an email to this address. > > Thanks, > James Parsons > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org > " > From owner-freebsd-wireless@freebsd.org Wed Aug 14 04:13:18 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 E7BD4C6298 for ; Wed, 14 Aug 2019 04:13:18 +0000 (UTC) (envelope-from ajcsweb@gmail.com) Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 467bmG1XXcz3HcL for ; Wed, 14 Aug 2019 04:13:17 +0000 (UTC) (envelope-from ajcsweb@gmail.com) Received: by mail-qk1-x731.google.com with SMTP id s14so11120707qkm.4 for ; Tue, 13 Aug 2019 21:13:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:cc; bh=WsAFxVhb82EFD0lG0/VL/1DHXLS+QItnVGylnmiQuvY=; b=G2+2V5S1IyxIYH3+Gf6MN42I3b7VDxUUa0laa0cWPBF5iGEoAQZqWk+17ZKXS9cyVh njSA5RnBLfiMj22YPHZ0015MKnyutPlJxSzRVc3bi3whtLJs5c+EhYU5WvEC+zeYnajb sY6T1Pktv3Y1u03UHae9JXTRz69W66zrcuMITHW6ynYT3ZsMItZLcEQ4iCqWjJDcQ7Ku Bi7v05d7NawxWmdLZN1R0gw2b9Swbn3L1zigD8t4ef6ai83qOlNa7ltqWt1lplCkLEFD gbasYphAn791xZiPJRtm4bdTo73UlCK2+wJLqsgpapHHRYyD8Fnzv179xYLUdrBaYdQC 0Jyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:cc; bh=WsAFxVhb82EFD0lG0/VL/1DHXLS+QItnVGylnmiQuvY=; b=MjaU3yZyl6FcUrs98XKmbzScEJU5sKXHSWcJwdNRKCH/Zm+aBe2wkbr+hUBVIs05Pn jGoqBQT25BeSctd0gO8DExqlvuqi/Ew8ANJqgX5/1/JPwEW6yojg1tOEodkrcTZPkMbl mL7QAPR95UN1WWKUqonbNcIWF30r460FOrDe7CRcqPy9kDqpqfMniE5f1rIIWyTGw3+w eV+aq3cU2iEUSwCnIICihcSwS4Knl5Y8uauCFJ714VAsLZFsmEl7vpDyT60hiuX5iCkF b5B1mQNYTlkbFHKrxp1DR3uS3NdCvD69MZaqnsYlPCGzYb46FonJXtwj+ugnsb6z2OI6 X5Jw== X-Gm-Message-State: APjAAAVR4gQ7pEGel7Tuov16ugNB5ihKFJXWecn3LY4o6sMfKO8cAIsZ IZ9tGXEdF5cuGynHQz5mBNUIXPdR1e+pnbhySKfjEwJW X-Google-Smtp-Source: APXvYqzZGI4oA9fhGNqxLid6z2CBgNaG24iw7P4pN3y3aQkGlEmgUOvBclKkSaXkRTXWWtwCtdSJy5965VTMMPrWOSE= X-Received: by 2002:a37:947:: with SMTP id 68mr35482910qkj.412.1565755996937; Tue, 13 Aug 2019 21:13:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: waddlesplash Date: Wed, 14 Aug 2019 00:13:14 -0400 Message-ID: Subject: Re: rtwn driver Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 467bmG1XXcz3HcL X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=G2+2V5S1; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ajcsweb@gmail.com designates 2607:f8b0:4864:20::731 as permitted sender) smtp.mailfrom=ajcsweb@gmail.com X-Spamd-Result: default: False [-1.69 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MISSING_TO(2.00)[]; FORGED_SENDER(0.30)[waddlesplash@gmail.com,ajcsweb@gmail.com]; IP_SCORE(0.00)[ip: (-9.36), ipnet: 2607:f8b0::/32(-2.98), asn: 15169(-2.39), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[waddlesplash@gmail.com,ajcsweb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_SHORT(-1.00)[-0.995,0]; RCVD_IN_DNSWL_NONE(0.00)[1.3.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] 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: Wed, 14 Aug 2019 04:13:19 -0000 On Wed, Aug 14, 2019 at 12:10 AM Adrian Chadd wrote: > Thanks for doing this! if it's the same chipset but a different ID then > yes, it's literally that easy most times. :) > > Nice work! If you file a PR then we'll try to get someone to commit it to > freebsd-head. You're a little late to the party: https://github.com/freebsd/freebsd/commit/57f16e900dfc21dc7ed636d71e4e19b0a43da1d0 :) -waddlesplash From owner-freebsd-wireless@freebsd.org Wed Aug 14 04:13:40 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 DBBABC62E6 for ; Wed, 14 Aug 2019 04:13:40 +0000 (UTC) (envelope-from james.m.parsons@protonmail.com) Received: from mail-40133.protonmail.ch (mail-40133.protonmail.ch [185.70.40.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.protonmail.ch", Issuer "SwissSign Server Silver CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 467bmg66Y5z3HdV for ; Wed, 14 Aug 2019 04:13:39 +0000 (UTC) (envelope-from james.m.parsons@protonmail.com) Date: Wed, 14 Aug 2019 04:13:28 +0000 To: adrian.chadd@gmail.com From: "james.m.parsons" Cc: freebsd-wireless@freebsd.org Reply-To: "james.m.parsons" Subject: Re: rtwn driver Message-ID: In-Reply-To: References: Feedback-ID: nXxbwtwn5pB63TBSnlsi0xKZmD1YhsmmE_NkvIk6LzsX8lhmz3RlS4YnAPSfdBfyBLiyN90ca45ZtT7-eQr7Ig==:Ext:ProtonMail MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Rspamd-Queue-Id: 467bmg66Y5z3HdV X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; HAS_REPLYTO(0.00)[james.m.parsons@protonmail.com]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; FREEMAIL_FROM(0.00)[protonmail.com]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[protonmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; MIME_BASE64_TEXT(0.10)[]; NEURAL_HAM_SHORT(-0.99)[-0.995,0]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; RCVD_IN_DNSWL_LOW(-0.10)[133.40.70.185.list.dnswl.org : 127.0.5.1]; ASN(0.00)[asn:19905, ipnet:185.70.40.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=default]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; HAS_PHPMAILER_SIG(0.00)[]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(0.00)[ip: (-9.86), ipnet: 185.70.40.0/24(-4.90), asn: 19905(-3.92), country: US(-0.05)] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Wed, 14 Aug 2019 04:13:40 -0000 VGhhbmtzISBJIGRkIGVuZCB1cCBjcmVhdGluZyBhIGEgY291cGxlIGRheXMgYWdvIGFuZCBpdCBs b29rcyBsaWtlIGl0IGdvdCBjb21taXRlZC4KClNlbnQgZnJvbSBQcm90b25NYWlsIG1vYmlsZQoK LS0tLS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLS0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RvIHRoaXMgYWRkcmVzcy4KPj4KPj4gVGhhbmtzLAo+PiBKYW1lcyBQYXJzb25zCj4+IF9fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCj4+IGZyZWVic2Qtd2ly ZWxlc3NAZnJlZWJzZC5vcmcgbWFpbGluZyBsaXN0Cj4+IGh0dHBzOi8vbGlzdHMuZnJlZWJzZC5v cmcvbWFpbG1hbi9saXN0aW5mby9mcmVlYnNkLXdpcmVsZXNzCj4+IFRvIHVuc3Vic2NyaWJlLCBz ZW5kIGFueSBtYWlsIHRvICJmcmVlYnNkLXdpcmVsZXNzLXVuc3Vic2NyaWJlQGZyZWVic2Qub3Jn Ig== From owner-freebsd-wireless@freebsd.org Wed Aug 14 04:15:27 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 48050C63E6 for ; Wed, 14 Aug 2019 04:15:27 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw1-xc2c.google.com (mail-yw1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 467bpj5F2vz3Hgr for ; Wed, 14 Aug 2019 04:15:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-yw1-xc2c.google.com with SMTP id w10so7176988ywa.13 for ; Tue, 13 Aug 2019 21:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1Z2enCBAXeLz+71NSY2ZdOPifuXcbltQEnxwvl4BD94=; b=ID52XsOc8kpm4oFu+CHu6GhcTdn9S4bF3YIHGx5xci8k+836Z/kHdJvr6/j3l3JNDs T5MBzB+RdW5mEi3JObYO5koUQkopbwzeSTOTh861nG005r337kDKCzImIWXS1aUpBqg/ FaFdHA1JPVmA5/vOJBlhJTymGETyJ1LU6U8lgYuaNIHXh+lcH+3aQX7KLOZaW7lvat8z cxHrFXBi+am5/4CHD7k7dgFLfoyNXyMBDYbZtirrYoK14Ly5VNAOja0yY7Sn2ZWj0BRQ o8Ou9CvMi51pYU8A47bj4IwvlJVkjLJ0KjMeC/LMWSKwCE8LJGnfq2n0ZO/gfG7vPi7L IH5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1Z2enCBAXeLz+71NSY2ZdOPifuXcbltQEnxwvl4BD94=; b=uVkOkWUXJj+OqBpZhLUjKbB757d7uSwVYcenwTIX9ChILLB+IZj+xNHHloWxZ52Xa1 UYoJ2TUIkA3gxLkGLe4GH+pHcEpoofKJtdi51kL2oPueVSLwVfuvtGCMaHYuCuLXUUAp GGf1KrS+QBBizE/wa/usvy2/aaOSXSCPGdMt5KMEuSuK18BLgNJ5EZNu5elG8jw492QE GLxdN1ZFpUFqw2sGXRn2puKWiMEMCp60v1J6Ykv63oDjCoeM5WFU1W/LXq51euc4I7WW 1V/LpPNByXh5y5IMvzfBffqj8t6Vh7hP5If08YD0SEVJJLOHj20ZA12O/Jnm2T7sxRxB 7eKw== X-Gm-Message-State: APjAAAU+wmRYtqrpd6D9j1wS8YdMl6vlRQGSgdsvzYILZjjiC4998I43 mcxwSerdaF+cfDHrX8hq/fO47TNJqxYu4Gq5cAQ= X-Google-Smtp-Source: APXvYqyDpDqZGS5kDIZnYmRwGjY18cEApzcsqeV01xmVlH4wW6S0NoTVZAyyaqUfa/JH6RcaOrnXe0y15lmgpp+T2bw= X-Received: by 2002:a81:9a4f:: with SMTP id r76mr726305ywg.28.1565756124215; Tue, 13 Aug 2019 21:15:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Tue, 13 Aug 2019 21:15:12 -0700 Message-ID: Subject: Re: rtwn driver To: "james.m.parsons" Cc: "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: 467bpj5F2vz3Hgr X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ID52XsOc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::c2c as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.998,0]; FREEMAIL_TO(0.00)[protonmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.50), ipnet: 2607:f8b0::/32(-2.98), asn: 15169(-2.39), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[c.2.c.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Wed, 14 Aug 2019 04:15:27 -0000 yay! -a On Tue, 13 Aug 2019 at 21:13, james.m.parsons < james.m.parsons@protonmail.com> wrote: > Thanks! I dd end up creating a a couple days ago and it looks like it got > commited. > > > Sent from ProtonMail mobile > > > > -------- Original Message -------- > On Aug 14, 2019, 12:09 AM, Adrian Chadd < adrian.chadd@gmail.com> wrote: > > > hi! > > Thanks for doing this! if it's the same chipset but a different ID then > yes, it's literally that easy most times. :) > > Nice work! If you file a PR then we'll try to get someone to commit it to > freebsd-head. > > > -a > > > On Sun, 11 Aug 2019 at 00:34, james.m.parsons via freebsd-wireless < > freebsd-wireless@freebsd.org> wrote: > >> Good morning, >> >> A few weeks ago, I installed FreeBSD 12.0-RELEASE on a box that had an >> [Asus PCE-N15](https://www.asus.com/us/Networking/PCEN15/) wireless >> network card based on the Realtek RTL8192CE chipset. According to the man >> page for the [rtwn]( >> https://www.freebsd.org/cgi/man.cgi?query=rtwn&sektion=4&manpath=freebsd-release-ports) >> driver, this card was supported, however the driver refused to attach. >> Running pciconf -lv would show the device as none0, but had the correct >> vendor information. >> >> Later on, after [inquiring on the forums]( >> https://forums.freebsd.org/threads/issue-getting-realtek-wireless-network-card-rtwn-driver-working-on-new-freebsd-installation.71677/), >> I decided to investigate the potential of patching the driver to work with >> my card. When I finally sat down tonight to start on it, I found the fix >> surprisingly simple. Looking at the driver source code under >> /sys/dev/rtwn/pci/rtwn_pci_attach.h, I see an array containing the vendor >> id's and device id's for PCI devices: >> >> static const struct rtwn_pci_ident rtwn_pci_ident_table[] = { >> { 0x10ec, 0x8176, "Realtek RTL8188CE", RTWN_CHIP_RTL8192CE }, >> { 0, 0, NULL, RTWN_CHIP_MAX_PCI } >> }; >> >> I noticed the device id 0x8176 was different from my card, which was >> reported as 0x8178. So I added to that array: >> >> { 0x10ec, 0x8178, "Realtek RTL8192CE", RTWN_CHIP_RTL8192CE }, >> >> And after building and installing a custom kernel with all the lines >> noted in the above man page to the config, I rebooted, noticed the driver >> is now attaching to the PCI device and have since been able to connect to >> my home wifi without issue. >> >> Honestly, I'm a bit suspicious at the ease of fixing this issue, and am >> not sure if this is something that should / could be contributed to the >> kernel code. I'm also sure, there are other device id's that would need >> added to have full support, but after asking some other people, I was >> suggested to send an email to this address. >> >> Thanks, >> James Parsons >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to " >> freebsd-wireless-unsubscribe@freebsd.org" >> > From owner-freebsd-wireless@freebsd.org Wed Aug 14 09:27:59 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 C90A2CC96A for ; Wed, 14 Aug 2019 09:27:59 +0000 (UTC) (envelope-from liu02@apzeyeqixie.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 467klL4PtTz42nT for ; Wed, 14 Aug 2019 09:27:58 +0000 (UTC) (envelope-from liu02@apzeyeqixie.com) Received: by mailman.nyi.freebsd.org (Postfix) id 97286CC969; Wed, 14 Aug 2019 09:27:58 +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 96E8ACC968 for ; Wed, 14 Aug 2019 09:27:58 +0000 (UTC) (envelope-from liu02@apzeyeqixie.com) Received: from qq.com (smtpbg562.qq.com [183.3.255.174]) (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 467klH42cLz42nS for ; Wed, 14 Aug 2019 09:27:54 +0000 (UTC) (envelope-from liu02@apzeyeqixie.com) X-QQ-mid: bizesmtp28t1565774346tmzy8l97 Received: from PC-201907221803 (unknown [183.199.223.134]) by esmtp10.qq.com (ESMTP) with SMTP id 0 for ; Wed, 14 Aug 2019 17:19:05 +0800 (CST) X-QQ-SSF: 0100000000200090BV12B00A0000000 X-QQ-FEAT: G60pYN/UiEE/Xt908Hh9jttNgoRp5qdwQvmgJp4zvU2KzsDQSmSrcXV6m6gx6 GLsE76qTVmmnHIkaBEIM0LWlIFjPh9VJjeUPnNwGMwLTyode4JiPZO4QRiwsu/FhjLXyIOr Ij4Vg4w6OUMTHzXu8AnhsbMtpDH43xgehDxdTiY4MdH7EhmtEDrqfkfuVMgf0yMDqnX/lH/ Lj3+e8NLLUA/z3YvkCR3Abu/UGO6HcZV8LGymsPYrDH456Yb4UiWCojKyriG52tNi5T1J5S r5XgvNET7+QQTrNp5o2QG+goWXdtSN/hyFODSP2uvELfKQoXHcKz/lxHqJb2aU3pcb5w== X-QQ-GoodBg: 0 From: =?utf-8?B?bGl1?= To: wireless@freebsd.org Reply-To: liu02@apzeyeqixie.com Date: 14 Aug 2019 17:18:42 +0800 Subject: =?utf-8?B?VmFyaW91cyBtZWNoYW5pY2FsIGZpbHRlcnMgZnJvbSBDaGluYSA=?= X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:apzeyeqixie.com:qybgforeign:qybgforeign2 Message-ID: mis_02F234C36EB74B946AFF781E@unknown.com X-QQ-Bgrelay: 1 X-Rspamd-Queue-Id: 467klH42cLz42nS X-Spamd-Bar: +++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of liu02@apzeyeqixie.com designates 183.3.255.174 as permitted sender) smtp.mailfrom=liu02@apzeyeqixie.com X-Spamd-Result: default: False [6.00 / 15.00]; HAS_REPLYTO(0.00)[liu02@apzeyeqixie.com]; SUBJ_EXCESS_BASE64(1.50)[]; FROM_EXCESS_BASE64(1.50)[]; R_SPF_ALLOW(-0.20)[+ip4:183.3.255.0/24:c]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; MIME_BASE64_TEXT(0.10)[]; RECEIVED_SPAMHAUS_PBL(0.00)[134.223.199.183.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MID_MISSING_BRACKETS(0.50)[]; ASN(0.00)[asn:4816, ipnet:183.3.224.0/19, country:CN]; ARC_NA(0.00)[]; SUBJECT_ENDS_SPACES(0.50)[]; MIME_TRACE(0.00)[0:~]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.20)[0.199,0]; PREVIOUSLY_DELIVERED(0.00)[wireless@freebsd.org]; DMARC_NA(0.00)[apzeyeqixie.com]; NEURAL_SPAM_MEDIUM(0.88)[0.882,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(0.95)[0.951,0]; RCVD_IN_DNSWL_NONE(0.00)[174.255.3.183.list.dnswl.org : 127.0.5.0]; MIME_HTML_ONLY(0.20)[]; IP_SCORE(-0.14)[asn: 4816(-0.70), country: CN(0.02)]; RCVD_COUNT_TWO(0.00)[2] X-Spam: Yes MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Wed, 14 Aug 2019 09:27:59 -0000 From owner-freebsd-wireless@freebsd.org Sat Aug 17 11:46:25 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 18B98C4AE2 for ; Sat, 17 Aug 2019 11:46:25 +0000 (UTC) (envelope-from liu05@apzeyeqixie.com) 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 469dgh5KWWz4Hm2 for ; Sat, 17 Aug 2019 11:46:24 +0000 (UTC) (envelope-from liu05@apzeyeqixie.com) Received: by mailman.nyi.freebsd.org (Postfix) id B69A8C4AE0; Sat, 17 Aug 2019 11:46:24 +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 B65E2C4ADF for ; Sat, 17 Aug 2019 11:46:24 +0000 (UTC) (envelope-from liu05@apzeyeqixie.com) Received: from smtpbguseast2.qq.com (smtpbguseast2.qq.com [54.204.34.130]) (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 469dgd2fsyz4Hm0 for ; Sat, 17 Aug 2019 11:46:20 +0000 (UTC) (envelope-from liu05@apzeyeqixie.com) X-QQ-mid: bizesmtp17t1566042366td7e5yj1 Received: from PC-201907221803 (unknown [183.199.223.54]) by esmtp6.qq.com (ESMTP) with SMTP id 0 for ; Sat, 17 Aug 2019 19:46:05 +0800 (CST) X-QQ-SSF: 01000000002000B0BW10B00A0000000 X-QQ-FEAT: eO1bHZ2t0ZQwBio2evo1+tzm8DvIY0Pycgi/8Of3xRRM6+hMp/YMMBnw7nas6 Dx+vS602lETa9cqgJEZjLW9MD7ykOPg2N2MV/S6LtrpVIAGEiB6j9aNqrT/nUps7b4a+3JT 9q2x7P8vD7hU1O6vjyYGsqm/V8P0RC6k+2aYZrrfvCCm9xvxTxsWidWz34vUVAWAZgweq8j 4oN0yVnbO4gbHnjdrzvX3zadbWjHA5YLmtVswEg+KaB+LqvZOiZBR4QMKUFVHqhfyTipUPF ufUG00eWuyy8+QIbWMEPsjUL0Vu/ezJajj+WHFYwOGRmDX8gzFHi0nvow= X-QQ-GoodBg: 0 From: =?utf-8?B?bGl1?= To: wireless@freebsd.org Reply-To: liu05@apzeyeqixie.com Date: 17 Aug 2019 19:45:39 +0800 Subject: =?utf-8?B?QWx1bWludW0gcGFuZWwgZXh0ZXJpb3Igd2FsbCBkZWNvcmF0aXZlIG5ldCBmcm9tIENoaW5hIA==?= X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:apzeyeqixie.com:qybgforeign:qybgforeign2 Message-ID: mis_4F7C495A74C459CF743A39C3@unknown.com X-QQ-Bgrelay: 1 X-Rspamd-Queue-Id: 469dgd2fsyz4Hm0 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of liu05@apzeyeqixie.com designates 54.204.34.130 as permitted sender) smtp.mailfrom=liu05@apzeyeqixie.com X-Spamd-Result: default: False [3.80 / 15.00]; HAS_REPLYTO(0.00)[liu05@apzeyeqixie.com]; SUBJ_EXCESS_BASE64(1.50)[]; FROM_EXCESS_BASE64(1.50)[]; R_SPF_ALLOW(-0.20)[+ip4:54.204.34.0/24:c]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; NEURAL_HAM_SHORT(-0.63)[-0.625,0]; MIME_BASE64_TEXT(0.10)[]; RECEIVED_SPAMHAUS_PBL(0.00)[54.223.199.183.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MID_MISSING_BRACKETS(0.50)[]; ASN(0.00)[asn:14618, ipnet:54.204.0.0/15, country:US]; ARC_NA(0.00)[]; SUBJECT_ENDS_SPACES(0.50)[]; MIME_TRACE(0.00)[0:~]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[wireless@freebsd.org]; DMARC_NA(0.00)[apzeyeqixie.com]; NEURAL_SPAM_MEDIUM(0.34)[0.337,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_LONG(0.65)[0.647,0]; RCVD_IN_DNSWL_NONE(0.00)[130.34.204.54.list.dnswl.org : 127.0.5.0]; MIME_HTML_ONLY(0.20)[]; IP_SCORE(-0.66)[asn: 14618(-3.27), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] X-Spam: Yes MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sat, 17 Aug 2019 11:46:25 -0000 From owner-freebsd-wireless@freebsd.org Sat Aug 17 16:26:13 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 AAE3DCB65D for ; Sat, 17 Aug 2019 16:26:13 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from sonic305-20.consmr.mail.gq1.yahoo.com (sonic305-20.consmr.mail.gq1.yahoo.com [98.137.64.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 469ltX3hYWz4WNr for ; Sat, 17 Aug 2019 16:26:12 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) X-YMail-OSG: p.eEzrgVM1kXKxGhGcjd97vqDIb524DnOl4dwkQMPYjN.6Phw5T_TM6Qfq7FmDT qhF7XcKTZ916zb4Dvm7k4bdcxy73izDvdFmauuzOkTkQQ.5HNqs25UOBvKPye2Z8ClXBojGmPR0G FclXibQePZq.rwhL3cD4JfMU53ewgZw5evEKqHk.Y7zPSWwkR6JEdosmH9wq7pZo6JDTwT6d.tL4 bsKXhzaeIfD63Ns.GX9yViQRK2qeBhFLvQmGCulTg9muiuIKLieRrV5IoLh9ldsRFw662AN8sx3K DcoNMMMcsu6zxI1JH2g7UGwkxLsTJY8Qr7B3pbQHUC4xaTMoDObXeNJqUH3bNRBaEOoFJCvLEXOt 4HB_KbObHaaHahRPT2viPBohpMb80asR7WfNKv62.BsAN63LX9nf7GLUoCnve9VnY7ip1Cb1..rt 0NaSB.9hQKaESYrXGcrjznADmJuf2YieuQTa8.bKw3rAtuI_l3YnrqdsfFnLTwxqcnjT2V3f_m5t vfoD1zChPllX8Gh7zNcoEBTCn65dPKC9h8lfkuSo5dHHqO3T11cLq.CTM3Ze.djTRBzDMPOTWvqP c_0AIEodsE4I0Fvce9gdL0O2cw9CEeDR4aZ2jnM8MNf3vn2KYJYhQAZzl8LxyYthIVHYWWR7j1DH hV5dEuuPJ1tEhvRJ1yhrFZrwlsP0aMAXls_zsT.En809pjdmIDyTZdoua0d1SktFar7v6rqYwneI Xatpy4f1A3vzLKA5QKxg.Dpmebirngty4rIiNr0LAgVaKTgxJXqwneUSFUPDfqkwayJWZFk5wXLH 9.XnUT5NU3CQRViOO2Ak5X2cm9WyNrZ7xnAJmvRjcyHlHE9zTgq0ZztsehCSMXojpTHo8eDG4R.H wweP9O70CdTMjxpgvDVFbQRxsNOvz32WReS_TskOGt5LZOV3Ncg8Hom6EQCcyD_QPIoWWtI_aUDu vwj4kUy9DtQGt9_U4636zTfoGCjjODsRc7S63S2al3nJySjo1Q6O8Osh2ADn3fl3f8osj51i0u_h XiwGGsPx3.RphEfIMVTVGZO4GCm05RqibZVVpnoDnkuKtEzvNuayGU1AAjyCK89Kp10BR5VB8cqH xck2cqUIObJ1kAmv3ZvHQR_F2QW_V654c1jp0nz6ZUaT5wl7zDBQNaeQHm5nQB1yK9V8hDBZe9JS a16Bvt58U1OPzljELbySVOxXrGBfIVHr5EimJ52c5_olZ77rJRBUV Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.gq1.yahoo.com with HTTP; Sat, 17 Aug 2019 16:26:10 +0000 Received: by smtp402.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID eb00c62648038a37c43795198e89a1e8; Sat, 17 Aug 2019 16:26:09 +0000 (UTC) To: freebsd-wireless@freebsd.org From: Anthony Jenkins Subject: ath10k crash + patch Message-ID: Date: Sat, 17 Aug 2019 12:26:07 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 469ltX3hYWz4WNr X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.45 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.91)[-0.913,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-0.97)[-0.967,0]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[83.64.137.98.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_SHORT(0.43)[0.428,0]; IP_SCORE(0.00)[ip: (2.52), ipnet: 98.137.64.0/21(0.91), asn: 36647(0.73), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.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: Sat, 17 Aug 2019 16:26:13 -0000 I've been trying to run the ath10k driver port from https://github.com/erikarn/athp/ 's master branch since I got a laptop with a Qualcomm Atheros QCA6174 802.11ac wireless adapter. It would load, but then crash the kernel within a few seconds. Today I figured out what was wrong; no idea why no one else is seeing it.?? Patch pull request is at https://github.com/ScoobiFreeBSD/athp/pull/1 . Problem was with the hash macro SKB_RX_HASH(x): #define SKB_RX_HASH(skb)?????????????? (((skb) >> 6) & ~(ATHP_RX_SKB_HASH_BUCKET_COUNT-1)) It is used to index a hash table with 32 entries (ATHP_RX_SKB_HASH_BUCKET_COUNT = 32), but the bitwise inversion operator shouldn't be there. Patch: diff --git a/otus/freebsd/src/sys/dev/athp/if_athp_htt_rx.c b/otus/freebsd/src/sys/dev/athp/if_athp_htt_rx.c index 4459542..6282902 100644 --- a/otus/freebsd/src/sys/dev/athp/if_athp_htt_rx.c +++ b/otus/freebsd/src/sys/dev/athp/if_athp_htt_rx.c @@ -102,7 +102,7 @@ static int ath10k_htt_rx_get_csum_state(struct athp_buf *skb); ??static void ath10k_htt_txrx_compl_task(void *arg, int npending); ??static void ath10k_htt_rx_ring_refill_retry(void *arg); -#define?????????????? SKB_RX_HASH(skb)?????????????????????????????? (((skb) >> 6) & ~(ATHP_RX_SKB_HASH_BUCKET_COUNT-1)) +#define?????????????? SKB_RX_HASH(skb)?????????????????????????????? (((skb) >> 6) & (ATHP_RX_SKB_HASH_BUCKET_COUNT - 1)) ??static struct athp_buf * ??ath10k_htt_rx_find_skb_paddr(struct ath10k *ar, u32 paddr) Device still doesn't work, but at least it doesn't bring down the whole system.?? I can work on getting it working. Anthony ----- Crash dump ----- athp0: ath10k_wmi_event_service_ready_work: TODO: EEPROM code: 0x00000069 Fatal trap 9: general protection fault while in kernel mode cpuid = 1; apic id = 01 instruction pointer???????? = 0x20:0xffffffff8410055e stack pointer???????????????????? = 0x28:0xfffffe01341fa610 frame pointer???????????????????? = 0x28:0xfffffe01341fa670 code segment?????????????????????? = base 0x0, limit 0xfffff, type 0x1b ?????????????????????????????????????????????? = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags?????????????? = interrupt enabled, resume, IOPL = 0 current process???????????????? = 0 (athp0 ath10k_at_wq) trap number???????????????????????? = 9 panic: general protection fault cpuid = 1 time = 1566052301 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe01341fa320 vpanic() at vpanic+0x19d/frame 0xfffffe01341fa370 panic() at panic+0x43/frame 0xfffffe01341fa3d0 trap_fatal() at trap_fatal+0x39c/frame 0xfffffe01341fa430 trap() at trap+0x6c/frame 0xfffffe01341fa540 calltrap() at calltrap+0x8/frame 0xfffffe01341fa540 --- trap 0x9, rip = 0xffffffff8410055e, rsp = 0xfffffe01341fa610, rbp = 0xfffffe01341fa670 --- __ath10k_htt_rx_ring_fill_n() at __ath10k_htt_rx_ring_fill_n+0x2ae/frame 0xfffffe01341fa670 ath10k_htt_rx_ring_fill_n() at ath10k_htt_rx_ring_fill_n+0x1b/frame 0xfffffe01341fa690 ath10k_htt_rx_ring_refill() at ath10k_htt_rx_ring_refill+0x65/frame 0xfffffe01341fa6d0 ath10k_core_start() at ath10k_core_start+0x5d1/frame 0xfffffe01341fa780 ath10k_core_probe_fw() at ath10k_core_probe_fw+0x2d9/frame 0xfffffe01341fa830 attempt_ath10k_core_probe_fw() at attempt_ath10k_core_probe_fw+0x18/frame 0xfffffe01341fa890 ath10k_core_register_work() at ath10k_core_register_work+0x27/frame 0xfffffe01341fa8e0 taskqueue_run_locked() at taskqueue_run_locked+0x10c/frame 0xfffffe01341fa940 taskqueue_thread_loop() at taskqueue_thread_loop+0x88/frame 0xfffffe01341fa970 fork_exit() at fork_exit+0x84/frame 0xfffffe01341fa9b0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe01341fa9b0 --- trap 0, rip = 0, rsp = 0, rbp = 0 --- KDB: enter: panic __curthread () at /usr/src/sys/amd64/include/pcpu.h:246 246???????????????????????? __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (OFFSETOF_CURTHREAD)); (kgdb) up 15 #15 0xffffffff8410055e in __ath10k_htt_rx_ring_fill_n (htt=0xfffffe00aaccc8f8, num=1023) at ../../dev/athp/if_athp_htt_rx.c:226 warning: Source file is more recent than executable. 226 TAILQ_INSERT_TAIL(&htt->rx_ring.skb_table[SKB_RX_HASH(skb->mb.paddr)], (kgdb) list 221???????????????????????????????????????????????? htt->rx_ring.netbufs_ring[idx]); 222 223???????????????????????????????????????? if (htt->rx_ring.in_ord_rx) { 224 ATH10K_SKB_RXCB(skb)->paddr = skb->mb.paddr; 225???????????????????????????????????????????????????????????????????????? /* hash_add */ 226 TAILQ_INSERT_TAIL(&htt->rx_ring.skb_table[SKB_RX_HASH(skb->mb.paddr)], 227???????????????????????????????????????????????????????????????????????????????? skb, next); 228???????????????????????????????????????? } 229 230???????????????????????????????????????? num--;