From owner-freebsd-questions@FreeBSD.ORG Sat Feb 17 08:37:20 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB73D16A408 for ; Sat, 17 Feb 2007 08:37:20 +0000 (UTC) (envelope-from greg@b2.datasieve.net) Received: from b2.datasieve.net (b2.datasieve.net [209.237.242.121]) by mx1.freebsd.org (Postfix) with ESMTP id ACFF713C49D for ; Sat, 17 Feb 2007 08:37:20 +0000 (UTC) (envelope-from greg@b2.datasieve.net) Received: from b2.datasieve.net (localhost [127.0.0.1]) by b2.datasieve.net (8.13.4/8.13.3) with ESMTP id l1H8OE83031117 for ; Sat, 17 Feb 2007 00:24:14 -0800 (PST) (envelope-from greg@b2.datasieve.net) Received: (from greg@localhost) by b2.datasieve.net (8.13.4/8.13.3/Submit) id l1H8OEEj031116 for freebsd-questions@freebsd.org; Sat, 17 Feb 2007 00:24:14 -0800 (PST) (envelope-from greg) Date: Sat, 17 Feb 2007 00:24:14 -0800 From: "Gregory W. MacPherson" To: freebsd-questions@freebsd.org Message-ID: <20070217082414.GA30682@netpublishing.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Mailer: Mutt 1.4.1i (2003-03-19) Subject: D-Link card (ath0) and WPA-PSK X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Gregory W. MacPherson" List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Feb 2007 08:37:20 -0000 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: 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: 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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-