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
@@ -746,10 +746,10 @@ struct ieee80211_local {
|
||||
struct mutex iflist_mtx;
|
||||
|
||||
/*
|
||||
* Key lock, protects sdata's key_list and sta_info's
|
||||
* Key mutex, protects sdata's key_list and sta_info's
|
||||
* key pointers (write access, they're RCU.)
|
||||
*/
|
||||
spinlock_t key_lock;
|
||||
struct mutex key_mtx;
|
||||
|
||||
|
||||
/* Scanning and BSS list */
|
||||
|
Reference in New Issue
Block a user