mac80211: simplify key locking
Since I recently made station management able to sleep, I can now rework key management as well; since it will no longer need a spinlock and can also use a mutex instead, a bunch of code to allow drivers' set_key to sleep while key management is protected by a spinlock can now be removed. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
efe4c457a1
commit
ad0e2b5a00
@@ -648,14 +648,6 @@ static int __must_check __sta_info_destroy(struct sta_info *sta)
|
||||
|
||||
if (sta->key) {
|
||||
ieee80211_key_free(sta->key);
|
||||
/*
|
||||
* We have only unlinked the key, and actually destroying it
|
||||
* may mean it is removed from hardware which requires that
|
||||
* the key->sta pointer is still valid, so flush the key todo
|
||||
* list here.
|
||||
*/
|
||||
ieee80211_key_todo();
|
||||
|
||||
WARN_ON(sta->key);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user