Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Dec 2021 23:35:18 GMT
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 704945b0e03c - stable/13 - hostapd: Fix wlan interfaces not UP/RUNNING
Message-ID:  <202112212335.1BLNZIdp049501@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=704945b0e03ca55876417ba20d0ab581c525dbef

commit 704945b0e03ca55876417ba20d0ab581c525dbef
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-12-13 23:47:51 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-12-21 23:34:39 +0000

    hostapd: Fix wlan interfaces not UP/RUNNING
    
    Like wpa_supplicant, hostapd does not automatically UP the interface
    when configured. The fix is similar to 5fcdc19a8111.
    
    Reported by:    avg
    Tested by:      avg
    
    (cherry picked from commit 0da2c91e64528d896f69d36670e25b4b4a140579)
---
 libexec/rc/rc.d/hostapd | 7 +++++++
 1 file changed, 7 insertions(+)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112212335.1BLNZIdp049501>