Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Aug 2005 13:29:13 -0400
From:      chuck <enshow@gmail.com>
To:        hackers@freebsd.org
Subject:   FreeBSD 6.0BETA2 ndis(4) WPA-PSK
Message-ID:  <3c3ce1970508071029797ae723@mail.gmail.com>

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

I've just install the 6.0Beta2 to test the new WPA-PSK functionality.
Regarding this,
I have 2 questions.

1) The signal strength is quite different between drivers. (ath vs ndis).
   - The signal is much stronger when I use the ndis drivers. Why ?


2) The wpa-psk works perfectly when I use the ath(4) driver and it doesn't =
work
   with the ndis(4) drivers. When I use wpa_supplicant I get this (from dme=
sg)

   ndis0: NDIS API version: 5.1
   ndis0: Ethernet address: 00:0f:b5:5d:52:2f
   ndis0: failed to get bssid
   ndis0: setting encryption status to ENC2 failed

   Here's the specs and configurations:

=3D=3D> uname

FreeBSD silence 6.0-BETA2 FreeBSD 6.0-BETA2 #0: Sun Aug  7 09:30:39 EDT 200=
5

=3D=3D> Wirecard Card:

ath0@pci0:11:0: class=3D0x020000 card=3D0x4d001385 chip=3D0x0013168c rev=3D=
0x01 hdr=3D0x00
   vendor   =3D 'Atheros Communications Inc.'
   device   =3D 'AR5212, AR5213 802.11a/b/g Wireless Adapter'
   class    =3D network
   subclass =3D ethernet

=3D=3D> wpa_supplicant.conf

ctrl_interface=3D/var/run/wpa_supplicant
ctrl_interface_group=3Dwheel
network=3D{
       ssid=3D"somessid"
       scan_ssid=3D1
       key_mgmt=3DWPA-PSK
       psk=3D"somekey"
}

=3D=3D> wpa_supplicant invocation (log)

wpa_supplicant -i ndis0 -d -c /etc/wpa_supplicant.conf
Initializing interface 'ndis0' conf '/etc/wpa_supplicant.conf' driver 'defa=
ult'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface=3D'/var/run/wpa_supplicant'
ctrl_interface_group=3D0 (from group name 'wheel')
Priority group 0
  id=3D0 ssid=3D'somessid'
Initializing interface (2) 'ndis0'
Own MAC address: 00:0f:b5:5d:52:2f
wpa_driver_bsd_set_wpa: enabled=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
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=3D6):
    6f 6b 73 61 6c 61                                 somessid
# (I know)
Received 0 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:11:95:73:1d:08 ssid=3D'somessid' wpa_ie_len=3D24 rsn_ie_len=3D0
  selected
Trying to associate with 00:11:95:73:1d:08 (SSID=3D'somessid' freq=3D2462 M=
Hz)
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=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
wpa_driver_bsd_associate: ssid 'somessid' 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
Authentication with 00:00:00:00:00:00 timed out.
Added BSSID 00:00:00:00:00:00 into blacklist
No keys have been configured - skip key clearing
Setting scan request: 0 sec 0 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:11:95:73:1d:08 ssid=3D'somessid' wpa_ie_len=3D24 rsn_ie_len=3D0
  selected
Trying to associate with 00:11:95:73:1d:08 (SSID=3D'somessid' freq=3D2462 M=
Hz)
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



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