From owner-freebsd-net@FreeBSD.ORG Wed Oct 5 16:59:07 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83E4710656D3 for ; Wed, 5 Oct 2011 16:59:07 +0000 (UTC) (envelope-from break19@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3E0538FC16 for ; Wed, 5 Oct 2011 16:59:07 +0000 (UTC) Received: by ggeq3 with SMTP id q3so1120898gge.13 for ; Wed, 05 Oct 2011 09:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; bh=C4XFmkhBj8+Z5zvodtdvWYypbXkyaiUoVnbD3GeQxNw=; b=tv3p1PxCrmEpn8D+QjDENTNQFxX0li+abWm4x1vYj6VyYJmBXdP+p3qi8+bEbtYFOM Si1TJs5zK9o0FGL+abKb91bNaFuh7C/XOJTpPh8WhFLmoV32XY9KoDp5om1793XWKr2R aB/2eaph39b1dSDy+9T/PxxoVtA9ociC1O1+w= Received: by 10.150.213.7 with SMTP id l7mr2620099ybg.424.1317833946648; Wed, 05 Oct 2011 09:59:06 -0700 (PDT) Received: from blackbeast.local (c-98-230-65-110.hsd1.al.comcast.net. [98.230.65.110]) by mx.google.com with ESMTPS id w16sm6456777anl.2.2011.10.05.09.59.05 (version=SSLv3 cipher=OTHER); Wed, 05 Oct 2011 09:59:05 -0700 (PDT) From: Chuck Burns To: freebsd-net@freebsd.org Date: Wed, 5 Oct 2011 11:58:21 -0500 User-Agent: KMail/1.13.7 (FreeBSD/8.2-STABLE; KDE/4.6.5; amd64; ; ) References: <201110042008.48915.break19@gmail.com> <20111005130936.GB38162@in-addr.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201110051158.21747.break19@gmail.com> Subject: Re: [urtw] Wifi link dying randomly. reboot required to reconnect. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2011 16:59:07 -0000 On Wednesday, October 05, 2011 9:52:21 AM Arnaud Lacombe wrote: > Hi, > > On Wed, Oct 5, 2011 at 9:09 AM, Gary Palmer wrote: > > On Tue, Oct 04, 2011 at 09:32:52PM -0500, Chuck Burns wrote: > >> On Tuesday, October 04, 2011 8:54:33 PM Chuck Burns wrote: > >> > >> > >> > I'm not sure how to rebuild just the module with that option > >> > URTW_DEBUG enabled.. I'm being told by some to just add the device to > >> > my kernel config along with the line "option URTW_DEBUG" .. but if > >> > there's a better way, let me know please. > >> > > >> > Also, I suppose that means if I want the "any" I sysctl > >> > hw.usb.urtw.debug=0xffffffff right? Still a bit green with regards to > >> > debugging. > >> > >> I wound up adding "#define URTW_DEBUG" to the top of the if_urtw.c file > >> and make install'ing the module from the proper subdirectory.. > > > > Just wanted to make sure that you unloaded and reloaded the module after > > the "make install"? > > actually, it is more tricky than that. > > The sysctl `hw.usb.urtw.debug' only exist when URTW_DEBUG is defined, > but the backing variable, `urtw_debug' is only used during attach to > initialize `sc->sc_debug'. So setting the sysctl afterward is useless, > the only real possibility is either to use the tunable, or directly > use the sysctl's variable in DPRINTF(): > I rebooted since the make install. :) Chuck Burns