From owner-freebsd-wireless@FreeBSD.ORG Tue Sep 9 04:33:55 2014 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 87A635C2 for ; Tue, 9 Sep 2014 04:33:55 +0000 (UTC) Received: from ns.kevlo.org (220-135-115-6.HINET-IP.hinet.net [220.135.115.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns.kevlo.org", Issuer "ns.kevlo.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 235E3B02 for ; Tue, 9 Sep 2014 04:33:54 +0000 (UTC) Received: from ns.kevlo.org (localhost [127.0.0.1]) by ns.kevlo.org (8.14.8/8.14.8) with ESMTP id s894WMgG018634 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 9 Sep 2014 12:32:22 +0800 (CST) (envelope-from kevlo@ns.kevlo.org) Received: (from kevlo@localhost) by ns.kevlo.org (8.14.8/8.14.8/Submit) id s894WLwP018632; Tue, 9 Sep 2014 12:32:21 +0800 (CST) (envelope-from kevlo) Date: Tue, 9 Sep 2014 12:32:21 +0800 From: Kevin Lo To: Carlos Jacobo Puga Medina Subject: Re: TP-LINK TL-WN821N Message-ID: <20140909043220.GA18621@ns.kevlo.org> References: <20140707211035.5ce0a482fe062bc1ea64ace7@fbsd.es> <20140708022220.GA87876@ns.kevlo.org> <20140708124550.c60683f2c01f3f9aa6a4ff70@fbsd.es> <20140709100229.GA6733@ns.kevlo.org> <20140709154223.9623a93c2d458dc32339b554@fbsd.es> <20140710050524.GA14437@ns.kevlo.org> <20140710112344.86496b02b2d62197a1e467ba@fbsd.es> <20140710100317.GA16286@ns.kevlo.org> <20140824180120.37f6e1018e38dc970585e61e@fbsd.es> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140824180120.37f6e1018e38dc970585e61e@fbsd.es> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 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, 09 Sep 2014 04:33:55 -0000 On Sun, Aug 24, 2014 at 06:01:20PM +0200, Carlos Jacobo Puga Medina wrote: > > Hi Kevin, Hi, Sorry for the late response. > Sometimes my wireless device fails to connect at boot, and I need to restart the system. Also it states that the device is not configured. > > /boot/loader.conf > if_urtwn_load="YES" > legal.realtek.license_ack=1 You might add the following lines to /boot/loader.conf: urtwn-rtl8192cfwT_load="YES" urtwn-rtl8192cfwU_load="YES" > It shows the following output: > > urtwn0: timeout waiting for checksum report > > Any thoughts? I thought this problem was fixed in r263154, but apparently not. Could you try this patch? Thanks Index: sys/dev/usb/wlan/if_urtwn.c =================================================================== --- sys/dev/usb/wlan/if_urtwn.c (revision 271297) +++ sys/dev/usb/wlan/if_urtwn.c (working copy) @@ -2280,8 +2280,6 @@ urtwn_fw_reset(struct urtwn_softc *sc) return; urtwn_ms_delay(sc); } - /* Force 8051 reset. */ - urtwn_write_2(sc, R92C_SYS_FUNC_EN, reg & ~R92C_SYS_FUNC_EN_CPUEN); } static void