From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 24 10:10:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B3D510656A0 for ; Fri, 24 Oct 2008 10:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 188B88FC2B for ; Fri, 24 Oct 2008 10:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9OAA1lZ066314 for ; Fri, 24 Oct 2008 10:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9OAA1ce066313; Fri, 24 Oct 2008 10:10:01 GMT (envelope-from gnats) Resent-Date: Fri, 24 Oct 2008 10:10:01 GMT Resent-Message-Id: <200810241010.m9OAA1ce066313@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jouke Witteveen Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83371106567B for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/128334: rc.d/wpa_supplicant doesn't take 'wired' driver X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2008 10:10:02 -0000 >Number: 128334 >Category: misc >Synopsis: rc.d/wpa_supplicant doesn't take 'wired' driver >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Oct 24 10:10:01 UTC 2008 >Closed-Date: >Last-Modified: >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_#="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" ;; *) 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: >Unformatted: