diff mbox series

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

Message ID 20260827141625.1190983-3-iegor@nova-labs.com
State New
Headers show
Series wifi_stats: WBA Connect-Info in RADIUS | expand

Commit Message

Iegor Sergieienkov Aug. 27, 2026, 2:16 p.m. UTC
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@nova-labs.com>
---
 hostapd/Makefile  | 5 +++++
 hostapd/defconfig | 4 ++++
 2 files changed, 9 insertions(+)
diff mbox series

Patch

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