summaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-07-06 19:49:54 +0200
committerJohannes Berg <johannes.berg@intel.com>2012-07-09 14:49:15 +0200
commitf72b85b8eb6657fae95ac8f5cb20954b4d87a520 (patch)
tree089123ac0b92e2939ffb4510b22f03cd4ac7da9a /net/mac80211
parent31ee67a1ced64f61e3f8266ddfd820d6ce599da3 (diff)
downloadlinux-stable-f72b85b8eb6657fae95ac8f5cb20954b4d87a520.tar.gz
linux-stable-f72b85b8eb6657fae95ac8f5cb20954b4d87a520.tar.bz2
linux-stable-f72b85b8eb6657fae95ac8f5cb20954b4d87a520.zip
mac80211: remove ieee80211_key_removed
This API call was intended to be used by drivers if they want to optimize key handling by removing one key when another is added. Remove it since no driver is using it. If needed, it can always be added back. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/key.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/net/mac80211/key.c b/net/mac80211/key.c
index b3b7e526e245..7ae678ba5d67 100644
--- a/net/mac80211/key.c
+++ b/net/mac80211/key.c
@@ -194,26 +194,6 @@ static void ieee80211_key_disable_hw_accel(struct ieee80211_key *key)
key->flags &= ~KEY_FLAG_UPLOADED_TO_HARDWARE;
}
-void ieee80211_key_removed(struct ieee80211_key_conf *key_conf)
-{
- struct ieee80211_key *key;
-
- key = container_of(key_conf, struct ieee80211_key, conf);
-
- might_sleep();
- assert_key_lock(key->local);
-
- key->flags &= ~KEY_FLAG_UPLOADED_TO_HARDWARE;
-
- /*
- * Flush TX path to avoid attempts to use this key
- * after this function returns. Until then, drivers
- * must be prepared to handle the key.
- */
- synchronize_rcu();
-}
-EXPORT_SYMBOL_GPL(ieee80211_key_removed);
-
static void __ieee80211_set_default_key(struct ieee80211_sub_if_data *sdata,
int idx, bool uni, bool multi)
{