aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/main.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2014-10-20 03:21:39 (GMT)
committerJouni Malinen <j@w1.fi>2014-10-23 22:25:29 (GMT)
commit04ee647d58a2bc37e62e1a5ab039f303b6174119 (patch)
tree8b725c690a78f872e4ef9da46b470b8d8a980f34 /hostapd/main.c
parenteac687ee7d3137f8eeab33f934dd9519935d9dfd (diff)
downloadhostap-04ee647d58a2bc37e62e1a5ab039f303b6174119.zip
hostap-04ee647d58a2bc37e62e1a5ab039f303b6174119.tar.gz
hostap-04ee647d58a2bc37e62e1a5ab039f303b6174119.tar.bz2
HT: Let the driver advertise its supported SMPS modes for AP mode
Add smps_modes field, and let the driver fill it with its supported SMPS modes (static/dynamic). This will let us start an AP with specific SMPS mode (e.g., dynamic) that will allow it to reduce its power usage. Signed-off-by: Eliad Peller <eliad@wizery.com>
Diffstat (limited to 'hostapd/main.c')
-rw-r--r--hostapd/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hostapd/main.c b/hostapd/main.c
index a9d91b9..5a47711 100644
--- a/hostapd/main.c
+++ b/hostapd/main.c
@@ -213,6 +213,7 @@ static int hostapd_driver_init(struct hostapd_iface *iface)
if (hapd->driver->get_capa &&
hapd->driver->get_capa(hapd->drv_priv, &capa) == 0) {
iface->drv_flags = capa.flags;
+ iface->smps_modes = capa.smps_modes;
iface->probe_resp_offloads = capa.probe_resp_offloads;
iface->extended_capa = capa.extended_capa;
iface->extended_capa_mask = capa.extended_capa_mask;