Commit 964b19f9 authored by Eliad Peller's avatar Eliad Peller Committed by Johannes Berg

mac80211: use synchronize_net() on key destroying

__ieee80211_key_destroy() calls synchronize_rcu() in
order to sync the tx path before destroying the key.

However, synching the tx path can be done with
synchronize_net() as well, which is usually faster
(the timing might be important for roaming scenarios).
Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 761a48d2
...@@ -402,7 +402,7 @@ static void __ieee80211_key_destroy(struct ieee80211_key *key) ...@@ -402,7 +402,7 @@ static void __ieee80211_key_destroy(struct ieee80211_key *key)
* Synchronize so the TX path can no longer be using * Synchronize so the TX path can no longer be using
* this key before we free/remove it. * this key before we free/remove it.
*/ */
synchronize_rcu(); synchronize_net();
if (key->local) if (key->local)
ieee80211_key_disable_hw_accel(key); ieee80211_key_disable_hw_accel(key);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment