Date: Tue, 2 Nov 2010 08:53:10 -0700 From: David Wolfskill <david@catwhisker.org> To: Bernhard Schmidt <bschmidt@freebsd.org> Cc: current@freebsd.org Subject: Re: wpa_supplicant gets points for trying, I suppose.... Message-ID: <20101102155310.GF1506@albert.catwhisker.org> In-Reply-To: <201011020840.54931.bschmidt@freebsd.org> References: <20101101222510.GY1506@albert.catwhisker.org> <AANLkTi=8FvPmT01zJSg6QQ4eiWsQXu9Q%2B-PUnNzZrgSr@mail.gmail.com> <201011020840.54931.bschmidt@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--7e8BFhNxqpjiNKz7 Content-Type: multipart/mixed; boundary="qih7n4MdZQ4fb9uN" Content-Disposition: inline --qih7n4MdZQ4fb9uN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 wireless > > > device (iwn(4)). Is there some way wpa_supplicant (or something) mig= ht > > > be able to recognize that this is a pointless exercise? > >=20 > > Well iwn could bring device down when radio is turned off and > > bring it up when radio is turned on ??? >=20 > Well, that should actually be the case. I don't see how it might differ= =20 > between stable/8 and head. >=20 > 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? >=20 > > > 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. This was done while running: FreeBSD 8.1-STABLE #20 r214672: Tue Nov 2 04:19:13 PDT 2010 Peace, david --=20 David H. Wolfskill david@catwhisker.org Depriving a girl or boy of an opportunity for education is evil. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --qih7n4MdZQ4fb9uN Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="wpa.txt" Content-Transfer-Encoding: quoted-printable Script started on Tue Nov 2 08:45:28 2010 =0D d130# ps axwwl | grep wpa_s=0D=0D 0 3528 3523 0 45 0 3500 1240 piperd S+ 18 0:00.01 grep wp= a_s=0D d130# wpa_supplicant -Dbsd -iwlan0 -c/etc/wpa_supplicant.conf -d=0D=0D Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'bsd'= ctrl_interface 'N/A' bridge 'N/A'=0D Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'= =0D Reading configuration file '/etc/wpa_supplicant.conf'=0D Priority group 93=0D id=3D17 ssid=3D'lmdhw-net'=0D id=3D18 ssid=3D'lmdhw-net'=0D Priority group 85=0D id=3D19 ssid=3D'NETGEAR'=0D id=3D20 ssid=3D'wifi'=0D Priority group 17=0D id=3D0 ssid=3D'DojoTest'=0D Priority group 16=0D id=3D1 ssid=3D'HackerDojoDownstairs'=0D id=3D2 ssid=3D'HackerDojoUpstairs'=0D id=3D3 ssid=3D'LINKEDIN-GUEST'=0D id=3D4 ssid=3D'LINKEDIN-GUEST'=0D id=3D5 ssid=3D'LINKEDIN-GUEST'=0D id=3D6 ssid=3D'LINKEDIN-GUEST'=0D id=3D7 ssid=3D'LINKEDIN-GUEST'=0D id=3D8 ssid=3D'LINKEDIN-GUEST'=0D id=3D9 ssid=3D'LINKEDIN-GUEST'=0D id=3D10 ssid=3D'LINKEDIN-GUEST'=0D id=3D11 ssid=3D'LINKEDIN-GUEST'=0D id=3D12 ssid=3D'LINKEDIN-GUEST'=0D id=3D13 ssid=3D'LINKEDIN-GUEST'=0D id=3D14 ssid=3D'LINKEDIN-GUEST'=0D id=3D15 ssid=3D'LINKEDIN-GUEST'=0D id=3D16 ssid=3D'LINKEDIN-GUEST'=0D Initializing interface (2) 'wlan0'=0D Own MAC address: 00:21:6a:26:34:c0=0D wpa_driver_bsd_set_wpa: enabled=3D1=0D wpa_driver_bsd_set_wpa_internal: wpa=3D3 privacy=3D1=0D wpa_driver_bsd_del_key: keyidx=3D0=0D wpa_driver_bsd_del_key: keyidx=3D1=0D wpa_driver_bsd_del_key: keyidx=3D2=0D wpa_driver_bsd_del_key: keyidx=3D3=0D wpa_driver_bsd_set_countermeasures: enabled=3D0=0D wpa_driver_bsd_set_drop_unencrypted: enabled=3D1=0D RSN: flushing PMKID list in the driver=0D Setting scan request: 0 sec 100000 usec=0D EAPOL: SUPP_PAE entering state DISCONNECTED=0D EAPOL: KEY_RX entering state NO_KEY_RECEIVE=0D EAPOL: SUPP_BE entering state INITIALIZE=0D EAP: EAP entering state DISABLED=0D Added interface wlan0=0D State: DISCONNECTED -> SCANNING=0D Starting AP scan (broadcast SSID)=0D Trying to get current scan results first without requesting a new scan to s= peed up initial association=0D Received 0 bytes of scan results (0 BSSes)=0D Scan results: 0=0D Cached scan results are empty - not posting=0D Selecting BSS from priority group 93=0D Try to find WPA-enabled AP=0D Try to find non-WPA AP=0D Selecting BSS from priority group 85=0D Try to find WPA-enabled AP=0D Try to find non-WPA AP=0D Selecting BSS from priority group 17=0D Try to find WPA-enabled AP=0D Try to find non-WPA AP=0D Selecting BSS from priority group 16=0D Try to find WPA-enabled AP=0D Try to find non-WPA AP=0D No suitable AP found.=0D Setting scan request: 0 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D EAPOL: disable timer tick=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D Starting AP scan (broadcast SSID)=0D ioctl[SIOCS80211, op 103, len 128]: Device not configured=0D Failed to initiate AP scan.=0D Setting scan request: 10 sec 0 usec=0D ^CCTRL-EVENT-TERMINATING - signal 2 received=0D Removing interface wlan0=0D State: SCANNING -> DISCONNECTED=0D No keys have been configured - skip key clearing=0D EAPOL: External notification - portEnabled=3D0=0D EAPOL: External notification - portValid=3D0=0D wpa_driver_bsd_set_wpa: enabled=3D0=0D wpa_driver_bsd_set_wpa_internal: wpa=3D0 privacy=3D0=0D ioctl[SIOCS80211, op 26, arg 0x0]: Operation not supported=0D Failed to disable WPA in the driver.=0D wpa_driver_bsd_set_drop_unencrypted: enabled=3D0=0D wpa_driver_bsd_set_countermeasures: enabled=3D0=0D No keys have been configured - skip key clearing=0D Cancelling scan request=0D Cancelling authentication timeout=0D wpa_driver_bsd_set_wpa_internal: wpa=3D3 privacy=3D1=0D ELOOP: remaining socket: sock=3D4 eloop_data=3D0x28406140 user_data=3D0x284= 0e040 handler=3D0x8069f90=0D d130# ^D=08=08exit=0D Script done on Tue Nov 2 08:49:28 2010 --qih7n4MdZQ4fb9uN-- --7e8BFhNxqpjiNKz7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAkzQM+YACgkQmprOCmdXAD01vACghzv5UojV02g3vX/rv1K6RYwy Y54An3zoO2XqfVss3dRL2P9etyxTHBPb =X0fj -----END PGP SIGNATURE----- --7e8BFhNxqpjiNKz7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101102155310.GF1506>