summaryrefslogtreecommitdiffstats
path: root/net/mac80211/key.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-12-04 23:47:09 +0100
committerJohannes Berg <johannes.berg@intel.com>2013-12-16 11:29:48 +0100
commit7907c7d33c3733b2265dadc6385fe028af72b4c7 (patch)
tree820eefc2cecdc675d9346f46e438a19318814ea0 /net/mac80211/key.h
parente716251d776ce92eb5169522f565ada3deed2a2a (diff)
downloadlinux-stable-7907c7d33c3733b2265dadc6385fe028af72b4c7.tar.gz
linux-stable-7907c7d33c3733b2265dadc6385fe028af72b4c7.tar.bz2
linux-stable-7907c7d33c3733b2265dadc6385fe028af72b4c7.zip
mac80211: free all AP/VLAN keys at once
When the AP interface is stopped, free all AP and VLAN keys at once to only require synchronize_net() once. Since that does synchronize_net(), also move two such calls into the function (using the new force_synchronize parameter) to avoid doing it twice. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/key.h')
-rw-r--r--net/mac80211/key.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/key.h b/net/mac80211/key.h
index 0aebb889caba..19db68663d75 100644
--- a/net/mac80211/key.h
+++ b/net/mac80211/key.h
@@ -136,7 +136,8 @@ void ieee80211_set_default_key(struct ieee80211_sub_if_data *sdata, int idx,
bool uni, bool multi);
void ieee80211_set_default_mgmt_key(struct ieee80211_sub_if_data *sdata,
int idx);
-void ieee80211_free_keys(struct ieee80211_sub_if_data *sdata);
+void ieee80211_free_keys(struct ieee80211_sub_if_data *sdata,
+ bool force_synchronize);
void ieee80211_free_sta_keys(struct ieee80211_local *local,
struct sta_info *sta);
void ieee80211_enable_keys(struct ieee80211_sub_if_data *sdata);