From nobody Tue Dec 21 23:37:55 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 568391902B6E; Tue, 21 Dec 2021 23:37:57 +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 4JJXv81Jdtz3r9V; Tue, 21 Dec 2021 23:37:56 +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 DCBA3130BF; Tue, 21 Dec 2021 23:37:55 +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 1BLNbtCf050093; Tue, 21 Dec 2021 23:37:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BLNbtC8050092; Tue, 21 Dec 2021 23:37:55 GMT (envelope-from git) Date: Tue, 21 Dec 2021 23:37:55 GMT Message-Id: <202112212337.1BLNbtC8050092@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: 27f7ead17779 - stable/12 - 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/12 X-Git-Reftype: branch X-Git-Commit: 27f7ead17779011ef0c5ea5fbf2d72fb340b1f3f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640129876; 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=qbBAvyNEY2RhmO40lujlBNB1rJ0E3SZwfZVWr238Aoo=; b=eQegzcVtP8TUBBitxUjUqu6w3JeqqPi5B6Ld6F2iZr4znhewf9PsY1+8SiWebLYaSA6qka 8pFAi+R42gJtpVJ4Z4OOCx9bOCA0UVqPr4aXjgeWbQys8D2/nDjZNAV87khi7uKjJeDH0H 0m54mc/q1AzqheYfGu5x49C+RN9PSIheN+72F715XdFr0cBIupPkOf7Gs9Eev2grA94gYd 18IWNlHue1DiltSMjGyA3QfyX+sPObjfk4U+Mne7xbKgpXSDB9QQMDUBoOlKOwxQA6WV9A ibS7QAUGQVjDMpxA4CR0DgpwywbygAT0EJkz53WBM8Ir/wnZdfpqOT3O9LjmTw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640129876; a=rsa-sha256; cv=none; b=VXjOJRMR1p1B0RBmgFQP0S8pwkkgt2FxDsxhgkyYibBlrESOyMbIzeTCCG+lqsvPKboVyw 6mrU5KSP91ZcIHpWhWDfDGtFtRf0KtQgbkAfIApvJzWhT744ZVHS7k88Ca0kDSnnLgHnlP 1MQS1HiGPIGcPdOElkCrn8tVcB9RZaEMMYBD0NqJg/da6SjebKXSg44JUWIEbgKDovh6Yp ekLTnU7dCNoaKqUuVFBDPvDZUeuS79QyahG2Dfh6PEqvPZS4paf3FmHb1l79Sv7geqYOuR C8hMcYl+xF1N9vNeDb8NRwcNWHKw/xvR7axpHp6+MEBZ6I9ETelm6bkVecUT9A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=27f7ead17779011ef0c5ea5fbf2d72fb340b1f3f commit 27f7ead17779011ef0c5ea5fbf2d72fb340b1f3f Author: Cy Schubert AuthorDate: 2021-12-13 23:47:51 +0000 Commit: Cy Schubert CommitDate: 2021-12-21 23:37:24 +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