aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ap.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 /wpa_supplicant/ap.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 'wpa_supplicant/ap.c')
-rw-r--r--wpa_supplicant/ap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c
index 7555c42..ec6e868 100644
--- a/wpa_supplicant/ap.c
+++ b/wpa_supplicant/ap.c
@@ -555,6 +555,7 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
return -1;
hapd_iface->owner = wpa_s;
hapd_iface->drv_flags = wpa_s->drv_flags;
+ hapd_iface->smps_modes = wpa_s->drv_smps_modes;
hapd_iface->probe_resp_offloads = wpa_s->probe_resp_offloads;
hapd_iface->extended_capa = wpa_s->extended_capa;
hapd_iface->extended_capa_mask = wpa_s->extended_capa_mask;