diff options
author | Jouni Malinen <j@w1.fi> | 2010-02-27 18:46:02 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-02-27 18:46:02 +0200 |
commit | 207ef3fb12b713e9432d0eca81d0632c124ee271 (patch) | |
tree | b41a27b6d443e24d88e7b250a6075cc45c8083ad /wpa_supplicant/driver_i.h | |
parent | be8be6717d0fc9568b436826453ed8541a017f5b (diff) | |
download | external_wpa_supplicant_8_ti-207ef3fb12b713e9432d0eca81d0632c124ee271.zip external_wpa_supplicant_8_ti-207ef3fb12b713e9432d0eca81d0632c124ee271.tar.gz external_wpa_supplicant_8_ti-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.h | 12 |
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 */ |