Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Dec 2014 08:07:28 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>, Nathan Whitehorn <nwhitehorn@freebsd.org>
Subject:   Re: Issues with urtwn
Message-ID:  <CAJ-VmonfAit1foTC-TowCdSbh0eGvL7KU2GVt8tfYAiX7xkx6w@mail.gmail.com>
In-Reply-To: <20141221101751.GA2138@unixarea.DDR.dd>
References:  <CAJ-Vmomhzsyn0k5Ym1=qm-LibJmW=8zb2LunYHNf4sSvWsP1=w@mail.gmail.com> <20141103054633.GA3258@unixarea.DDR.dd> <20141103095530.GA42402@unixarea.DDR.dd> <CAJ-Vmokn_Kqos%2B7HhN0EmB6JohD3g%2BVaXaqkhG-6%2BYZkgDoZFA@mail.gmail.com> <20141123163811.GA5739@unixarea.DDR.dd> <CAJ-VmomHguekQzfJ17gbK4_tTsuDPCfkDOjcTmviddDrmEEzoQ@mail.gmail.com> <20141219075339.GA1748@unixarea.DDR.dd> <CAJ-VmomFoRqnkKp0cyzC6sYKckXgrKQ%2B=nFJJKd18uqD2CMhDg@mail.gmail.com> <20141220105506.GA3170@unixarea.DDR.dd> <CAJ-Vmo=%2B%2BNXjKpEQ-=fh9AMgB_%2B_dxYCytG9A2GMqeE5LEKjdw@mail.gmail.com> <20141221101751.GA2138@unixarea.DDR.dd>

next in thread | previous in thread | raw e-mail | index | archive | help
Sweet, which version of -HEAD did you end up updating to?



-adrian


On 21 December 2014 at 02:17, Matthias Apitz <guru@unixarea.de> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmonfAit1foTC-TowCdSbh0eGvL7KU2GVt8tfYAiX7xkx6w>