From owner-freebsd-net@FreeBSD.ORG Tue Jan 18 19:50:16 2011 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 07E3D1065732; Tue, 18 Jan 2011 19:50:16 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id BFF3C8FC1D; Tue, 18 Jan 2011 19:50:15 +0000 (UTC) Received: by pwi10 with SMTP id 10so8931pwi.13 for ; Tue, 18 Jan 2011 11:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:date:to:cc:subject:message-id:reply-to :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:organization :x-operation-sytem; bh=ljBX7zYf/nFeMnENpYgLa11+Xng6drec2zaGNdQ0OmE=; b=AC5atlIKn9DwGRwanUcps3t77NqLQvDZlA9rYGII21VR0slcXKiQ9/5nsFUFEepHfL DJt2hoUXDFo0k2TMct6iHeLY6Grj2zoV1JLriAoDiDVizBo3ByreokROj0lKx89Mb2y6 5RsITaAwXmWivdM1jEB+w5JpKWIhHxduBZEyQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent:organization:x-operation-sytem; b=WPAHzPP+yPRnmLHh74VZTsLwvosG+3eJ1u3fhRqQMz9Xg9UevLMJthwyGy2DzkIH/O /aQ0pfv8+Stz9gew6xgOZyV9MwJLHbvwj0jguwtjdqXBBm1bMlTlKZGgM4/zo7NSCM1w RFOaA22XdgJ8Kug8VqszDbtQR1vLl6DL20XSU= Received: by 10.142.49.20 with SMTP id w20mr5559638wfw.348.1295378821413; Tue, 18 Jan 2011 11:27:01 -0800 (PST) Received: from weongyo ([174.35.1.224]) by mx.google.com with ESMTPS id y42sm8459663wfd.22.2011.01.18.11.26.53 (version=SSLv3 cipher=RC4-MD5); Tue, 18 Jan 2011 11:26:55 -0800 (PST) Received: by weongyo (sSMTP sendmail emulation); Tue, 18 Jan 2011 11:27:51 -0800 From: Weongyo Jeong Date: Tue, 18 Jan 2011 11:27:51 -0800 To: Eugene Grosbein Message-ID: <20110118192751.GJ1755@weongyo> Mail-Followup-To: Eugene Grosbein , Bernhard Schmidt , "net@freebsd.org" References: <201012272024.37110.bschmidt@freebsd.org> <4D1A10C2.7070506@rdtc.ru> <201012281758.42484.bschmidt@freebsd.org> <4D1A29AD.4030103@rdtc.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D1A29AD.4030103@rdtc.ru> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: "net@freebsd.org" , Bernhard Schmidt Subject: Re: CFT/CFR, possible fix for ifconfig scan hang X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Weongyo Jeong List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2011 19:50:16 -0000 On Wed, Dec 29, 2010 at 12:17:17AM +0600, Eugene Grosbein wrote: > 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. Too late to response that I came back from vacation and today I reached this email on my mailbox queue. It seems I also need to test but taking long time to initialize the device is true. I also couldn't understand why the realtek vendor added long and many delays or pauses at their sources. regards, Weongyo Jeong