diff --git a/libexec/rc/rc.d/hostapd b/libexec/rc/rc.d/hostapd index 707316036604..7e1611350438 100755 --- a/libexec/rc/rc.d/hostapd +++ b/libexec/rc/rc.d/hostapd @@ -12,6 +12,13 @@ name="hostapd" desc="Authenticator for IEEE 802.11 networks" command=${hostapd_program} +start_postcmd="hostapd_poststart" + +hostapd_poststart() { + ifconfig ${ifn} down + sleep 2 + ifconfig ${ifn} up +} ifn="$2" if [ -z "$ifn" ]; then