aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2014-04-24 05:45:39 (GMT)
committerJouni Malinen <j@w1.fi>2014-04-29 15:59:12 (GMT)
commite4fa8b120bf0014bc7f6f79f8d85923215833c9f (patch)
treed81a75c9c4d7f2c9bcfcd912a7e9fe406f4943d5 /wpa_supplicant/driver_i.h
parent959214b260e930ef2148cf45f02d5a851058ae04 (diff)
downloadhostap-e4fa8b120bf0014bc7f6f79f8d85923215833c9f.zip
hostap-e4fa8b120bf0014bc7f6f79f8d85923215833c9f.tar.gz
hostap-e4fa8b120bf0014bc7f6f79f8d85923215833c9f.tar.bz2
wpa_supplicant: Add Wake-on-WLAN configuration support
Add a new wowlan_triggers option to wpa_supplicant.conf. The triggers in this key will be used to configure the kernel wowlan configuration. For now, support only simple flags. More complex triggers can be added later on. Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 938ece6..beeb059 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -614,6 +614,14 @@ static inline int wpa_drv_set_qos_map(struct wpa_supplicant *wpa_s,
qos_map_set_len);
}
+static inline int wpa_drv_wowlan(struct wpa_supplicant *wpa_s,
+ const struct wowlan_triggers *triggers)
+{
+ if (!wpa_s->driver->set_wowlan)
+ return -1;
+ return wpa_s->driver->set_wowlan(wpa_s->drv_priv, triggers);
+}
+
static inline int wpa_drv_vendor_cmd(struct wpa_supplicant *wpa_s,
int vendor_id, int subcmd, const u8 *data,
size_t data_len, struct wpabuf *buf)