From owner-freebsd-wireless@FreeBSD.ORG Sun Dec 21 16:07:30 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C8F8A4EA; Sun, 21 Dec 2014 16:07:30 +0000 (UTC) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 676D52CDE; Sun, 21 Dec 2014 16:07:30 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id r20so5947490wiv.14; Sun, 21 Dec 2014 08:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=4vm78U3y+38v1jqbTQ4jjXis/X4pBscfODKsGERNIVU=; b=LvZuIVOMOh/VRsqYR5PRa1R2QBGaVm+sHJlkv20BQckxeu8D6zzkHTD8ZFdxl5/xs9 qqVrAt3mxFO4lqdBZunvoNhVSQjk24ATT48KqtH7hUVT/FbTNph//WAjQ8fbXo52xuaU Hrpxxz9NrPokObQH8jxS40odtwDtwn7RlOrLMc8/BEX5ksDW6BWqhV0hFXbkV0kLI77h acF+8wnyiBERX5c7KbnMKksVmvobYkWRjSNqno1/IvDJJ/xo8t8k0mjhg/MD+dHMM9hH SC6BTtPDpqogH5LqFcSpPZ3clUcF2HdBwT/RIiHLcAyVSQ89WkPUT0U62X4m2tHtu9Zg WcDA== MIME-Version: 1.0 X-Received: by 10.194.24.103 with SMTP id t7mr33863788wjf.15.1419178048855; Sun, 21 Dec 2014 08:07:28 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.106.195 with HTTP; Sun, 21 Dec 2014 08:07:28 -0800 (PST) In-Reply-To: <20141221101751.GA2138@unixarea.DDR.dd> References: <20141103054633.GA3258@unixarea.DDR.dd> <20141103095530.GA42402@unixarea.DDR.dd> <20141123163811.GA5739@unixarea.DDR.dd> <20141219075339.GA1748@unixarea.DDR.dd> <20141220105506.GA3170@unixarea.DDR.dd> <20141221101751.GA2138@unixarea.DDR.dd> Date: Sun, 21 Dec 2014 08:07:28 -0800 X-Google-Sender-Auth: uip56S0fOkJNQANKvtachwQO4_o Message-ID: Subject: Re: Issues with urtwn From: Adrian Chadd To: Matthias Apitz Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-wireless@freebsd.org" , Nathan Whitehorn 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: Sun, 21 Dec 2014 16:07:31 -0000 Sweet, which version of -HEAD did you end up updating to? -adrian On 21 December 2014 at 02:17, Matthias Apitz wrote: > El d=C3=ADa Saturday, December 20, 2014 a las 11:41:43AM -0800, Adrian Ch= add escribi=C3=B3: > >> It's a race condition in the scan handling. :( >> >> When scan is cancelled (eg because something cancels it, or the state >> transitions to IDLE or something because the VAP resets) then it >> should be setting a flag to cancel things and the VAP should come out >> of powerstate. >> >> However, there seems to be some conditions where the scan is coming >> out of that loop because it's been aborted/stopped, so it's not >> complete - but then it stays in powersave mode because whatever's >> supposed to either change it (eg a state change, a received becaon, >> TIM coming in, etc) doesn't follow. So it stays in power save. >> >> The driver routines are called without the comlock held, so that's a >> small, narrow window for some state change to come through that >> doesn't trigger the scan code to see the scan is canceled and "finish" >> the scan (which would reset the vap powersave state.) >> >> I've added another cancel check in scan_task(). Please update this and >> see what happens! >> > > Hi Adrian, > > It works fine now, see the attached log. > > Thanks and =C2=A1Feliz Navidad! > > matthias > > > -- > Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211 > 1989-2014: The Wall was torn down so that we go to war together again. > El Muro ha sido derribado para que nos unimos en ir a la guerra otra vez. > Diese Grenze wurde aufgehoben damit wir gemeinsam wieder in den Krieg zie= hen.