From owner-freebsd-current@FreeBSD.ORG Tue Nov 2 18:06:03 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68E7D1065696 for ; Tue, 2 Nov 2010 18:06:03 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id EBB428FC1C for ; Tue, 2 Nov 2010 18:06:02 +0000 (UTC) Received: by wyb42 with SMTP id 42so6909385wyb.13 for ; Tue, 02 Nov 2010 11:06:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=BCmNN3tAcELN3mPTVT6HSARe7AALEY5eX9LmbX36R5g=; b=aDFcwuPhmiOC8Df3sjEoZW0Y0JNYeFmoCJTjYGrgba61ppZG23OnT5vHSVOouCeoMp MlVhEnQe4p+Mk3ciEtA04WagTX1zp8xZH+oD+z1vn10Fdih9V3xo/c/1tCiGkp/wWCKn 0xJD97roWR5YRyMj65fhnb3Hwintm/9AyB/Ck= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=ZKMo3ujxDc8SuThlAqHTVvuhPFylbpAJ3f8uysB4DKyu2XjXafE4wQEzxRfAE7M62V 2aMmNySGqfjI2LmrBSbyg42+hZG3SuhrWrB9y+Xo9PRCxB3FNIqXrHdGBM3VmCLUgRsV JLYifQjQ3I064g8DATLEcpq9q8adwowN5GWDA= MIME-Version: 1.0 Received: by 10.216.46.200 with SMTP id r50mr1401943web.45.1288721160788; Tue, 02 Nov 2010 11:06:00 -0700 (PDT) Sender: yanegomi@gmail.com Received: by 10.216.198.27 with HTTP; Tue, 2 Nov 2010 11:06:00 -0700 (PDT) In-Reply-To: References: <20101101222510.GY1506@albert.catwhisker.org> <201011020840.54931.bschmidt@freebsd.org> <20101102155310.GF1506@albert.catwhisker.org> Date: Tue, 2 Nov 2010 11:06:00 -0700 X-Google-Sender-Auth: qU65l6swSoV_XKa1V36hG-Zxw7A Message-ID: From: Garrett Cooper To: Bernhard Schmidt Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: current@freebsd.org Subject: Re: wpa_supplicant gets points for trying, I suppose.... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2010 18:06:03 -0000 On Tue, Nov 2, 2010 at 10:30 AM, Bernhard Schmidt wr= ote: > On Tue, Nov 2, 2010 at 16:53, David Wolfskill wrot= e: >> 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 wireles= s >>> > > 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 differ >>> 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. Device 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. Cheers, -Garrett