Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2005 20:01:05 +0100
From:      gustaaf wijnands <gwg.wijnands.freebsd@xs4all.nl>
To:        freebsd-questions@freebsd.org
Subject:   Wireless but no WPA
Message-ID:  <437CD371.3070804@xs4all.nl>

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

For over two years I have been enjoying the sweet fruits of Freebsd. 
Now, I ran into a problem. I am trying to set up a wireless connection 
from my notebook to my ap. Unencrypted it works well. It just doesn't 
work with WPA-PSK. I searched al over the www, but ran out of options 
what went wrong.
Well, can anybody help me out? Thanks!

Gustaaf

[root@laptop ~]# ifconfig -a
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 00:0f:cb:f9:20:2f
media: IEEE 802.11 Wireless Ethernet autoselect
status: no carrier
ssid "" channel 1
authmode OPEN privacy OFF txpowmax 100 protmode CTS

[root@laptop bin]# /etc/rc.d/netif start
ifconfig: WPA: bad value
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 00:0f:cb:f9:20:2f
media: IEEE 802.11 Wireless Ethernet autoselect
status: no carrier
ssid "" channel 1
authmode OPEN privacy OFF txpowmax 100 protmode CTS


[root@laptop bin]# wpa_supplicant -i ath0 -c /etc/wpa_supplicant.conf -d
Initializing interface 'ath0' conf '/etc/wpa_supplicant.conf' driver 
'default'
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=0 (from group name 'wheel')
Priority group 0
id=0 ssid='MySSID'
Initializing interface (2) 'ath0'
Own MAC address: 00:0f:cb:f9:20:2f
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
Starting AP scan (broadcast SSID)
Received 0 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:04:e2:e5:90:fc ssid='MySSID' wpa_ie_len=24 rsn_ie_len=0
selected
Trying to associate with 00:04:e2:e5:90:fc (SSID='MySSID' freq=2462 MHz)
Cancelling scan request
Automatic auth_alg selection: 0x1
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Own 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
No keys have been configured - skip key clearing
wpa_driver_bsd_set_drop_unencrypted: enabled=1
wpa_driver_bsd_associate: ssid 'MySSID' wpa ie len 24 pairwise 2 group 2 
key mgmt 1
wpa_driver_bsd_associate: set PRIVACY 1
Setting authentication timeout: 5 sec 0 usec
Association event - clear replay counter
Associated to a new BSS: BSSID=00:04:e2:e5:90:fc
No keys have been configured - skip key clearing
Associated with 00:04:e2:e5:90:fc
Setting authentication timeout: 10 sec 0 usec
RX EAPOL from 00:04:e2:e5:90:fc
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=1 type=3 length=95
EAPOL-Key type=254
WPA: RX message 1 of 4-Way Handshake from 00:04:e2:e5:90:fc (ver=1)
WPA: Renewed SNonce - hexdump(len=32): e9 76 b3 aa 0e 23 b9 74 0d 3a e2 
5c bb d1 03 c2 7a fd 11 35 44 d3 3f 4a 7b 2c f0 e4 e2 45 2f 48
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: EAPOL-Key MIC - hexdump(len=16): 0e e1 47 c3 fa c3 32 f5 50 cd 2b 
c0 2f 7d 4f 44
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 00:04:e2:e5:90:fc
IEEE 802.1X RX: version=1 type=3 length=119
EAPOL-Key type=254
WPA: RX message 3 of 4-Way Handshake from 00:04:e2:e5:90:fc (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: 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:04:e2:e5:90:fc key_idx=0 
set_tx=1 seq_len=6 key_len=32
RX EAPOL from 00:04:e2:e5:90:fc
IEEE 802.1X RX: version=1 type=3 length=127
EAPOL-Key type=254
WPA: RX message 1 of Group Key Handshake from 00:04:e2:e5:90:fc (ver=1)
WPA: Group Key - hexdump(len=32): [REMOVED]
WPA: Installing GTK to the driver (keyidx=2 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=2 
set_tx=0 seq_len=6 key_len=32
WPA: Sending EAPOL-Key 2/2
WPA: Key negotiation completed with 00:04:e2:e5:90:fc [PTK=TKIP GTK=TKIP]
Cancelling authentication timeout
^CSignal 2 received - terminating
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:04:e2:e5:90:fc keyidx=0
ioctl[SIOCS80211, op 20, len 7]: Can't assign requested address
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

[a@laptop ~]$ uname -a
FreeBSD laptop.intern 6.0-RELEASE FreeBSD 6.0-RELEASE #2: Mon Nov 14 
19:42:44 CET 2005 a@laptop.intern:/usr/obj/usr/src/sys/MYKERNEL i386

[a@laptop ~]$ cat /etc/rc.conf

# -- sysinstall generated deltas -- # Fri Nov 19 15:43:22 2004
# Created: Fri Nov 19 15:43:22 2004
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="laptop.intern"
#ifconfig_sis0="DHCP"
wpa_supplicant="YES"
ap_scan=1
ifconfig_ath0="WPA DHCP"
inetd_enable="YES"
linux_enable="YES"
moused_enable="YES"
usbd_enable="YES"
pccard_enable="YES"
sshd_enable="YES"


[a@laptop ~]$ cat /etc/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="mySSID"
key_mgmt=WPA-PSK
psk="MyEncryptionkey"
}



My kernelconfig file contains:
device wlan
device wlan_ccmp
device wlan_tkip
device ath_hal
device ath
device ath_rate_onoe



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