Subject: misc/37352: hostapd rc file does not include requring it to start before dhcpd
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <daviddu@cctexas.com>
List: netbsd-bugs
Date: 11/09/2007 19:50:00
>Number:         37352
>Category:       misc
>Synopsis:       hostapd rc file does not include requring it to start before dhcpd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 09 19:50:00 +0000 2007
>Originator:     David Dudley
>Release:        -current
>Organization:
City of Corpus Christi
>Environment:
NetBSD hostAP 4.99.34 NetBSD 4.99.34 (GENERIC) #1: Fri Oct 26 08:53:08 CDT 2007  daviddu@DELL-2550-1.crp.local:/usr/obj/sys/arch/i386/compile/GENERIC i386
>Description:
When defining a wireless access point, hostapd is being used to provide security services.  Dhcpd is being used to provide for IP address assignment to the remote clients, however there is no indication in the hostapd RC file (/etc/rc.d/hostapd) that it must be started prior to dhcpd starting.  This causes dhcpd to start before hostapd, which prevents the wireless device from behing configured for correct operation (apparently, when I reversed the order, things started working correctly).
>How-To-Repeat:
Omission from the /etc/rc.d/hostapd
>Fix:
Add the following line into the beginning of the hostapd file.

# BEFORE: dhcpd