Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2006 19:31:51 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-stable@freebsd.org
Cc:        "Andrew N. Below" <defan@zenon.net>
Subject:   Re: iwi, hidden SSID and wpa_supplicant problem
Message-ID:  <200610091931.57230.max@love2party.net>
In-Reply-To: <089501c6ebb0$31848e20$970da8c0@jam.zenon.net>
References:  <089501c6ebb0$31848e20$970da8c0@jam.zenon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart7918324.3k8u0GJ5sB
Content-Type: multipart/mixed;
  boundary="Boundary-01=_IeoKF+gxtf26Jmt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_IeoKF+gxtf26Jmt
Content-Type: text/plain;
  charset="koi8-r"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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:
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> ctrl_interface=3D/var/run/wpa_supplicant
> ctrl_interface_group=3D0
> eapol_version=3D1
> ap_scan=3D1
> fast_reauth=3D1
>
> network=3D{
>         ssid=3D"MY-SSID"
>         scan_ssid=3D1
>         key_mgmt=3DWPA-PSK
>         proto=3DWPA
>         pairwise=3DTKIP
>         group=3DTKIP
>         psk=3D"PASSPHRASE"
>         phase2=3D"auth=3DMSCHAPV2"
> }
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> 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=3D11):
> [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=3D'' wpa_ie_len=3D26
> rsn_ie_len=3D0 caps=3D0x31
> Oct 09 18:24:43.022008:    skip - SSID mismatch
> Oct 09 18:24:43.022014: 1: 02:3f:2d:21:0e:c2 ssid=3D'ANY' wpa_ie_len=3D0
> rsn_ie_len=3D0 caps=3D0x2
> 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=3D'ADSL_Wireless'
> wpa_ie_len=3D0 rsn_ie_len=3D0 caps=3D0x61
> 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=3D'' wpa_ie_len=3D0
> rsn_ie_len=3D0 caps=3D0x11
> 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=
=20
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=3D'' wpa_ie_len=3D26
> rsn_ie_len=3D0 caps=3D0x31
> Oct 09 18:24:49.501092:    skip - SSID mismatch
> Oct 09 18:24:49.501098: 1: 00:14:6c:55:24:4a ssid=3D'' wpa_ie_len=3D0
> rsn_ie_len=3D0 caps=3D0x11
> 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=20
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=20
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=
=20
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=3DNONE)
etc. ... to find out which part really is the culprit.  Then you should=20
set "sysctl debug.iwi=3D5" and check console output for problems.  Let me=20
know how it goes.

=2D-=20
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

--Boundary-01=_IeoKF+gxtf26Jmt
Content-Type: text/plain;
  charset="koi8-r";
  name="log"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="log"

Initializing interface 'iwi0' conf 'wpa_supplicant.conf' driver 'default' c=
trl_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=3D9):
     6c 69 6e 6b 73 79 73 2d 67                        linksys-g      =20
scan_ssid=3D1 (0x1)
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=3D12): [REMOVED]
PSK (from passphrase) - hexdump(len=3D32): [REMOVED]
Priority group 0
   id=3D0 ssid=3D'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=3D0
EAPOL: External notification - portValid=3D0
Own MAC address: 00:12:f0:a5:b2:10
wpa_driver_bsd_set_wpa: enabled=3D1
wpa_driver_bsd_set_wpa_internal: wpa=3D3 privacy=3D1
wpa_driver_bsd_del_key: keyidx=3D0
wpa_driver_bsd_del_key: keyidx=3D1
wpa_driver_bsd_del_key: keyidx=3D2
wpa_driver_bsd_del_key: keyidx=3D3
wpa_driver_bsd_set_countermeasures: enabled=3D0
wpa_driver_bsd_set_drop_unencrypted: enabled=3D1
Setting scan request: 0 sec 100000 usec
Added interface iwi0
State: DISCONNECTED -> SCANNING
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=3D9):
     6c 69 6e 6b 73 79 73 2d 67                        linksys-g      =20
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=3D'linksys-g' wpa_ie_len=3D24 rsn_ie_len=3D0 caps=
=3D0x31
   selected based on WPA IE
