git: 05637c82243e - main - rc: Chase 052211e08c0e and bfb202c4554a, remove ifconfig down/up
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Oct 2025 17:31:29 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=05637c82243e681b5db5d7e9829e699515456524
commit 05637c82243e681b5db5d7e9829e699515456524
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-10-21 17:28:39 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2025-10-21 17:31:23 +0000
rc: Chase 052211e08c0e and bfb202c4554a, remove ifconfig down/up
bfb202c4554a addresses the CTRL-EVENT-SCAN-FAILED. Upstream d807e289d
caused FreeBSD regression in driver_bsd.c, which this rc.d patch
worked around. As of bfb202c4554a this workaround is no longer needed.
052211e08c0e implemented this change for wpa_supplicant but not for
hostapd.
Reported by: avg
MFC after: 3 days
---
libexec/rc/rc.d/hostapd | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/libexec/rc/rc.d/hostapd b/libexec/rc/rc.d/hostapd
index 264cb4ef476b..15b20c95c488 100755
--- a/libexec/rc/rc.d/hostapd
+++ b/libexec/rc/rc.d/hostapd
@@ -11,15 +11,6 @@
name="hostapd"
desc="Authenticator for IEEE 802.11 networks"
command=${hostapd_program}
-start_postcmd="hostapd_poststart"
-
-hostapd_poststart() {
- if [ -n "$ifn" ]; then
- ifconfig ${ifn} down
- sleep 2
- ifconfig ${ifn} up
- fi
-}
ifn="$2"
if [ -z "$ifn" ]; then