aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-06-24 06:04:21 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-09 14:17:19 (GMT)
commitc381508d884b4056427af28ccd169f188f5dde66 (patch)
tree71e0dea46e086b74dce8f934e1b878637695fec5 /wpa_supplicant/driver_i.h
parent40c03fd40b3b47ee14267d69b118f4beb613abac (diff)
downloadhostap-c381508d884b4056427af28ccd169f188f5dde66.zip
hostap-c381508d884b4056427af28ccd169f188f5dde66.tar.gz
hostap-c381508d884b4056427af28ccd169f188f5dde66.tar.bz2
P2P: Implement power save configuration
wpa_cli p2p_set ps <0/1/2> wpa_cli p2p_set oppps <0/1> wpa_cli p2p_set ctwindow <0..> msec
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 80bff26..0868fa8 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -522,4 +522,14 @@ static inline int wpa_drv_set_noa(struct wpa_supplicant *wpa_s, u8 count,
return wpa_s->driver->set_noa(wpa_s->drv_priv, count, start, duration);
}
+static inline int wpa_drv_set_p2p_powersave(struct wpa_supplicant *wpa_s,
+ int legacy_ps, int opp_ps,
+ int ctwindow)
+{
+ if (!wpa_s->driver->set_p2p_powersave)
+ return -1;
+ return wpa_s->driver->set_p2p_powersave(wpa_s->drv_priv, legacy_ps,
+ opp_ps, ctwindow);
+}
+
#endif /* DRIVER_I_H */