Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Nov 2010 19:35:14 +0100
From:      Bernhard Schmidt <bschmidt@freebsd.org>
To:        Garrett Cooper <gcooper@freebsd.org>
Cc:        current@freebsd.org
Subject:   Re: wpa_supplicant gets points for trying, I suppose....
Message-ID:  <AANLkTimXo8CUWnUpQCnpGdaUOG_QtmLhYqY%2B_rH3nNSS@mail.gmail.com>
In-Reply-To: <AANLkTi=JJbpLt8W_J4r6=A3mAQLqV-b7PdS1t%2BFnM-VO@mail.gmail.com>
References:  <20101101222510.GY1506@albert.catwhisker.org> <AANLkTi=8FvPmT01zJSg6QQ4eiWsQXu9Q%2B-PUnNzZrgSr@mail.gmail.com> <201011020840.54931.bschmidt@freebsd.org> <20101102155310.GF1506@albert.catwhisker.org> <AANLkTik=fSknU6LfmAdbh1Lk-idEU7BwKaPmi1qCxnk3@mail.gmail.com> <AANLkTi=JJbpLt8W_J4r6=A3mAQLqV-b7PdS1t%2BFnM-VO@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 2, 2010 at 19:06, Garrett Cooper <gcooper@freebsd.org> wrote:
> On Tue, Nov 2, 2010 at 10:30 AM, Bernhard Schmidt <bschmidt@freebsd.org> =
wrote:
>> On Tue, Nov 2, 2010 at 16:53, David Wolfskill <david@catwhisker.org> wro=
te:
>>> On Tue, Nov 02, 2010 at 08:40:54AM +0100, Bernhard Schmidt wrote:
>>>> ....
>>>> > > I have the switch on this laptop in position to disable the wirele=
ss
>>>> > > device (iwn(4)). =A0Is there some way wpa_supplicant (or something=
) might
>>>> > > be able to recognize that this is a pointless exercise?
>>>> >
>>>> > Well iwn could bring device down when radio is turned off and
>>>> > bring it up when radio is turned on ???
>>>>
>>>> Well, that should actually be the case. I don't see how it might diffe=
r
>>>> between stable/8 and head.
>>>>
>>>> Can you post the output of
>>>> wpa_supplicant -Dbsd -iwlan0 -c/etc/wpa_supplicant.conf -d
>>>> while the RF kill button is in disabled state?
>>>>
>>>> > > I don't recall stable/8 doing this, though I could be wrong.
>>>
>>> Next time I booted stable/8, I checked /var/log/messages, and verified
>>> that wpa_supplicant is also persistent in that environment.
>>>
>>> So I did the above within script(1); I've attached a copy of the
>>> typescript file. =A0This was done while running:
>>>
>>> FreeBSD 8.1-STABLE #20 r214672: Tue Nov =A02 04:19:13 PDT 2010
>>
>> Thanks. I had quick look into that and I currently do not see an easy
>> way to address that issue, as in tell wpa_supplicant about the device's
>> state. This might change though once a newer wpa_supplicant has been
>> imported.
>>
>> For now just add wpa_supplicant_flags=3D"-qqqq" to rc.conf.
>
> =A0 =A0Device states could and should be periodically polled via the
> SIOCGIFMEDIA ioctl, but currently isn't (even in the CURRENT version
> of wpa_supplicant). This seems like a worthy enhancement.

Not necessarily, we have a event based facility for that, the functions
are empty though because the consumer, wpa_supplicant, is not able to
make any use of it. There were some changes in 0.7 for interface states
but I'm not sure what exactly changed, it might be possible to use
events for the 'rfkill on' case, the 'rfkill off' might still need
polling..

Once Rui has imported the new wpa stuff, someone should implemented
the proper calls :)

--
Bernhard



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimXo8CUWnUpQCnpGdaUOG_QtmLhYqY%2B_rH3nNSS>