[PATCH 2/8] wifi_stats: Add build rules for hostapd

Iegor Sergieienkov iegor at nova-labs.com
Thu Aug 27 07:16:19 PDT 2026


Add the CONFIG_WIFI_STATS build option and the object file for 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 96b8bf87a..5f2e027f0 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/wifi_stats/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 298504c3f..96a0ad23b 100644
--- a/hostapd/defconfig
+++ b/hostapd/defconfig
@@ -437,3 +437,7 @@ CONFIG_DPP2=y
 
 # Automated Frequency Coordination for 6 GHz outdoor
 #CONFIG_AFC=y
+
+# WiFi statistics collection with RADIUS Connect-Info support
+# per draft-grayson-connectinfo-10
+#CONFIG_WIFI_STATS=y
-- 
2.43.0




More information about the Hostap mailing list