Date: Tue, 03 Jun 2014 20:24:45 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Thomas Mueller <mueller6724@bellsouth.net>, freebsd-wireless@freebsd.org Cc: freebsd-current@freebsd.org Subject: Re: Change for the worse in rsu wireless driver Message-ID: <538E12ED.3050101@selasky.org> In-Reply-To: <5E.43.11813.830AD835@dnvrco-oedge02> References: <5E.43.11813.830AD835@dnvrco-oedge02>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06/03/14 12:15, Thomas Mueller wrote: > from Idwer Vollering <vidwer@gmail.com>: > > 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 <dev/usb/wlan/if_rsureg.h> > > +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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?538E12ED.3050101>