From owner-freebsd-stable@FreeBSD.ORG Thu Aug 5 20:36:42 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DA461065677 for ; Thu, 5 Aug 2010 20:36:42 +0000 (UTC) (envelope-from pi@opsec.eu) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) by mx1.freebsd.org (Postfix) with ESMTP id 574DF8FC0A for ; Thu, 5 Aug 2010 20:36:42 +0000 (UTC) Received: from pi by home.opsec.eu with local (Exim 4.72 (FreeBSD)) (envelope-from ) id 1Oh7BD-0007tP-9c; Thu, 05 Aug 2010 22:36:43 +0200 Date: Thu, 5 Aug 2010 22:36:43 +0200 From: Kurt Jaeger To: Troye Johnson Message-ID: <20100805203643.GF51934@home.opsec.eu> References: <20100729092535.GB90401@home.opsec.eu> <20100804082820.GC90401@home.opsec.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-stable@freebsd.org Subject: Re: 8.1 stable ar9285 ath0 problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2010 20:36:42 -0000 Hi! > Can you show me your config files: rc.conf, /boot/loader.conf, > wpa_supplicant.conf. I just want to see just to make sure I'm not doing it > wrong. I use the stuff in a different way (mostly manually). For example: Step 1) ifconfig wlan0 up Wait a little and check: ifconfig wlan0 list scan If there's no SSID listed, wait until one comes up. Step 2) wpa_supplicant -d -d -i wlan0 -c /etc/wpa-psk.conf with /etc/wpa-psk.conf: ----------- ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel # home network; allow all valid ciphers network={ ssid="correct-ssid" key_mgmt=WPA-PSK psk="correct-psk" } ----------- Step 3) dhclient wlan0 Now one should be able to connect to the wlan. > I'm using my card on a network that uses WPA-PSK. My card can scan > for APs and associate with the chosen AP, but 'dhclient wlan0' will not get > an IP address! How is that possible. First wpa_supp*, then dhclient. wpa* provides the crypto so that dhclient gets the DHCP packets. > And when I do 'ifconfig' it shows that > the card is associated but the ip address part reads 'inet: 0.0.0.0'. Well, that's a start. -- pi@opsec.eu +49 171 3101372 10 years to go !