iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9

乔楚/HonestQiao honestqiao at gmail.com
Mon Jul 30 16:32:48 UTC 2012


On 30 July 2012 03:01, Adrian Chadd <adrian at freebsd.org> wrote:
>Hi,
>
>What's your /etc/wpa_supplicant.conf file look like?
>
>And what's the output of 'ifconfig wlan0 list scan' look like?
>
>
>Adrian
>
>

******************** In Company ******************
#ifconfig iwn0
iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
	ether 8c:xx:82:yy:41:zz
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng
	status: associated
#ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 8c:xx:82:yy:41:zz
	inet 192.168.61.171 netmask 0xffffff00 broadcast 192.168.61.255
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11ng
	status: associated
	ssid COMPANY-AP channel 2 (2417 MHz 11g ht/20) bssid c0:xx:20:yy:69:zz
	country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
	AES-CCM 2:128-bit txpower 14 bmiss 10 scanvalid 450 bgscan
	bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 64 protmode CTS
	ampdulimit 64k ampdudensity 8 -amsdutx amsdurx shortgi wme
	roaming MANUAL
#ifconfig wlan0 list scan
SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
COMPANY-AP         c0:xx:20:yy:69:zz    2   54M -68:-95  100 EPS  WME HTCAP RSN
#cat /etc/wpa_supplicant.conf
# /etc/wpa_supplicant.conf written by wifimgr(8)

	ctrl_interface=/var/run/wpa_supplicant
	ctrl_interface_group=wheel

network={
	ssid="COMPANY-AP"
	#+ any_bssid
	key_mgmt=WPA-PSK
	proto=RSN
	psk="Wifi-pwd"
}

******************** In Home/WEP ******************
#ifconfig iwn0
iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
	ether 8c:xx:82:yy:41:zz
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
	status: associated
#ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 8c:xx:82:yy:41:zz
	inet 192.168.1.11 netmask 0xffffff00 broadcast 192.168.1.255
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
	status: associated
	ssid OpenBSD channel 11 (2462 MHz 11g) bssid 8c:xx:0a:yy:ef:zz
	country US authmode OPEN privacy ON deftxkey 1 wepkey 1:104-bit
	txpower 14 bmiss 10 scanvalid 450 bgscan bgscanintvl 300
	bgscanidle 250 roam:rssi 7 roam:rate 5 protmode CTS wme roaming MANUAL
#ifconfig wlan0 list scan
SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
OpenBSD         8c:xx:0a:yy:ef:zz   11   54M -64:-95  100 EPS  WME ATH WPS
#cat /etc/wpa_supplicant.conf
# /etc/wpa_supplicant.conf written by wifimgr(8)

	ctrl_interface=/var/run/wpa_supplicant
	ctrl_interface_group=wheel

network={
	#: HomwAP-WEP
	ssid="OpenBSD"
	bssid=8c:xx:0a:yy:ef:zz
	key_mgmt=NONE
	wep_tx_keyidx=0
	wep_key0="1234567890123"
}

#wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Trying to associate with 8c:xx:0a:yy:ef:zz (SSID='OpenBSD' freq=2462 MHz)
Associated with 8c:xx:0a:yy:ef:zz
CTRL-EVENT-CONNECTED - Connection to 8c:xx:0a:yy:ef:zz completed (auth) [id=0 id_str=]


******************** In Home/WAP-PSK ******************
#ifconfig iwn0
iwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
	ether 8c:xx:82:yy:41:zz
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
	status: associated
#ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 8c:xx:82:yy:41:zz
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
	status: no carrier
	ssid "" channel 12 (2467 MHz 11g)
	country US authmode WPA1+WPA2/802.11i privacy OFF deftxkey 1
	txpower 14 bmiss 10 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250
	roam:rssi 7 roam:rate 5 protmode CTS wme
