aboutsummaryrefslogtreecommitdiffstats
path: root/src/ap/hostapd.h
diff options
context:
space:
mode:
authorBhagavathi Perumal S <bperumal@qti.qualcomm.com>2017-12-04 09:23:33 (GMT)
committerJouni Malinen <j@w1.fi>2017-12-11 22:48:27 (GMT)
commitaf832aa998200615766726f1184aabbb9a884d15 (patch)
treeaccc32cb551cdce4ac3832a679bae7e4f4338855 /src/ap/hostapd.h
parent802c0fd0c328bc634fd2c76e82f53c0e35abaff1 (diff)
downloadhostap-af832aa998200615766726f1184aabbb9a884d15.zip
hostap-af832aa998200615766726f1184aabbb9a884d15.tar.gz
hostap-af832aa998200615766726f1184aabbb9a884d15.tar.bz2
hostapd: Add average channel utilization in STATUS
This allows external programs to get the average channel utilization. The average channel utilization is calculated and reported through STATUS command. Users need to configure chan_util_avg_period and bss_load_update_period in hostapd config to get the average channel utilization. Signed-off-by: Bhagavathi Perumal S <bperumal@qti.qualcomm.com>
Diffstat (limited to 'src/ap/hostapd.h')
-rw-r--r--src/ap/hostapd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ap/hostapd.h b/src/ap/hostapd.h
index 2c095dc..0e35ee8 100644
--- a/src/ap/hostapd.h
+++ b/src/ap/hostapd.h
@@ -497,6 +497,10 @@ struct hostapd_iface {
u64 last_channel_time_busy;
u8 channel_utilization;
+ unsigned int chan_util_samples_sum;
+ unsigned int chan_util_num_sample_periods;
+ unsigned int chan_util_average;
+
/* eCSA IE will be added only if operating class is specified */
u8 cs_oper_class;