On Monday 09 October 2006 16:35, Andrew N. Below wrote:
> I have an Asus V6V (V6800) laptop with Intel wireless adapter:
> iwi0: <Intel(R) PRO/Wireless 2200BG
>
> and FreeBSD installed:
>
> defanbook# uname -v
> FreeBSD 6.2-PRERELEASE #3: Mon Oct 9 17:40:59 UTC 2006
>
> I want to connect to access point (cisco 350) with
> hidden (not broadcasted) SSID using WPA/TKIP authentication
> but still got no success.
>
> Here is my wpa_supplicant.conf:
>
> =======================
> ctrl_interface=/var/run/wpa_supplicant
> ctrl_interface_group=0
> eapol_version=1
> ap_scan=1
> fast_reauth=1
>
> network={
> ssid="MY-SSID"
> scan_ssid=1
> key_mgmt=WPA-PSK
> proto=WPA
> pairwise=TKIP
> group=TKIP
> psk="PASSPHRASE"
> phase2="auth=MSCHAPV2"
> }
> =======================
>
> Here is wpa_supplicant output:
>
> defanbook# wpa_supplicant -ddKt -i iwi0 -c /etc/wpa_supplicant.conf
<snipp>
> Oct 09 18:24:41.372235: Starting AP scan (specific SSID)
> Oct 09 18:24:41.372242: Scan SSID - hexdump_ascii(len=11):
> [MY-SSID]
> Oct 09 18:24:43.021948: Received 0 bytes of scan results (4 BSSes)
> Oct 09 18:24:43.021982: Scan results: 4
> Oct 09 18:24:43.021992: Selecting BSS from priority group 0
> Oct 09 18:24:43.021998: 0: 00:07:0e:b8:d8:ee ssid='' wpa_ie_len=26
> rsn_ie_len=0 caps=0x31
> Oct 09 18:24:43.022008: skip - SSID mismatch
> Oct 09 18:24:43.022014: 1: 02:3f:2d:21:0e:c2 ssid='ANY' wpa_ie_len=0
> rsn_ie_len=0 caps=0x2
> Oct 09 18:24:43.022023: skip - no WPA/RSN IE
> Oct 09 18:24:43.022029: 2: 00:60:b3:d4:0d:76 ssid='ADSL_Wireless'
> wpa_ie_len=0 rsn_ie_len=0 caps=0x61
> Oct 09 18:24:43.022038: skip - no WPA/RSN IE
> Oct 09 18:24:43.022044: 3: 00:14:6c:55:24:4a ssid='' wpa_ie_len=0
> rsn_ie_len=0 caps=0x11
> Oct 09 18:24:43.022052: skip - no WPA/RSN IE
> Oct 09 18:24:43.022058: No suitable AP found.Is any of the above the AP you are looking for? (i.e. right bssid). > Oct 09 18:24:43.022066: Setting scan request: 5 sec 0 usec > Oct 09 18:24:48.023226: Starting AP scan (broadcast SSID) > Oct 09 18:24:49.501060: Received 0 bytes of scan results (2 BSSes) > Oct 09 18:24:49.501070: Scan results: 2 Strange, why would a broadcast SSID scan turn up less BSSes? Can you make sure you have the dev.iwi.0.antenna sysctl set to "0"? > Oct 09 18:24:49.501077: Selecting BSS from priority group 0 > Oct 09 18:24:49.501083: 0: 00:07:0e:b8:d8:ee ssid='' wpa_ie_len=26 > rsn_ie_len=0 caps=0x31 > Oct 09 18:24:49.501092: skip - SSID mismatch > Oct 09 18:24:49.501098: 1: 00:14:6c:55:24:4a ssid='' wpa_ie_len=0 > rsn_ie_len=0 caps=0x11 > Oct 09 18:24:49.501106: skip - no WPA/RSN IE > Oct 09 18:24:49.501112: No suitable AP found. > As we can see, it just repeats specific and broadcast SSID scan > in cycle, but always says "No suitable AP found" and "SSID mismatch". > While this process is running I can see more and more > "Number of frames with a bad CRC receive" with the iwicontrol utility. iwicontrol? That's no longer useful. If you really have > defanbook# uname -v > FreeBSD 6.2-PRERELEASE #3: Mon Oct 9 17:40:59 UTC 2006 you should have removed net/iwi-firmware and replaced it with net/iwi-firmware-kmod as stated in UPDATING. > On another FreeBSD box with 6.1-release and same version of > wpa_supplicant, but with another USB wireless device (ural) all works > fine. I reproduced your setup with a Linksys-54abg and a 2915ABG running a recent RELENG_6. Works like a charm - see attached. > Wireless connection in winxp on this laptop works fine too. > > Any ideas? If you do have firmware-iwi-kmod and things are still not working properly you should try the following: 1) Disable WPA on AP and see if you can attach w/o wpa_supplicant 2) See if you can attach w/ wpa_supplicant (key_mgmt=NONE) etc. ... to find out which part really is the culprit. Then you should set "sysctl debug.iwi=5" and check console output for problems. Let me know how it goes. -- /"\ Best regards, | [EMAIL PROTECTED] \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | [EMAIL PROTECTED] / \ ASCII Ribbon Campaign | Against HTML Mail and News
Initializing interface 'iwi0' conf 'wpa_supplicant.conf' driver 'default'
ctrl_interface 'N/A'
Configuration file 'wpa_supplicant.conf' -> '/root/wpa_supplicant.conf'
Reading configuration file '/root/wpa_supplicant.conf'
Line: 1 - start of a new network block
ssid - hexdump_ascii(len=9):
6c 69 6e 6b 73 79 73 2d 67 linksys-g
scan_ssid=1 (0x1)
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=12): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='linksys-g'
Initializing interface (2) 'iwi0'
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
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Own MAC address: 00:12:f0:a5:b2:10
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
Setting scan request: 0 sec 100000 usec
Added interface iwi0
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=9):
6c 69 6e 6b 73 79 73 2d 67 linksys-g
Received 0 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:12:17:77:67:3c ssid='linksys-g' wpa_ie_len=24 rsn_ie_len=0 caps=0x31
selected based on WPA IE
Trying to associate with 00:12:17:77:67:3c (SSID='linksys-g' freq=2462 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: set AP WPA IE - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00
00 50 f2 02 01 00 00 50 f2 02
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2
02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_bsd_set_drop_unencrypted: enabled=1
State: SCANNING -> ASSOCIATING
wpa_driver_bsd_associate: ssid 'linksys-g' wpa ie len 24 pairwise 2 group 2 key
mgmt 1
wpa_driver_bsd_associate: set PRIVACY 1
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
State: ASSOCIATING -> ASSOCIATED
Associated to a new BSS: BSSID=00:12:17:77:67:3c
No keys have been configured - skip key clearing
Associated with 00:12:17:77:67:3c
WPA: Association event - clear replay counter
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
EAPOL: External notification - EAP success=0
EAPOL: External notification - portEnabled=1
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: SUPP_BE entering state IDLE
Setting authentication timeout: 10 sec 0 usec
RX EAPOL from 00:12:17:77:67:3c
RX EAPOL - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01
90 d3 e5 10 ef a4 6b f7 ee 7f af f7 fb d9 55 77 a5 6f 94 23 84 8b eb 11 66 c5
05 c8 7e d4 62 aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
EAPOL-Key type=254
WPA: RX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 00 89 00 20 00 00 00 00 00
00 00 01 90 d3 e5 10 ef a4 6b f7 ee 7f af f7 fb d9 55 77 a5 6f 94 23 84 8b eb
11 66 c5 05 c8 7e d4 62 aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00
State: ASSOCIATED -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:12:17:77:67:3c (ver=1)
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02
01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Renewed SNonce - hexdump(len=32): f2 65 c9 b0 ee d0 eb bb cd 20 4d 4f 45
04 48 ee b7 7c 48 cf 36 b1 be 64 d2 c8 a3 00 86 63 53 6a
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
WPA: TX EAPOL-Key - hexdump(len=123): 01 03 00 77 fe 01 09 00 20 00 00 00 00 00
00 00 01 f2 65 c9 b0 ee d0 eb bb cd 20 4d 4f 45 04 48 ee b7 7c 48 cf 36 b1 be
64 d2 c8 a3 00 86 63 53 6a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 27 70 26 90 17 6a b8 e5 4e 6c 1b
be 2e 8a 04 46 00 18 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01
00 00 50 f2 02
RX EAPOL from 00:12:17:77:67:3c
RX EAPOL - hexdump(len=123): 01 03 00 77 fe 01 c9 00 20 00 00 00 00 00 00 00 02
90 d3 e5 10 ef a4 6b f7 ee 7f af f7 fb d9 55 77 a5 6f 94 23 84 8b eb 11 66 c5
05 c8 7e d4 62 aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 3f bb f7 33 0f 05 41 d8 02 5b bf db 1b 38
9b 00 00 18 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50
f2 02
IEEE 802.1X RX: version=1 type=3 length=119
EAPOL-Key type=254
WPA: RX EAPOL-Key - hexdump(len=123): 01 03 00 77 fe 01 c9 00 20 00 00 00 00 00
00 00 02 90 d3 e5 10 ef a4 6b f7 ee 7f af f7 fb d9 55 77 a5 6f 94 23 84 8b eb
11 66 c5 05 c8 7e d4 62 aa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3f bb f7 33 0f 05 41 d8 02 5b bf
db 1b 38 9b 00 00 18 dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01
00 00 50 f2 02
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 3 of 4-Way Handshake from 00:12:17:77:67:3c (ver=1)
WPA: IE KeyData - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00
50 f2 02 01 00 00 50 f2 02
WPA: Sending EAPOL-Key 4/4
WPA: TX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 01 09 00 20 00 00 00 00 00
00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 91 0a 0e e4 ab c8 70 2f 97 e0 b7
d8 10 83 3b c0 00 00
WPA: Installing PTK to the driver.
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_bsd_set_key: alg=TKIP addr=00:12:17:77:67:3c key_idx=0 set_tx=1
seq_len=6 key_len=32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RX EAPOL from 00:12:17:77:67:3c
RX EAPOL - hexdump(len=131): 01 03 00 7f fe 03 91 00 20 00 00 00 00 00 00 00 04
31 5e 3b a2 4f fb aa 3a 8e d7 25 4c aa 26 3d d5 0c 64 68 c2 0c 05 7f 74 ab 86
14 f8 20 76 9e c8 27 e2 b5 c3 ab b4 dc c1 8f 52 5c 22 14 41 f0 07 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 a3 94 4a c3 92 d9 34 71 8d ea 8e 79 a4 5e
32 42 00 20 30 c4 7b 81 56 db dc bc 40 dc 3a e6 b6 ea 60 cf 81 86 ad 44 42 04
97 c9 b0 67 c1 6e 89 02 70 e0
IEEE 802.1X RX: version=1 type=3 length=127
EAPOL-Key type=254
WPA: RX EAPOL-Key - hexdump(len=131): 01 03 00 7f fe 03 91 00 20 00 00 00 00 00
00 00 04 31 5e 3b a2 4f fb aa 3a 8e d7 25 4c aa 26 3d d5 0c 64 68 c2 0c 05 7f
74 ab 86 14 f8 20 76 9e c8 27 e2 b5 c3 ab b4 dc c1 8f 52 5c 22 14 41 f0 07 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a3 94 4a c3 92 d9 34 71 8d ea 8e
79 a4 5e 32 42 00 20 30 c4 7b 81 56 db dc bc 40 dc 3a e6 b6 ea 60 cf 81 86 ad
44 42 04 97 c9 b0 67 c1 6e 89 02 70 e0
State: GROUP_HANDSHAKE -> GROUP_HANDSHAKE
WPA: RX message 1 of Group Key Handshake from 00:12:17:77:67:3c (ver=1)
WPA: Group Key - hexdump(len=32): [REMOVED]
WPA: Installing GTK to the driver (keyidx=1 tx=0).
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_bsd_set_key: alg=TKIP addr=ff:ff:ff:ff:ff:ff key_idx=1 set_tx=0
seq_len=6 key_len=32
WPA: Sending EAPOL-Key 2/2
WPA: TX EAPOL-Key - hexdump(len=99): 01 03 00 5f fe 03 11 00 20 00 00 00 00 00
00 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5c 01 73 cd 87 f8 46 41 f7 88 bd
48 68 e6 d4 15 00 00
WPA: Key negotiation completed with 00:12:17:77:67:3c [PTK=TKIP GTK=TKIP]
Cancelling authentication timeout
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:12:17:77:67:3c completed (auth)
EAPOL: External notification - portValid=1
EAPOL: External notification - EAP success=1
EAPOL: SUPP_PAE entering state AUTHENTICATING
EAPOL: SUPP_BE entering state SUCCESS
EAP: EAP entering state DISABLED
EAPOL: SUPP_PAE entering state AUTHENTICATED
EAPOL: SUPP_BE entering state IDLE
EAPOL: startWhen --> 0
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface iwi0
State: COMPLETED -> DISCONNECTED
wpa_driver_bsd_deauthenticate
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_del_key: addr=00:12:17:77:67:3c keyidx=0
EAPOL: External notification - portEnabled=0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=0
wpa_driver_bsd_set_wpa: enabled=0
wpa_driver_bsd_set_wpa_internal: wpa=0 privacy=0
wpa_driver_bsd_set_drop_unencrypted: enabled=0
wpa_driver_bsd_set_countermeasures: enabled=0
No keys have been configured - skip key clearing
wpa_driver_bsd_set_wpa_internal: wpa=0 privacy=0
Cancelling scan request
max41# ifconfig iwi0 up scan SSID BSSID CHAN RATE S:N INT CAPS linksys-a 00:12:17:77:67:3b 40 54M 89:0 100 E WME 0x000000000... 00:16:38:3d:9b:f5 11 54M 28:0 100 EP 0x0000000 00:12:17:77:67:3c 11 54M 76:0 100 EPS WPA WME
pgpTtUFgPS8Lz.pgp
Description: PGP signature