Trying to associate with 00:12:17:77:67:3c (SSID=3D'linksys-g' freq=3D2462 =
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=3D24): 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=3D24): 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=3D1
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=3D0
EAPOL: External notification - EAP fail=3D0
EAPOL: External notification - portControl=3DAuto
State: ASSOCIATING -> ASSOCIATED
Associated to a new BSS: BSSID=3D00: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=3D0
EAPOL: External notification - portValid=3D0
EAPOL: External notification - EAP success=3D0
EAPOL: External notification - portEnabled=3D1
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=3D99): 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=3D1 type=3D3 length=3D95
  EAPOL-Key type=3D254
WPA: RX EAPOL-Key - hexdump(len=3D99): 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=3D1)
WPA: WPA IE for msg 2/4 - hexdump(len=3D24): 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=3D32): f2 65 c9 b0 ee d0 eb bb cd 20 4d 4=
f 45 04 48 ee b7 7c 48 cf 36 b1 be 64 d2 c8 a3 00 86 63 53 6a
WPA: PMK - hexdump(len=3D32): [REMOVED]
WPA: PTK - hexdump(len=3D64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
WPA: TX EAPOL-Key - hexdump(len=3D123): 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=3D123): 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=3D1 type=3D3 length=3D119
  EAPOL-Key type=3D254
WPA: RX EAPOL-Key - hexdump(len=3D123): 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=3D1)
WPA: IE KeyData - hexdump(len=3D24): 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=3D99): 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=3D6): 00 00 00 00 00 00
wpa_driver_bsd_set_key: alg=3DTKIP addr=3D00:12:17:77:67:3c key_idx=3D0 set=
_tx=3D1 seq_len=3D6 key_len=3D32
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
RX EAPOL from 00:12:17:77:67:3c
RX EAPOL - hexdump(len=3D131): 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=3D1 type=3D3 length=3D127
  EAPOL-Key type=3D254
WPA: RX EAPOL-Key - hexdump(len=3D131): 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=3D1)
WPA: Group Key - hexdump(len=3D32): [REMOVED]
WPA: Installing GTK to the driver (keyidx=3D1 tx=3D0).
WPA: RSC - hexdump(len=3D6): 00 00 00 00 00 00
wpa_driver_bsd_set_key: alg=3DTKIP addr=3Dff:ff:ff:ff:ff:ff key_idx=3D1 set=
_tx=3D0 seq_len=3D6 key_len=3D32
WPA: Sending EAPOL-Key 2/2
WPA: TX EAPOL-Key - hexdump(len=3D99): 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=3DTKIP GTK=3DTKI=
P]
Cancelling authentication timeout
State: GROUP_HANDSHAKE -> COMPLETED
CTRL-EVENT-CONNECTED - Connection to 00:12:17:77:67:3c completed (auth)
EAPOL: External notification - portValid=3D1
EAPOL: External notification - EAP success=3D1
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=3D0
wpa_driver_bsd_del_key: keyidx=3D1
wpa_driver_bsd_del_key: keyidx=3D2
wpa_driver_bsd_del_key: keyidx=3D3
wpa_driver_bsd_del_key: addr=3D00:12:17:77:67:3c keyidx=3D0
EAPOL: External notification - portEnabled=3D0
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: SUPP_BE entering state INITIALIZE
EAPOL: External notification - portValid=3D0
wpa_driver_bsd_set_wpa: enabled=3D0
wpa_driver_bsd_set_wpa_internal: wpa=3D0 privacy=3D0
wpa_driver_bsd_set_drop_unencrypted: enabled=3D0
wpa_driver_bsd_set_countermeasures: enabled=3D0
No keys have been configured - skip key clearing
wpa_driver_bsd_set_wpa_internal: wpa=3D0 privacy=3D0
Cancelling scan request

--Boundary-01=_IeoKF+gxtf26Jmt
Content-Type: text/plain;
  charset="koi8-r";
  name="scan"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="scan"

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

--Boundary-01=_IeoKF+gxtf26Jmt--

--nextPart7918324.3k8u0GJ5sB
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQBFKoeNXyyEoT62BG0RAsnaAJ9mEtrS0zYK2gSeTRYckU/6no99ogCfYDLy
76P0468GF1yonrwZ5obbqtM=
=XBSZ
-----END PGP SIGNATURE-----

--nextPart7918324.3k8u0GJ5sB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610091931.57230.max>