From owner-freebsd-net@FreeBSD.ORG Wed Oct 5 02:03:53 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 CEAF6106564A for ; Wed, 5 Oct 2011 02:03:53 +0000 (UTC) (envelope-from break19@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 865608FC0A for ; Wed, 5 Oct 2011 02:03:53 +0000 (UTC) Received: by ywp17 with SMTP id 17so1416264ywp.13 for ; Tue, 04 Oct 2011 19:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=resent-from:resent-to:resent-date:resent-message-id:from:to:subject :date:user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=dVeLN5JFLkQQhrR+gUshxjiVEzhBP50xIdnysT7nNB8=; b=Kwst8Fl25BdaYt3ltNAf2ifkcv7aJyJ/kr48NOmxrsGekwnaNiRZDgi3mXyikLTO3Y dSPJySNZYUMULcRDiiI2AibOV0nn8inpCg7ph/GreRi1G2xaGfAL9cJ8BQLxPf5xsguE jmdabb/xH4kJCz549AVZS1VFx8Wd532Z0qlRw= Received: by 10.236.176.166 with SMTP id b26mr10908058yhm.60.1317780232913; Tue, 04 Oct 2011 19:03:52 -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 l31sm91837yhi.15.2011.10.04.19.03.52 (version=SSLv3 cipher=OTHER); Tue, 04 Oct 2011 19:03:52 -0700 (PDT) Resent-From: Chuck Burns Resent-To: freebsd-net@freebsd.org Resent-Date: Tue, 4 Oct 2011 21:03:04 -0500 Resent-Message-ID: <201110042103.04675.break19@gmail.com> From: Chuck Burns To: Arnaud Lacombe Date: Tue, 4 Oct 2011 20:54:33 -0500 User-Agent: KMail/1.13.7 (FreeBSD/8.2-STABLE; KDE/4.6.5; amd64; ; ) References: <201110042008.48915.break19@gmail.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201110042054.33599.break19@gmail.com> Cc: 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 02:03:53 -0000 On Tuesday, October 04, 2011 8:31:02 PM you wrote: > Hi, > could you report that panic, please ? Well.. if I could get the dump to actually happen, I could report it correctly, as it is, I will likely just have to take a picture of the screen when it happens again, although the last few times the driver dies, I simply restart the machine, so no panic, but I'll let it panic the next time, and take a picture with a digital camera if I have to.. > can you try to rebuild the module with URTW_DEBUG enabled, then set > hw.usb.urtw.debug to any of the state in the following enum: > > enum { > URTW_DEBUG_XMIT = 0x00000001, /* basic xmit operation */ > URTW_DEBUG_RECV = 0x00000002, /* basic recv operation */ > URTW_DEBUG_RESET = 0x00000004, /* reset processing */ > URTW_DEBUG_TX_PROC = 0x00000008, /* tx ISR proc */ > URTW_DEBUG_RX_PROC = 0x00000010, /* rx ISR proc */ > URTW_DEBUG_STATE = 0x00000020, /* 802.11 state transitions */ > URTW_DEBUG_STAT = 0x00000040, /* statistic */ > URTW_DEBUG_INIT = 0x00000080, /* initialization of dev */ > URTW_DEBUG_TXSTATUS = 0x00000100, /* tx status */ > URTW_DEBUG_ANY = 0xffffffff > }; > > to see if anything useful pops up ? > 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. Thanks, Chuck