conf/143079: hostapd startup missing multi wlan functionality

Matthias Meyser Meyser at
Fri Jan 22 10:30:05 UTC 2010

>Number:         143079
>Category:       conf
>Synopsis:       hostapd startup missing multi wlan functionality
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 22 10:30:04 UTC 2010
>Originator:     Matthias Meyser
>Release:        FreeBSD 8-stable
XeNEt GmbH
FreeBSD 8.0-STABLE FreeBSD 8.0-STABLE #0: Thu Jan 14 20:04:44 CET 2010     root at intserv1.intern:/usr/obj/usr/src/sys/GATE  i386
Hostapd itself can handle more than one wlan by using more than one configfile.
At the moment there ist only one hardcodeds configfile.
With the attached patch one or more configfiles can be set in rc.conf.
Default ist the original configfile.

see patch

Patch attached with submission follows:

--- usr/src/etc/defaults/rc.conf.orig   2010-01-22 10:58:00.000000000 +0100
+++ usr/src/etc/defaults/rc.conf        2010-01-22 11:05:22.000000000 +0100
@@ -239,6 +239,8 @@

 ### Network daemon (miscellaneous) ###
 hostapd_enable="NO"            # Run hostap daemon.
+hostapd_config="/etc/hostapd.conf"     # Path to the configuration file
+#hostapd_config="/etc/hostapd.conf.wlan0 /etc/hostapd.conf.wlan1"      # Dual WLAN config
 syslogd_enable="YES"           # Run syslog daemon (or NO).
 syslogd_program="/usr/sbin/syslogd" # path to syslogd, if you want a different one.
 syslogd_flags="-s"             # Flags to syslogd (if enabled).

--- usr/src/etc/rc.d/hostapd.orig       2010-01-22 10:57:14.000000000 +0100
+++ usr/src/etc/rc.d/hostapd    2010-01-22 10:56:21.000000000 +0100
@@ -11,15 +11,14 @@

-command_args="-P ${pidfile} -B ${conf_file}"
 required_modules="wlan_xauth wlan_wep wlan_tkip wlan_ccmp"
+load_rc_config $name
+command_args="-P ${pidfile} -B ${config}"

-load_rc_config ${name}
 run_rc_command "$1"


More information about the freebsd-bugs mailing list