Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 2026 09:22:29 +0000
From:      Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav <des@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0bed75d1e810 - stable/15 - wpa: Define CONFIG_DEBUG_FILE globally
Message-ID:  <6a6874d5.196b8.684c4eb9@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by des:

URL: https://cgit.FreeBSD.org/src/commit/?id=0bed75d1e810fa343f3600171c511d0e822ac603

commit 0bed75d1e810fa343f3600171c511d0e822ac603
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-07-21 07:59:43 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-07-28 09:22:21 +0000

    wpa: Define CONFIG_DEBUG_FILE globally
    
    We defined CONFIG_DEBUG_FILE only in libwpautils, not in wpa_supplicant,
    so all it did was enable code that never got called.  Enable it at the
    top level so it also applies to wpa_supplicant(8), and the -f option
    mentioned in the manual page now actually works.
    
    PR:             281617
    MFC after:      1 week
    Reviewed by:    cy
    Differential Revision:  https://reviews.freebsd.org/D57723
    
    (cherry picked from commit 67518c9f565b61bc5eebe33b6a956e2cc9b3f223)
---
 usr.sbin/wpa/Makefile.inc       | 1 +
 usr.sbin/wpa/src/utils/Makefile | 2 --
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/usr.sbin/wpa/Makefile.inc b/usr.sbin/wpa/Makefile.inc
index 1d07f557b2d2..b332ead24556 100644
--- a/usr.sbin/wpa/Makefile.inc
+++ b/usr.sbin/wpa/Makefile.inc
@@ -40,6 +40,7 @@ CFLAGS+=-DCONFIG_IEEE80211R
 CFLAGS+=-DCONFIG_IEEE80211W
 CFLAGS+=-DTLS_DEFAULT_CIPHERS=\"DEFAULT:!EXP:!LOW\"
 CFLAGS+=-DCONFIG_DEBUG_SYSLOG
+CFLAGS+=-DCONFIG_DEBUG_FILE
 CFLAGS+=-DPKCS12_FUNCS
 CFLAGS+=-DCONFIG_GAS
 CFLAGS+=-DCONFIG_PEERKEY
diff --git a/usr.sbin/wpa/src/utils/Makefile b/usr.sbin/wpa/src/utils/Makefile
index 061ddeaad6f8..105b0dc042da 100644
--- a/usr.sbin/wpa/src/utils/Makefile
+++ b/usr.sbin/wpa/src/utils/Makefile
@@ -22,8 +22,6 @@ SRCS=	base64.c \
 	wpa_debug.c \
 	wpabuf.c
 
-CFLAGS+=-DCONFIG_DEBUG_FILE
-
 .if ${MK_INET6} != "no"
 CFLAGS+= -DCONFIG_IPV6
 .endif


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a6874d5.196b8.684c4eb9>