[PATCH v2 08/11] wifi_stats: Add build rules for hostapd
Iegor Sergieienkov
iegor at nova-labs.com
Mon Nov 23 04:50:28 PST 2026
Add the CONFIG_WIFI_STATS build option and the object file of the
wifi_stats module. The option is not enabled by default.
Signed-off-by: Iegor Sergieienkov <iegor at nova-labs.com>
---
hostapd/Makefile | 5 +++++
hostapd/defconfig | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 1ecafdc55..e5fae1f42 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -374,6 +374,11 @@ CFLAGS += -DCONFIG_MBO
OBJS += ../src/ap/mbo_ap.o
endif
+ifdef CONFIG_WIFI_STATS
+CFLAGS += -DCONFIG_WIFI_STATS
+OBJS += ../src/ap/wifi_stats.o
+endif
+
include ../src/drivers/drivers.mak
OBJS += $(DRV_AP_OBJS)
CFLAGS += $(DRV_AP_CFLAGS)
diff --git a/hostapd/defconfig b/hostapd/defconfig
index cecfc7c8a..0cf13452c 100644
--- a/hostapd/defconfig
+++ b/hostapd/defconfig
@@ -442,3 +442,7 @@ CONFIG_DPP2=y
# Note: These features are experimental and still changing; do not enable for
# production use.
#CONFIG_PQC=y
+
+# Wi-Fi statistics collection and WBA Connect-Info reporting in RADIUS
+# (draft-ietf-radext-connectinfo-02)
+#CONFIG_WIFI_STATS=y
--
2.43.0
More information about the Hostap
mailing list