From nobody Tue Dec 14 14:20:11 2021 X-Original-To: dev-commits-src-all@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 1BF3318EB5E0; Tue, 14 Dec 2021 14:20:12 +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 4JD0rq64HQz4m6L; Tue, 14 Dec 2021 14:20:11 +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 AC97E15FB; Tue, 14 Dec 2021 14:20:11 +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 1BEEKBoR098176; Tue, 14 Dec 2021 14:20:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEEKBLC098170; Tue, 14 Dec 2021 14:20:11 GMT (envelope-from git) Date: Tue, 14 Dec 2021 14:20:11 GMT Message-Id: <202112141420.1BEEKBLC098170@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Cy Schubert Subject: git: 0da2c91e6452 - main - hostapd: Fix wlan interfaces not UP/RUNNING List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 0da2c91e64528d896f69d36670e25b4b4a140579 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639491611; 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=soCcHvozVQE/b7liePGFh028smNBXl8vL3dz2Sk6g0Y=; b=TnKY4rzOqgXjJ41dDxLjz9JmhyWI4/YJEB+bVNgiR0sD3CzD+FMFNSZ+SieT79bx3ZNytp 4gr4aJgAb+CW5taFFP95QBsI038DtXKmHO/MdsI2PZ5H8zW9Jv8g7dCRzB62vtKD8EHLmq HZWrs7y/hZEsbzzt559IzcGCEOQr79tpGkwhfnJ1BaAf39rMwrH0h5NwSIu/GUzGoFc5Rf SGjLYFqkMp5OBnH7A5c43sa0KbjWPLQADIuQ5yA5VlOTUI84uctGKeJ1URwzzq+m7kSuXB c4lj2YFzywdAkrWOHvbDQ06HIAtmXGXOd+V03bMXq8hGLYpc8P6RXc7EP6fnsg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639491611; a=rsa-sha256; cv=none; b=ZetigepcMJnXjXjGPSHrR2bpF6SsUnyvCtE5mJ7Z0jsGk95Rczm2cBkxVTS2AjOe0W8mdr ClkgW2ZVutbMZR4E4anuFwWSyUTQ9mXMlYK7DFaHf8AJ4a7BSxtNmG65ybw7C0xGqj8AMI JKQ6jZF7K1KUvua9Y8iJrYwOvjdV64X2VSPf5Ln10+AgNKWvw0mjuhdlBF4tEzy4hjOWk1 0u2hJ9yNLvwpaAZPN9Zheb/HL9Cnw34CBhe/V5yNi3LuQLCmh2l2apm6x6YE1uMbmnS9Vv fLruojBj3EqTi/IcR3pGw1PTS7zeUXfojOF3oIAl8CDNefId0PiVs7m7iCJYhg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=0da2c91e64528d896f69d36670e25b4b4a140579 commit 0da2c91e64528d896f69d36670e25b4b4a140579 Author: Cy Schubert AuthorDate: 2021-12-13 23:47:51 +0000 Commit: Cy Schubert CommitDate: 2021-12-14 14:18:37 +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 MFC after: 1 week --- 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