From nobody@FreeBSD.org  Fri Oct 24 10:03:34 2008
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 83371106567B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Oct 2008 10:03:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 71DD58FC1D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Oct 2008 10:03:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id m9OA3Y1Z011119
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Oct 2008 10:03:34 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id m9OA3YFa011118;
	Fri, 24 Oct 2008 10:03:34 GMT
	(envelope-from nobody)
Message-Id: <200810241003.m9OA3YFa011118@www.freebsd.org>
Date: Fri, 24 Oct 2008 10:03:34 GMT
From: Jouke Witteveen <j.witteveen@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: rc.d/wpa_supplicant doesn't take 'wired' driver 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         128334
>Category:       conf
>Synopsis:       [request] use wpa_cli in the "WPA DHCP" situation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dougb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 24 10:10:01 UTC 2008
>Closed-Date:    Thu Jul 07 07:32:31 UTC 2011
>Last-Modified:  Thu Jul 07 07:32:31 UTC 2011
>Originator:     Jouke Witteveen
>Release:        7.0
>Organization:
>Environment:
FreeBSD december 7.0-RC1 FreeBSD 7.0-RC1 #0: Mon Dec 31 12:27:56 UTC 2007     admin@december:/usr/obj/usr/src/sys/DECEMBER  i386
>Description:
FreeBSD is able to do wired WPA authentication. However, the
/etc/rc.d/wpa_supplicant script is not able to select the 'wired' driver.
By default it selects the 'bsd' driver and on interface names matching
'ndis*' it selects the 'ndis' driver.
>How-To-Repeat:
In /etc/rc.conf one can have:

ifconfig_<wired_interface>#="WPA DHCP"

The wpa_supplicant rc.d script is executed but selects the wrong driver.
>Fix:
The easy way is to modify the wpa_supplicant script so that it contains:

case ${ifn} in
ndis*)
        driver="ndis"
        ;;
<wired_interface>*)
        driver="wired"
        ;;
*)
        driver="bsd"
        ;;
esac

I suppose there are too many interface names to make this into a general
patch, though.

Furthermore it is feasable to use wpa_cli in the "WPA DHCP" situation
as it makes it possible to run the dhcp client post-authentication. This
suggests a more thorough modification of the involved rc.d scripts.

>Release-Note:
>Audit-Trail:

From: "Jouke Witteveen" <j.witteveen@gmail.com>
To: bug-followup@freebsd.org, j.witteveen@gmail.com
Cc:  
Subject: Re: misc/128334: rc.d/wpa_supplicant doesn't take 'wired' driver
Date: Fri, 24 Oct 2008 12:22:16 +0200

 I was planning on reporting this for more than a year now. It appears
 Sam has submitted a fix to HEAD half a year ago already. This bug can
 therefore be closed.
 The wpa_cli comment is nevertheless applicable.
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Oct 25 11:29:27 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=128334 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Thu Jul 7 07:31:57 UTC 2011 
State-Changed-Why:  

Originator reports this is fixed 


Responsible-Changed-From-To: freebsd-net->dougb 
Responsible-Changed-By: dougb 
Responsible-Changed-When: Thu Jul 7 07:31:57 UTC 2011 
Responsible-Changed-Why:  

I closed it 

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