misc/128334: rc.d/wpa_supplicant doesn't take 'wired' driver
Jouke Witteveen
j.witteveen at gmail.com
Fri Oct 24 10:10:02 UTC 2008
>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 at 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:
>Unformatted:
More information about the freebsd-bugs
mailing list