summaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJohannes Berg2009-01-19 17:20:52 +0100
committerJohn W. Linville2009-01-29 22:00:51 +0100
commit0378b3f1c49d48ed524eabda7e4340163d9483c9 (patch)
tree98ba4934248151f1e28abe67a4318d05ffeb83bf /include/net/cfg80211.h
parentmac80211: Fix drop-unencrypted for management frames (diff)
downloadkernel-qcow2-linux-0378b3f1c49d48ed524eabda7e4340163d9483c9.tar.gz
kernel-qcow2-linux-0378b3f1c49d48ed524eabda7e4340163d9483c9.tar.xz
kernel-qcow2-linux-0378b3f1c49d48ed524eabda7e4340163d9483c9.zip
cfg80211: add PM hooks
This should help implement suspend/resume in mac80211, these hooks will be run before the device is suspended and after it resumes. Therefore, they can touch the hardware as much as they want to. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index c7da88fb15b7..f19c3e163663 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -472,6 +472,9 @@ struct ieee80211_channel;
* wireless extensions but this is subject to reevaluation as soon as this
* code is used more widely and we have a first user without wext.
*
+ * @suspend: wiphy device needs to be suspended
+ * @resume: wiphy device needs to be resumed
+ *
* @add_virtual_intf: create a new virtual interface with the given name,
* must set the struct wireless_dev's iftype.
*
@@ -525,6 +528,9 @@ struct ieee80211_channel;
* @set_mgmt_extra_ie: Set extra IE data for management frames
*/
struct cfg80211_ops {
+ int (*suspend)(struct wiphy *wiphy);
+ int (*resume)(struct wiphy *wiphy);
+
int (*add_virtual_intf)(struct wiphy *wiphy, char *name,
enum nl80211_iftype type, u32 *flags,
struct vif_params *params);