aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-02-27 16:46:02 (GMT)
committerJouni Malinen <j@w1.fi>2010-02-27 16:46:02 (GMT)
commit207ef3fb12b713e9432d0eca81d0632c124ee271 (patch)
treeb41a27b6d443e24d88e7b250a6075cc45c8083ad /wpa_supplicant/driver_i.h
parentbe8be6717d0fc9568b436826453ed8541a017f5b (diff)
downloadhostap-207ef3fb12b713e9432d0eca81d0632c124ee271.zip
hostap-207ef3fb12b713e9432d0eca81d0632c124ee271.tar.gz
hostap-207ef3fb12b713e9432d0eca81d0632c124ee271.tar.bz2
Add suspend/resume notifications
wpa_supplicant can now be notified of suspend/resume events, e.g., from pm-action scripts. This allows wpa_supplicant to clear information that may become invalid during a suspend operation.
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index bd31253..7f64c4c 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -456,4 +456,16 @@ static inline int wpa_drv_deinit_ap(struct wpa_supplicant *wpa_s)
return 0;
}
+static inline void wpa_drv_suspend(struct wpa_supplicant *wpa_s)
+{
+ if (wpa_s->driver->suspend)
+ wpa_s->driver->suspend(wpa_s->drv_priv);
+}
+
+static inline void wpa_drv_resume(struct wpa_supplicant *wpa_s)
+{
+ if (wpa_s->driver->resume)
+ wpa_s->driver->resume(wpa_s->drv_priv);
+}
+
#endif /* DRIVER_I_H */