#ifconfig wlan0 list scan
SSID/MESH ID    BSSID              CHAN RATE   S:N     INT CAPS
0x0b0717000...  8c:xx:0a:yy:ef:zz   11   54M -65:-95  100 EPS  RSN HTCAP MESHCONF WME ATH WPS
#cat /etc/wpa_supplicant.conf
# /etc/wpa_supplicant.conf written by wifimgr(8)

	ctrl_interface=/var/run/wpa_supplicant
	ctrl_interface_group=wheel

network={
	#: HomeAP-WPA
	ssid="0x0b071700000000000000" #Try to set "OpenBSD", but no effect.
	bssid=8c:xx:0a:yy:ef:zz
	key_mgmt=WPA-PSK
	proto=RSN
	psk="1234567890"
}

#wpa_supplicant -dd -i wlan0 -c /etc/wpa_supplicant.conf
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='wheel'
Line: 6 - start of a new network block
ssid - hexdump_ascii(len=7):
     4f 70 65 6e 42 53 44                              OpenBSD         
BSSID - hexdump(len=6): 8c xx 0a yy ef zz
key_mgmt: 0x2
proto: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=11): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='OpenBSD'
Own MAC address: 8c:xx:82:yy:41:zz
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
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
ctrl_interface_group=0 (from group name 'wheel')
Added interface wlan0
State: DISCONNECTED -> SCANNING
Starting AP scan for wildcard SSID
Received 424 bytes of scan results (1 BSSes)
BSS: Start scan result update 1
BSS: Add new id 0 BSSID 8c:xx:0a:yy:ef:zz SSID 'OpenBSD'
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 8c:xx:0a:yy:ef:zz ssid='OpenBSD' wpa_ie_len=0 rsn_ie_len=0 caps=0x31
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 8c:xx:0a:yy:ef:zz ssid='OpenBSD' wpa_ie_len=0 rsn_ie_len=0 caps=0x31
   skip - non-WPA network not allowed
No suitable network found
Setting scan request: 5 sec 0 usec
EAPOL: disable timer tick
EAPOL: Supplicant port status: Unauthorized
Starting AP scan for wildcard SSID
Received 612 bytes of scan results (2 BSSes)
BSS: Start scan result update 2
BSS: Add new id 1 BSSID 00:1d:0f:90:1d:c8 SSID 'TP-LINK'
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:1d:0f:90:1d:c8 ssid='TP-LINK' wpa_ie_len=26 rsn_ie_len=24 caps=0x31
   skip - SSID mismatch
1: 8c:xx:0a:yy:ef:zz ssid='OpenBSD' wpa_ie_len=0 rsn_ie_len=0 caps=0x31
   skip - no WPA/RSN IE
Try to find non-WPA AP
0: 00:1d:0f:90:1d:c8 ssid='TP-LINK' wpa_ie_len=26 rsn_ie_len=24 caps=0x31
   skip - SSID mismatch
1: 8c:xx:0a:yy:ef:zz ssid='OpenBSD' wpa_ie_len=0 rsn_ie_len=0 caps=0x31
   skip - non-WPA network not allowed
No suitable network found
Setting scan request: 5 sec 0 usec
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface wlan0
No keys have been configured - skip key clearing
State: SCANNING -> DISCONNECTED
EAPOL: External notification - portEnabled=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portValid=0
EAPOL: Supplicant port status: Unauthorized
wpa_driver_bsd_set_countermeasures: enabled=0
No keys have been configured - skip key clearing
BSS: Remove id 1 BSSID 00:1d:0f:90:1d:c8 SSID 'TP-LINK'
BSS: Remove id 0 BSSID 8c:xx:0a:yy:ef:zz SSID 'OpenBSD'
Cancelling scan request
Cancelling authentication timeout
wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=0
ELOOP: remaining socket: sock=4 eloop_data=0x80140f300 user_data=0x80143c080 handler=0x4280e0



More information about the freebsd-wireless mailing list