From owner-freebsd-wireless@FreeBSD.ORG Tue Jun 3 18:24:11 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D626B25D; Tue, 3 Jun 2014 18:24:11 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 98E022804; Tue, 3 Jun 2014 18:24:11 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 3D9331FE027; Tue, 3 Jun 2014 20:24:10 +0200 (CEST) Message-ID: <538E12ED.3050101@selasky.org> Date: Tue, 03 Jun 2014 20:24:45 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Thomas Mueller , freebsd-wireless@freebsd.org Subject: Re: Change for the worse in rsu wireless driver References: <5E.43.11813.830AD835@dnvrco-oedge02> In-Reply-To: <5E.43.11813.830AD835@dnvrco-oedge02> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18 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: Tue, 03 Jun 2014 18:24:11 -0000 On 06/03/14 12:15, Thomas Mueller wrote: > from Idwer Vollering : > > I have a patch for that: > > Index: head/sys/dev/usb/wlan/if_rsu.c > =================================================================== > --- head/sys/dev/usb/wlan/if_rsu.c (revision 266970) > +++ head/sys/dev/usb/wlan/if_rsu.c (working copy) > @@ -69,11 +69,13 @@ > > #include > > +static SYSCTL_NODE(_hw_usb, OID_AUTO, rsu, CTLFLAG_RW, 0, "USB rsu"); > + > #ifdef USB_DEBUG > -static int rsu_debug = 0; > -SYSCTL_NODE(_hw_usb, OID_AUTO, rsu, CTLFLAG_RW, 0, "USB rsu"); > -SYSCTL_INT(_hw_usb_rsu, OID_AUTO, debug, CTLFLAG_RW, &rsu_debug, 0, > +int rsu_debug = 0; > +SYSCTL_INT(_hw_usb_rsu, OID_AUTO, debug, CTLFLAG_RW | CTLFLAG_TUN, > &rsu_debug, 0, > "Debug level"); > +TUNABLE_INT("hw.usb.rsu.debug", &rsu_debug); > #endif > > static const STRUCT_USB_HOST_ID rsu_devs[] = { > @@ -1284,7 +1286,7 @@ > DPRINTF("WPS PBC pushed.\n"); > break; > case R92S_EVT_FWDBG: > - if (ifp->if_flags & IFF_DEBUG) { > + if (rsu_debug >= 6) { > buf[60] = '\0'; > printf("FWDBG: %s\n", (char *)buf); > } > > (end of quote) > > I do not put "> " in front of these lines for quoting here. > > Patch failed to apply, something was malformed. > > I have no directory named head, but even removing that left errors. > > I suppose I could look through original file and patch, and manually make the changes with vi. Should I try that? I am already long overdue for bed. > > Anyway, I have other stuff to do on computer, including NetBSD-current amd64 and i386 installations on USB sticks, plan to install on new hard drive as well. > > I'll be more inclined to come back when cups 1.7.3 becomes available in ports tree. I need to be able to print. Maybe NetBSD will be mainly a way station for cross-compiling Linux? > > Now FreeBSD 11-current amd64 betrays me again as I lost the wireless connection and have to boot into my FreeBSD 10-stable amd64 or i386 installation or NetBSD-head amd64. > > Tom Yes, please apply by hand. I'll see if I can do some testing myself. I happen to have one of these adapters too and the link is very unstable :-) --HPS