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) 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. This was done while running: FreeBSD 8.1-STABLE #20 r214672: Tue Nov 2 04:19:13 PDT 2010 Peace, david -- David H. Wolfskill da...@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.
Script started on Tue Nov 2 08:45:28 2010 d130# ps axwwl | grep wpa_s 0 3528 3523 0 45 0 3500 1240 piperd S+ 18 0:00.01 grep wpa_s d130# wpa_supplicant -Dbsd -iwlan0 -c/etc/wpa_supplicant.conf -d Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'bsd' ctrl_interface 'N/A' bridge 'N/A' Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' Priority group 93 id=17 ssid='lmdhw-net' id=18 ssid='lmdhw-net' Priority group 85 id=19 ssid='NETGEAR' id=20 ssid='wifi' Priority group 17 id=0 ssid='DojoTest' Priority group 16 id=1 ssid='HackerDojoDownstairs' id=2 ssid='HackerDojoUpstairs' id=3 ssid='LINKEDIN-GUEST' id=4 ssid='LINKEDIN-GUEST' id=5 ssid='LINKEDIN-GUEST' id=6 ssid='LINKEDIN-GUEST' id=7 ssid='LINKEDIN-GUEST' id=8 ssid='LINKEDIN-GUEST' id=9 ssid='LINKEDIN-GUEST' id=10 ssid='LINKEDIN-GUEST' id=11 ssid='LINKEDIN-GUEST' id=12 ssid='LINKEDIN-GUEST' id=13 ssid='LINKEDIN-GUEST' id=14 ssid='LINKEDIN-GUEST' id=15 ssid='LINKEDIN-GUEST' id=16 ssid='LINKEDIN-GUEST' Initializing interface (2) 'wlan0' Own MAC address: 00:21:6a:26:34:c0 wpa_driver_bsd_set_wpa: enabled=1 wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1 wpa_driver_bsd_del_key: keyidx=0 wpa_driver_bsd_del_key: keyidx=1 wpa_driver_bsd_del_key: keyidx=2 wpa_driver_bsd_del_key: keyidx=3 wpa_driver_bsd_set_countermeasures: enabled=0 wpa_driver_bsd_set_drop_unencrypted: enabled=1 RSN: flushing PMKID list in the driver Setting scan request: 0 sec 100000 usec EAPOL: SUPP_PAE entering state DISCONNECTED EAPOL: KEY_RX entering state NO_KEY_RECEIVE EAPOL: SUPP_BE entering state INITIALIZE EAP: EAP entering state DISABLED Added interface wlan0 State: DISCONNECTED -> SCANNING Starting AP scan (broadcast SSID) Trying to get current scan results first without requesting a new scan to speed up initial association Received 0 bytes of scan results (0 BSSes) Scan results: 0 Cached scan results are empty - not posting Selecting BSS from priority group 93 Try to find WPA-enabled AP Try to find non-WPA AP Selecting BSS from priority group 85 Try to find WPA-enabled AP Try to find non-WPA AP Selecting BSS from priority group 17 Try to find WPA-enabled AP Try to find non-WPA AP Selecting BSS from priority group 16 Try to find WPA-enabled AP Try to find non-WPA AP No suitable AP found. Setting scan request: 0 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec EAPOL: disable timer tick Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec Starting AP scan (broadcast SSID) ioctl[SIOCS80211, op 103, len 128]: Device not configured Failed to initiate AP scan. Setting scan request: 10 sec 0 usec ^CCTRL-EVENT-TERMINATING - signal 2 received Removing interface wlan0 State: SCANNING -> DISCONNECTED No keys have been configured - skip key clearing EAPOL: External notification - portEnabled=0 EAPOL: External notification - portValid=0 wpa_driver_bsd_set_wpa: enabled=0 wpa_driver_bsd_set_wpa_internal: wpa=0 privacy=0 ioctl[SIOCS80211, op 26, arg 0x0]: Operation not supported Failed to disable WPA in the driver. wpa_driver_bsd_set_drop_unencrypted: enabled=0 wpa_driver_bsd_set_countermeasures: enabled=0 No keys have been configured - skip key clearing Cancelling scan request Cancelling authentication timeout wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1 ELOOP: remaining socket: sock=4 eloop_data=0x28406140 user_data=0x2840e040 handler=0x8069f90 d130# ^Dexit Script done on Tue Nov 2 08:49:28 2010
pgpcHCUKefWVh.pgp
Description: PGP signature