Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Oct 2011 11:58:21 -0500
From:      Chuck Burns <break19@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   Re: [urtw] Wifi link dying randomly. reboot required to reconnect.
Message-ID:  <201110051158.21747.break19@gmail.com>
In-Reply-To: <CACqU3MWV85GrivsZyv38XE3ye4aUYvvy-%2BLfC0vrOQ6jM_M0JA@mail.gmail.com>
References:  <201110042008.48915.break19@gmail.com> <20111005130936.GB38162@in-addr.com> <CACqU3MWV85GrivsZyv38XE3ye4aUYvvy-%2BLfC0vrOQ6jM_M0JA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, October 05, 2011 9:52:21 AM Arnaud Lacombe wrote:
> Hi,
> 
> On Wed, Oct 5, 2011 at 9:09 AM, Gary Palmer <gpalmer@freebsd.org> 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:
> >> <snip>
> >> 
> >> > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110051158.21747.break19>