mac80211: batch key free synchronize_net()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 22:09:11 +0000 (23:09 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 11 Mar 2013 13:16:42 +0000 (15:16 +0200)
Instead of calling synchronize_net() for every key
on an interface or when a station is removed, do it
only once for all keys in both of these cases.

As a side-effect, removing station keys now always
calls synchronize_net() even if there are no keys,
which fixes an issue with station removal happening
in the driver while the station could still be used
for TX.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c
net/mac80211/key.h
net/mac80211/sta_info.c

Simple merge
Simple merge
Simple merge