From owner-freebsd-wireless@FreeBSD.ORG Tue Jun 3 10:16:32 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 EDA0F96C for ; Tue, 3 Jun 2014 10:16:32 +0000 (UTC) Received: from dnvrco-oedge-vip.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.232]) by mx1.freebsd.org (Postfix) with ESMTP id BE0392720 for ; Tue, 3 Jun 2014 10:16:32 +0000 (UTC) Received: from [96.28.178.143] ([96.28.178.143:53642] helo=localhost) by dnvrco-oedge02 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 5E/43-11813-830AD835; Tue, 03 Jun 2014 10:15:20 +0000 Date: Tue, 03 Jun 2014 10:15:20 +0000 Message-ID: <5E.43.11813.830AD835@dnvrco-oedge02> From: "Thomas Mueller" To: freebsd-wireless@freebsd.org Subject: Change for the worse in rsu wireless driver X-RR-Connecting-IP: 107.14.64.130:25 X-Authority-Analysis: v=2.1 cv=a+i+9CiF c=1 sm=1 tr=0 a=RKm8ZHSrUWUxlfG+7GhaOw==:117 a=RKm8ZHSrUWUxlfG+7GhaOw==:17 a=ayC55rCoAAAA:8 a=8SutbUg_jKoA:10 a=DvSzqBOGy98A:10 a=pedpZTtsAAAA:8 a=pGLkceISAAAA:8 a=5bXU4cA67BCs1vZ52VAA:9 a=MSl-tDqOz04A:10 X-Cloudmark-Score: 0 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 10:16:33 -0000 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