Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2007 00:24:14 -0800
From:      "Gregory W. MacPherson" <greg@netpublishing.com>
To:        freebsd-questions@freebsd.org
Subject:   D-Link card (ath0) and WPA-PSK
Message-ID:  <20070217082414.GA30682@netpublishing.com>

next in thread | raw e-mail | index | archive | help
I wanted to access a WPA-PSK network with my laptop. I booted up FreeBSD
6.2. I already had a D-Link WNA2330 card inserted in the slot at boot up. 
The ath driver recognized the card:

ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 11 at device 0,0 on cardbus0
ath0: Ethernet address: 00:15:e9:d9:77:13
ath0: mac 7,9 phy 4,5 radio 5,6

I configured /etc/wpa_supplicant and added a line to /etc/rc.conf to 
configure the interface to use DHCP. Then I issued /etc/rc.d/netif start.
What I got was a card that was associated and properly configured but 
that could not negotiate an address or pass traffic.

After several iterations of ifconfig ath0, I finally removed the card and
reinserted the card. Then and only then did the /etc/rc.d/netif start 
result in an associated and DHCP configured NIC.

ath0: ath_chan_set: unable to reset channel 2 (2417 Mhz, flags 0xe0 hal flags 0xc0)
ath0: <Atheros 5212> mem 0x88000000-0x8800ffff irq 11 at device 0,0 on cardbus0
ath0: Ethernet address: 00:15:e9:d9:77:13
ath0: mac 7,9 phy 4,5 radio 5,6

Has anyone seen this before - where the card is recognized by the driver 
and the card can associate with the network but the WPA fails until the 
card is removed and reinserted?

Laptop is a Thinkpad T21.
OS is FreeBSD 6.2-STABLE #0
Kernel has the following compiled in:

device	wlan
device	wlan_wep
device	wlan_ccmp
device	wlan_tkip
device	wi
device	ath
device	ath_hal
device	ath_rate_sample

IPFW is compiled in and was set open.

Thanks,

-- Greg

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Gregory W. MacPherson - Global Network Exploitation Specialist, CISSP
http://www.netpublishing.com/greg/             greg@netpublishing.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



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