From nobody@FreeBSD.org  Fri Sep 23 02:19:25 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 63436106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Sep 2011 02:19:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 528EE8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Sep 2011 02:19:25 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p8N2JPpW064992
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 23 Sep 2011 02:19:25 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p8N2JPpn064991;
	Fri, 23 Sep 2011 02:19:25 GMT
	(envelope-from nobody)
Message-Id: <201109230219.p8N2JPpn064991@red.freebsd.org>
Date: Fri, 23 Sep 2011 02:19:25 GMT
From: Adrian Chadd <adrian@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: bsdinstall on 9.0-BETA2 incorrectly configures wpa/dhcp for wlan0
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         160929
>Category:       bin
>Synopsis:       bsdinstall(8) on 9.0-BETA2 incorrectly configures wpa/dhcp for wlan0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 23 02:20:02 UTC 2011
>Closed-Date:    Fri Sep 23 06:59:56 UTC 2011
>Last-Modified:  Fri Sep 23 06:59:56 UTC 2011
>Originator:     Adrian Chadd
>Release:        9.0-BETA2
>Organization:
>Environment:
FreeBSD viac3.home.cacheboy.net 9.0-BETA2 FreeBSD 9.0-BETA2 #0: Thu Sep 22 23:06:19 WST 2011     adrian@viac3.home.cacheboy.net:/usr/obj/usr/src/sys/VIAC3  i386

>Description:
When bsdinstall installed my system, it asked for wifi details.
It correctly configured and associated to my wifi during install, but it didn't do so after a reboot.

/etc/rc.conf contained:

===
wlans_ath0="wlan0"
ifconfig_wlan0="WPADHCP"
===

I believe that should be "WPA DHCP" rather than "WPADHCP".

The install NIC was a D-Link DWA-552 later edition PCI 802.11ng NIC (AR9223.)
>How-To-Repeat:

* Boot 9.0-BETA2 off of USB stick
* Install to disk
* Post-configure wifi
* Reboot
>Fix:
From IRC:

07:19 <@battlez> --- usr.sbin/bsdinstall/scripts/netconfig_ipv4  (revision 225733)
07:19 <@battlez> +++ usr.sbin/bsdinstall/scripts/netconfig_ipv4  (working copy)
07:19 <@battlez> @@ -45,7 +45,7 @@ esac
07:19 <@battlez>
07:19 <@battlez>  dialog --backtitle 'FreeBSD Installer' --title 'Network Configuration' --yesno 'Would you like to use DHCP to configure this interface?' 0 0
07:19 <@battlez>  if [ $? -eq $DIALOG_OK ]; then
07:19 <@battlez> -       echo ifconfig_$INTERFACE=\"${IFCONFIG_PREFIX}DHCP\" >> $BSDINSTALL_TMPETC/._rc.conf.net
07:19 <@battlez> +       echo ifconfig_$INTERFACE=\"${IFCONFIG_PREFIX} DHCP\" >> $BSDINSTALL_TMPETC/._rc.conf.net
07:20 <@battlez>
07:20 <@battlez>         if [ ! -z $BSDINSTALL_CONFIGCURRENT ]; then
07:20 <@battlez>                 dialog --backtitle 'FreeBSD Installer' --infobox "Acquiring DHCP lease..." 0 0


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Fri Sep 23 06:59:55 UTC 2011 
State-Changed-Why:  
Duplicate of bin/159558. Supposedly fixed in r225612. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160929 
>Unformatted:
