aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-07-05 10:35:39 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-07-06 15:05:41 -0400
commit830af02f24fbc087999b757b8eca51829c67fa6f (patch)
tree9a029493580c0d822badfa9f2218ef0c72ae6f33 /include/net/mac80211.h
parent68dd49ef907f92127aabb30b3368b80eb0ffb459 (diff)
mac80211: allow driver to iterate keys
When in suspend/wowlan, devices might implement crypto offload differently (more features), and might require reprogramming keys for the WoWLAN (as it is the case for Intel devices that use another uCode image). Thus allow the driver to iterate all keys in this context. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 2858b4d02f5f..4703c0f07ba4 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -2850,6 +2850,29 @@ void ieee80211_sta_block_awake(struct ieee80211_hw *hw,
2850 struct ieee80211_sta *pubsta, bool block); 2850 struct ieee80211_sta *pubsta, bool block);
2851 2851
2852/** 2852/**
2853 * ieee80211_iter_keys - iterate keys programmed into the device
2854 * @hw: pointer obtained from ieee80211_alloc_hw()
2855 * @vif: virtual interface to iterate, may be %NULL for all
2856 * @iter: iterator function that will be called for each key
2857 * @iter_data: custom data to pass to the iterator function
2858 *
2859 * This function can be used to iterate all the keys known to
2860 * mac80211, even those that weren't previously programmed into
2861 * the device. This is intended for use in WoWLAN if the device
2862 * needs reprogramming of the keys during suspend. Note that due
2863 * to locking reasons, it is also only safe to call this at few
2864 * spots since it must hold the RTNL and be able to sleep.
2865 */
2866void ieee80211_iter_keys(struct ieee80211_hw *hw,
2867 struct ieee80211_vif *vif,
2868 void (*iter)(struct ieee80211_hw *hw,
2869 struct ieee80211_vif *vif,
2870 struct ieee80211_sta *sta,
2871 struct ieee80211_key_conf *key,
2872 void *data),
2873 void *iter_data);
2874
2875/**
2853 * ieee80211_ap_probereq_get - retrieve a Probe Request template 2876 * ieee80211_ap_probereq_get - retrieve a Probe Request template
2854 * @hw: pointer obtained from ieee80211_alloc_hw(). 2877 * @hw: pointer obtained from ieee80211_alloc_hw().
2855 * @vif: &struct ieee80211_vif pointer from the add_interface callback. 2878 * @vif: &struct ieee80211_vif pointer from the add_interface callback.