Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 2006 20:28:02 +0200
From:      Ulrich Spoerlein <uspoerlein@gmail.com>
To:        stable@freebsd.org
Cc:        damien.bergamini@free.fr, sam@freebsd.org
Subject:   ipw + WPA not working on 6.1-RC
Message-ID:  <20060420182802.GA2218@roadrunner.buck.local>

next in thread | raw e-mail | index | archive | help

--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Good day everyone,

I'm CC'ing you Sam and Damien, as you are the persons most familiar with
the involved components (I guess).

I set up an FreeBSD based WPA-AP with an ural device, which is working
fine. The hostapd.conf is roughly like this:

interface=3Dural0
driver=3Dbsd
logger_syslog=3D-1
logger_syslog_level=3D0
logger_stdout=3D-1
logger_stdout_level=3D0
debug=3D4
dump_file=3D/tmp/hostapd.dump
ctrl_interface=3D/var/run/hostapd
ctrl_interface_group=3Dwheel
ssid=3Dfoo
wpa=3D1
wpa_passphrase=3Dbarbarbar
wpa_key_mgmt=3DWPA-PSK
wpa_pairwise=3DTKIP

And on the client, I'm using this wpa_supplicant.conf
ctrl_interface_group=3D0
eapol_version=3D1
ap_scan=3D1
fast_reauth=3D1

network=3D{
        ssid=3D"foo"
        key_mgmt=3DWPA-PSK
        psk=3D"barbarbar"
}

The device sees the AP
# ifconfig ipw0 list scan
SSID            BSSID              CHAN RATE  S:N   INT CAPS
foo             00:17:31:13:24:65    6   11M 58:0   100 EPS  WPA

yet, when running wpa_supplicant, I only get looping output, saying=20
State: ASSOCIATING -> ASSOCIATING over and over again.

# wpa_supplicant -D bsd -i ipw0 -dd -c /etc/wpa_supplicant.conf
Initializing interface 'ipw0' conf '/etc/wpa_supplicant.conf' driver 'bsd' =
ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface_group=3D0
eapol_version=3D1
ap_scan=3D1
fast_reauth=3D1
Line: 6 - start of a new network block
ssid - hexdump_ascii(len=3D3):
     66 6f 6f                                          foo            =20
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=3D9): [REMOVED]
PSK (from passphrase) - hexdump(len=3D32): [REMOVED]
Priority group 0
   id=3D0 ssid=3D'foo'
Initializing interface (2) 'ipw0'
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:0c:f1:3b:f0:41
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 ipw0
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Received 0 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:17:31:13:24:65 ssid=3D'foo' wpa_ie_len=3D24 rsn_ie_len=3D0 caps=3D0x31
   selected based on WPA IE
Trying to associate with 00:17:31:13:24:65 (SSID=3D'foo' freq=3D2437 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 'foo' wpa ie len 24 pairwise 2 group 2 key m=
gmt 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
Received 0 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:17:31:13:24:65 ssid=3D'foo' wpa_ie_len=3D24 rsn_ie_len=3D0 caps=3D0x31
   selected based on WPA IE
Trying to associate with 00:17:31:13:24:65 (SSID=3D'foo' freq=3D2437 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: ASSOCIATING -> ASSOCIATING
wpa_driver_bsd_associate: ssid 'foo' wpa ie len 24 pairwise 2 group 2 key m=
gmt 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
Received 0 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:17:31:13:24:65 ssid=3D'foo' wpa_ie_len=3D24 rsn_ie_len=3D0 caps=3D0x31
   selected based on WPA IE
Trying to associate with 00:17:31:13:24:65 (SSID=3D'foo' freq=3D2437 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: ASSOCIATING -> ASSOCIATING
^C

Of course I ran hostapd with -dd too, but there is no output other than
the startup info.

I read the if_ipw.c file, and there is an #if 0 block about WPA stuff,
so I recompiled the module with this block turned on, but still no WPA
in the device cap list

# ifconfig ipw0 list caps
ipw0=3D1a300<IBSS,PMGT,TXPMGT,SHPREAMBLE,MONITOR>

I have firmware 1.3 installed and am running 6.1-RC, btw.

So, is ipw+WPA supposed to work, or not?

Ulrich Spoerlein
--=20
 PGP Key ID: 20FEE9DD				Encrypted mail welcome!
Fingerprint: AEC9 AF5E 01AC 4EE1 8F70  6CBD E76E 2227 20FE E9DD
Which is worse: ignorance or apathy?
Don't know. Don't care.

--gKMricLos+KVdGMg
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFER9Ky524iJyD+6d0RAq1vAKCsRGvZmAyMMPq0G7zh7mIkO54sxACfddC0
oIgnVpKQ3eyokAaprpS42tg=
=RyAJ
-----END PGP SIGNATURE-----

--gKMricLos+KVdGMg--



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