From owner-freebsd-net@FreeBSD.ORG Tue Dec 28 18:17:26 2010 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68E08106566B; Tue, 28 Dec 2010 18:17:26 +0000 (UTC) (envelope-from egrosbein@rdtc.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [62.231.161.221]) by mx1.freebsd.org (Postfix) with ESMTP id C6C228FC15; Tue, 28 Dec 2010 18:17:25 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.4/8.14.4) with ESMTP id oBSIHMcq006893; Wed, 29 Dec 2010 00:17:22 +0600 (NOVT) (envelope-from egrosbein@rdtc.ru) Message-ID: <4D1A29AD.4030103@rdtc.ru> Date: Wed, 29 Dec 2010 00:17:17 +0600 From: Eugene Grosbein User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; ru-RU; rv:1.9.1.10) Gecko/20100712 Thunderbird/3.0.5 MIME-Version: 1.0 To: Bernhard Schmidt References: <201012272024.37110.bschmidt@freebsd.org> <4D1A10C2.7070506@rdtc.ru> <201012281758.42484.bschmidt@freebsd.org> In-Reply-To: <201012281758.42484.bschmidt@freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: "net@freebsd.org" Subject: Re: CFT/CFR, possible fix for ifconfig scan hang 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: Tue, 28 Dec 2010 18:17:26 -0000 On 28.12.2010 22:58, Bernhard Schmidt wrote: > On Tuesday 28 December 2010 17:30:58 you wrote: >> On 28.12.2010 01:24, Bernhard Schmidt wrote: >>> I have a patch available which addresses both of the issues. It requests >>> a background scan by default and also honors the return value of >>> start_scan_locked(): >>> - for head >>> http://techwires.net/~bschmidt/scan_hang_head.diff >>> - for 8-stable/8.2-*: >>> http://techwires.net/~bschmidt/scan_hang_stable.diff >>> >>> Please test and let me know if it works, or not. >> >> It helps and works for urtw(4)/Realtek RTL8187B found in some notebooks, > > Thanks > >> thanks. However, it still takes 81 seconds for "ifconfig wlan0 up" to >> complete and I wonder why. Then "ifconfig wlan0 scan" works without delay >> (it was hanging forever without your patch). > > Is it really 81 seconds? or just 8.1, that's what I've got too. Really 81 seconds.