From nobody Tue Dec 21 23:35:18 2021 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 561E81900C31; Tue, 21 Dec 2021 23:35:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JJXr70Yftz3pHh; Tue, 21 Dec 2021 23:35:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E7C6A13288; Tue, 21 Dec 2021 23:35:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BLNZIVr049502; Tue, 21 Dec 2021 23:35:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BLNZIdp049501; Tue, 21 Dec 2021 23:35:18 GMT (envelope-from git) Date: Tue, 21 Dec 2021 23:35:18 GMT Message-Id: <202112212335.1BLNZIdp049501@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Cy Schubert Subject: git: 704945b0e03c - stable/13 - hostapd: Fix wlan interfaces not UP/RUNNING List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 704945b0e03ca55876417ba20d0ab581c525dbef Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640129719; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8V2ffDUEC+wkiAUT4YGFyDZmffgtXvPLaeCmHapq9I0=; b=PKu6/2v+GrK/aOjaLs0S5YpNaq+9q8g6uIPOcCHz3ZG3CiwvINcDgvUWgxBTe4iAXA4A0L 2UIccypE8zXbN1EJh7Jrqt944RZNsWjN2PhCKxq2rtnPbfCszyesNvvHUXwXYaI9HVsREu W7nzr9qbZJ5z5wQNR3NNDJZBcnOKcqXk1RGqYS0JfnkxH5yuQwSJ641m348nwI5LUzNnbZ zSLgAqL1vQ1QwsAjuxJujEhbBkycCT+mKBVkjwvlV+LilI7SWSQ9ynLbwRbNGxmJRFnQ8E PIthMeseK8ecqaZZLoDi3P9IFeGGEI4+tTyaHzyU5/MwIwiOhdKLca74HnWkHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640129719; a=rsa-sha256; cv=none; b=M4Zzl4NRqCuiIX0o5619FOALMypAbtjX2gzieKUndLjpHFN3AajTsPxy7NU4HBtISfZoCk RMIUZVMxz7EfeYnOjGSsby2XfdrJYBV5z1+hPB3BBUh4B2+rMSgCEkhKFEwYsRDWfKQvy4 VMksNexaZua1IYGKGYWiZM09sVITSrJ/H7dhT+l7ldYO7lAEpgCwVXbKma6JjwFXYmyRnY vmwF9S33Oj1ULyfvjTODJQPhP/X2/WPQUEqchxDZBwkhnjGGk+MS+kSfhEb9uJ/TpEqfNI O1BojpfSg4kN7tki2gG8kuNzXz8eLhVYweuHilKuXAMXapFYb2Wl3PGFlQJtUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=704945b0e03ca55876417ba20d0ab581c525dbef commit 704945b0e03ca55876417ba20d0ab581c525dbef Author: Cy Schubert AuthorDate: 2021-12-13 23:47:51 +0000 Commit: Cy Schubert 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